Repository navigation
Releases
v6.13.0
Agents stop running the whole test suite after small changes, and frontend-design gains rules for honest content, imagery and redesigns.
New Features
Scoped verification with a cross-module safety net. verification-before-completion now defines the narrow command: the tests of the changed files plus the tests of the files that import them (with per-runner commands for Jest, Vitest, Nx/Turborepo, pytest, Go, Cargo and .NET), plus a whole-repo typecheck/build. A contract check on the diff runs the full suite at once when an existing name used across modules changed. For code linked by a string rather than an import (event names, DI tokens, tables, cache keys, flags), a literal-key search adds those tests without escalating, and a change to a wiring file runs the integration tests.
Reuse a green run; bisect a red one. A full green run still counts when nothing has changed since (git diff and git status both empty), so finishing-a-development-branch no longer repeats it, and skips the post-merge re-run when the merge brings in no new base commits. When the final run fails, git bisect run on the one failing test finds the task that broke it.
frontend-design: honest content, imagery and redesigns. No invented practical facts (hours, prices, contact details, metrics, testimonials, logos), guessed links or fake form success; missing facts are left out where possible and listed in the report. Drawn graphics are welcome when they carry meaning; made-up product UI presented as real is not. Redesigns state their depth (full, restyle or polish), inventory every link, field, handler, id and route first, and report what was kept, changed and dropped. The accessibility floor adds pausable motion over 5 seconds, no flashing over 3 times a second, and content visible without JavaScript.
Changes
One full-suite run per plan instead of one per task. Plans written by writing-plans scope each task's commands to its own test file and put the full suite in the final task (and in tasks that change a shared contract, a dependency or build config). Implementers dispatched by subagent-driven-development run the scoped check and report what they did not run; the reviewer flags missing users' tests. Wave checks in subagent-driven-development and dispatching-parallel-agents run the full suite only for contract, dependency or config changes, and on the last wave.
refactoring baselines on the surface it changes. Phase 1 identifies the refactoring surface first and runs its affected tests as the baseline; the single full run stays at completion.
v6.12.0
v6.12.0 (2026-11-26)
frontend-design reworked to produce distinctive, current-looking UIs instead of the category average, and to check its own output visually.
New Features
The model now looks at the UI it built. For anything visible, frontend-design requires rendering the page, capturing screenshots at 375px and 1440px, critiquing them (structure → hierarchy → spacing → typography → color → interaction → polish), and fixing what it finds — at least one cycle. If the environment cannot render, the final report must say what was not visually verified instead of claiming the design looks good.
Design plan reviewed against the generic default. New UI starts from the specific subject (not the product category), then a short plan: named OKLCH colors, typefaces and their source, an ASCII wireframe, density, one signature element. The model then checks whether it would have produced the same plan for a different brief, revises those parts, and says what it changed before writing code.
Current list of generic AI defaults. Palettes (indigo/violet, cream + terracotta, acid green on black, reflexive trust blue), layouts (the SaaS kit, identical card grids), typographic chrome (all-caps eyebrows, A · B · C, → on every button, fake 01/02/03), motion (fade-up on every section) and marketing copy that read as AI-generated. Allowed whenever the brief asks for them.
Typography, color and modern CSS guidance. Subject-specific typefaces from loadable free sources, modular clamp() scales, text-wrap: balance, tabular numerals, metric-matched fallbacks; OKLCH palettes with tinted neutrals and color-mix() states; container queries, :has(), subgrid, <dialog>/popover, @starting-style, with View Transitions, scroll-driven animations and anchor positioning as progressive enhancement.
Changes
SKILL.md cut from 435 to 213 lines; detail moved to reference files. quality-standards.md holds the full accessibility, performance, layout, forms, navigation, dark-mode, token, chart and frontend-backend rules. style-reference.md holds the style vocabulary, category conventions and page structures, reframed as "know the conventions, then decide" — category rows no longer prescribe palettes.
Accessibility floor raised to WCAG 2.2 AA. Adds 3:1 non-text contrast for controls and focus indicators, focus not hidden by sticky headers, 24×24px minimum targets, drag alternatives, and accessible authentication. Core Web Vitals targets now use the official INP threshold (≤ 200ms).
Scope gate clarified. The brief's own words (brand, Figma, a requested style) always win; small edits to existing UI skip the design plan but still get the visual check.
tailwind-v4.md extended. Adds the v4 dark-mode toggle (@custom-variant dark, since v3's darkMode: 'class' no longer exists), @theme inline, @source, @plugin, @config, @variant, and the v4.1 utilities (text shadows, masks, colored drop shadows, wrap-break-word, pointer and user-valid/user-invalid variants, safe alignment). Font examples no longer default to Inter.
Fixes
Contradictory style guidance removed. Finance listed dark mode both as the recommended default and as an anti-pattern; healthcare recommended low-contrast neumorphism while warning against low contrast; the AI/chatbot row prescribed #6366F1; "Liquid Glass" was referenced but never defined.
Outdated and incorrect rules corrected. "All five states" now matches the six states listed; the obsolete 300ms tap-delay rule is gone; breakpoints now follow the framework's scale, with 375/768/1024/1440 kept only as test widths.
v6.11.1
v6.11.1 (2026-11-11)
One stop-hook fix for small work.
Fixes
Small features no longer trigger a decision-log reminder. Since 6.11.0, small changes run through brainstorming, and the reminder fired whenever a design skill ran and 2 source files changed. So every small test-first feature (one code file plus its test) cost an extra turn spent writing a session-log entry. Test files no longer count toward that bar; 2 or more code files changed while a design skill ran still trigger it.
v6.11.0
v6.11.0 (2026-11-11)
Installed by cloning this repository (Codex, OpenCode, or a self-hosted clone)? Delete the clone and clone it again. The repository's history was rewritten on 2026-11-11 to remove old plan and spec documents. Automatic updates only fast-forward, so an existing clone stops updating. Claude Code marketplace installs are not affected: updating the marketplace re-clones the repository (checked on Claude Code 2.1.318). If an update still fails, follow "If the update fails" under Installation → Claude Code in the README.
Less process for small work, fewer forced extra turns, and fewer harmless commands blocked. Measured on one real build session: the stop hook blocked 33 times for 14 user prompts, 41 of 50 prompt-time injections landed on background notifications rather than on anything the user typed, and safety rules denied ordinary commands.
Changes
Small changes no longer need a spec file and a plan. brainstorming still produces a design before any code for every change, but the paperwork now scales: a small change (one subsystem, about three files, one sitting) is designed in the conversation, then built with TDD, one code review, and verification. Larger work keeps the spec → plan → execution path. The router's "when in doubt, classify as full" rule stays — it is now cheap for small work, which is what its "one extra round" justification always assumed.
Small, fully specified requests no longer wait for an OK. If your request already fixes the behavior ("add isValidEmail with these three rules"), the model states in a few lines how it read the request and starts test-first implementation in the same turn. Edge cases your rules don't mention no longer block: the model implements your rules as written and is asked to list those edge cases at the end as an offer to tighten. It still shows a design and waits for your approval when the request leaves a core choice open (such as which format, which data, or what a user sees), adds a dependency, touches data or security, or when you asked to see the design first. In headless runs of the final wording, such a request started test-first coding at once in 4 of 4 runs, against 0 of 4 before this rule. An open-ended request ("store phone numbers in one consistent format") still stopped to ask, without writing code, in 2 of 2.
Brainstorming asks about your goal first. Clarifying questions now start with the outcome you want and what your own words mean ("normal", "cheap", "real-time") before implementation choices, and nothing you did not ask for is added unless you pick it.
The written spec comes back for review only when it adds something. If writing the spec resolved ambiguities or added non-goals you have not approved, you are asked to review exactly those points. If it only records the design you approved, you get the path and the plan follows. The review prompt no longer says the spec was "committed".
Skill descriptions use plain "Use when …" wording. "MUST USE", "BLOCKING REQUIREMENT", and "No exceptions" were removed from ten skill descriptions, following Anthropic's guidance that this wording makes current models over-trigger. Trigger phrases are unchanged. The router's description no longer tells the model to invoke a skill that session start has already loaded.
Subagent-driven development keeps progress updates short. One or two lines per event; the full account goes in the final report.
Visual-only changes are verified by rendering. TDD now states its scope: styling, layout, and static copy are checked by running the app or taking a screenshot instead of writing tests that cannot fail. Anything with logic stays test-first.
User-facing changes must be exercised in the real program. verification-before-completion now requires running the program and exercising the changed path when a change affects what a user sees or does, or saying plainly that it was not run. Integration bugs pass unit tests and diff reviews.
Fixes
The stop hook repeated the same reminder at every stop. Each reminder blocks the stop and forces a full extra model turn, and all but the volume nudge re-fired every time the 2-minute guard expired. Each reminder now fires once per trigger state: TDD once per new untested file, state.md once per file version, the decision log once per kind per unsaved phase, the commit reminder when uncommitted work doubles, and the session-log size warning once per file version.
The stop hook told you to do TDD for code your subagents wrote. Subagent edits are logged under the parent session, so the parent got TDD and state.md reminders after every subagent batch. track-edits now marks edits made inside a subagent (hook input carries agent_id), and those reminders count only the main session's own edits. A test file edited by a subagent still counts as a test change, and subagent edits still count toward the decision-log reminder.
Skill hints and memory recall fired on background notifications. UserPromptSubmit also runs on task notifications and subagent hand-backs. Hints and recall keyed on a subagent's report were noise, and recall used up the session's once-per-entry budget, hiding entries from your next real prompt. These prompts are now skipped in Claude Code and Codex, verified against every prompt in four real Claude Code sessions: all 97 harness prompts skipped, all 24 user prompts still routed, including one that starts with <pasted_content>.
Ordinary commands were denied as "reading secrets". block-dangerous-commands matched a reader word in one command and a secret-looking word in another (pytest tests/test_credentials.py | tail, cat data.json | jq '.key', head …; grep "secrets"). protect-secrets matched across newlines, so the standard git commit -m "$(cat <<'EOF' … .env … EOF)" was blocked, and xargs/find rules fired on "catch" and "category". Secret rules in both hooks now match within one command segment. Replaying the logged blocks for this repo and one app project: every block the new rules allow whose full command could be recovered was a false positive (three could not be judged — the log keeps only 100 characters and their transcripts are gone).
Two secret-exposure bypasses closed. A bare env on its own line and . ./.env on a later line were not caught, because newlines were not treated as command separators. They are now; backslash line continuations are joined before matching, so splitting a command across lines does not slip past either.
Test fixes
- The skill-triggering summary counted every skill as passed.
run-all.shpiped each run throughtee, which always exits 0. It now readsrun-test.sh's own exit status, so the summary matches the per-skill PASS/FAIL lines. - A rate-limited run was reported as "skill NOT triggered". A run the API refuses has no model output, so it says nothing about triggering.
run-test.shnow reports it as an API error (exit 2), andrun-all.shcounts those apart from failures. - Two triggering tests could not measure triggering. The executing-plans prompt names a plan file that did not exist, so the model correctly stopped. It failed on 6.10.0 the same way. The TDD prompt ran in an empty directory, where the router's fresh-project gate tells the model to stop and offer memory setup first. Both now run in a fixture project that has the named files and a project map.
- memory-ab scenario inputs were never committed. The root
.gitignorerules for memory files and*.txtalso matched each scenario's memory file andprompt.txt, so the suite ran only on the machine that created it. Test inputs undertests/are now re-included.
v6.10.0
v6.10.0 (2026-10-10)
The context pressure gate no longer blocks users of 1M-token models at 12% of their window, and subagents are stopped from using this plugin's skills at the moment they try, instead of being made to redo their work afterwards.
New Features
Subagent skill calls are blocked before they run. Inside a subagent, a call to one of this plugin's skills is now denied on the spot: the subagent gets a one-line reason and carries on with its task. Until now the guard only acted when the subagent finished, and then forced it to redo its whole task, doubling the time and tokens. Requires Claude Code 2.1.100 or later; the main session and other plugins' or your own skills are unaffected. Verified live: the denied subagent continued and returned the correct result.
Changes
The after-the-fact subagent check reads what actually happened. When a subagent finishes, the guard now checks its transcript and forces a redo only if one of this plugin's skills actually ran. Before, it matched words in the subagent's final message, so a subagent that merely mentioned a skill ("running the systematic-debugging checks") was made to redo good work. Matching the wording remains only as a fallback when no transcript is available.
Fixes
1M-token models are recognized without any setting. The context pressure gate assumed a 200K window unless the model id carried a [1m] marker, but Opus 4.7 and later, Sonnet 5 and later, and Fable have 1M natively with no marker. On those models the gate treated 120K tokens as "60% full" and blocked plan execution at 12% of the real window. These models are now detected by id; Claude Code's own CLAUDE_CODE_DISABLE_1M_CONTEXT and CLAUDE_CODE_MAX_CONTEXT_TOKENS are respected; unknown models keep the safe 200K default. SP_CONTEXT_WINDOW is no longer needed for current models and still overrides everything.
Running the hook tests no longer writes to your real violation log. The subagent-guard tests ran the hook against your actual home folder, so every test run added fake entries to ~/.claude/hooks-logs/subagent-violations.jsonl (169 of 228 entries on one machine), making leakage look about four times more common than it is. The tests now use a temporary home folder.
v6.9.0
v6.9.0 (2026-10-02)
The routing guide and your project memory now actually reach the model. Until this release, both arrived as a 2,000-character preview.
Fixes
The router and all injected memory were invisible. Claude Code caps each hook's injected context at 10,000 characters. Anything longer is saved to a file, and the model gets the file path plus a 2,000-character preview it is never told to read. The session-start hook sent the routing guide and the whole memory stack as one block of up to ~29,000 characters. In every session the model saw the opening lines of the router and nothing else: no complexity classification, no routing table, no red flags, no project-map.md, state.md, known issues or snapshot. Memory is now injected by a separate hook, hooks/session-memory.js, so each hook has its own limit. The router is about 8,200 characters and guards its own size. Memory fills a ~9,500-character budget in priority order: state.md, map staleness, the map's Critical Constraints, open known issues, the latest session-log entries, the rest of the map, then the snapshot. Anything that does not fit is named in the output, so the model knows to open the file rather than assume there was nothing there.
A finished task was injected as "ACTIVE TASK STATE — resume from here". state.md was framed as active whenever it was recent, even when you had committed the work it described a minute later. It is now framed as possibly stale whenever a commit is newer than the file. A wrong "possibly stale" costs one confirmation; a wrong "resume from here" pulls the session back onto finished work.
The snapshot claimed files were "Changed since last commit". They were committed changes, never uncommitted work. The label now states which they are: everything committed since your last session, or the last commit. context-snapshot.json records the difference in a new changed_files_since field.
The stop hook counted edits from other projects. Edits outside the current project, such as files in another repository or a scratch directory, triggered its TDD and decision-log reminders. Edits are now scoped to the project directory.
Code review could take its scope from the snapshot. The snapshot covers changes since the last session, not the change under review. Review scope is now always the BASE..HEAD commit range. The snapshot's blast radius only adds callers of files in that range, and only when the snapshot matches HEAD.
The prompt hint contradicted the router. Every skill hint said "invoke using-superpowers FIRST", while session start said the router was already loaded. In headless runs, v6.8.1 loaded the router a second time in 4 of 6 sessions; v6.9.0 did not in 6 of 6.
Codex injected memory without any of these safeguards. It had no stale-state check, injected fixed known issues, and used the false snapshot label. The Codex adapter now builds memory with the same code as Claude Code.
Recall surfaced unrelated history.
- A keyword matched fragments inside words, so "wait" matched
condition-based-waiting-example.tsand alone decided a recall. A keyword now matches only words it begins. - The directories of an @-mentioned file ("users", "documents"…) and editor wrapper text counted as keywords. They no longer do.
- When more than three entries tie for the best match, the prompt identifies none of them, so nothing is recalled.
- After
/compact, entries recalled earlier can surface again, because the conversation now holds only a summary of them.
Replayed on 19 real prompts, about 11 of 14 recalled entries were relevant, up from about 7 of 11.
Changes
The router drops sections that cannot apply. A project with a project-map.md no longer gets the fresh-project gate; one without a map no longer gets the map-staleness procedure. The router no longer asks the model to re-read state.md, known-issues.md or project-map.md when their content was just injected.
Self-consistency says what it is. self-consistency-reasoner, systematic-debugging Phase 3 and verification-before-completion reason along several paths in one context. Those paths are not independent samples, so agreement between them is weak evidence. Disagreement is a real signal and stops the diagnosis. Agreement only earns a test, never a confidence percentage.
The README's research section reports what the sources measured. The figures for context files, context compression, self-consistency and multi-agent deliberation now match the papers. A note says none of these effects has been measured on this plugin. claude-md-creator uses the same corrected figures.
tools/memory-health.js shows what a session actually receives. It reports the injected size against the 10,000-character limit and lists what the budget cut.
Map guidance covers size in characters, not only lines. context-management explains the shared budget. A long Critical Constraints section pushes the latest session-log decisions out of every session, so each constraint should stay to one line.
Measured
Memory A/B, 3 runs per scenario, v6.8.1 against v6.9.0. The scenarios: resume a task recorded in state.md, follow a rule recorded only in project-map.md, and fix an error documented in known-issues.md.
- Pass rate: every run passed on both versions. When v6.8.1 could not see the memory, the model went and read the files itself, in 7 of 9 runs.
- Turns: v6.9.0 used fewer turns in all 9 paired runs: 5.7 → 3.0, 4.0 → 2.7 and 8.7 → 7.3.
- Cost: unchanged within about 5%, because the injected context offsets the turns it saves.
A rule nothing in the code hints at, 5 runs per version. The scenario asks for a 30-second request timeout, while project-map.md records that production's load balancer drops connections at 25 seconds.
- Pass rate: 4/5 on v6.8.1, 5/5 on v6.9.0.
- Where v6.8.1 got the rule: it opened
project-map.mditself in 4 runs. In the one run where it didn't, it set the timeout to 30 seconds. - Turns and cost: v6.9.0 never had to look, using 2.4 turns against 3.8 and $0.226 against $0.271 on average.
Five runs cannot show a significant difference in pass rate.
These fixtures are small, so read the numbers as a direction, not a size.
Tests
- New
tests/memory-ab. Scenario fixtures, outcome checks, andrun-ab.sh <baseline-dir>to compare any older version against the current checkout. - Skill-triggering tests:
- Prompts that name files now run in a fixture project, so the model no longer stops in an empty directory.
- The turn limit is 6, and
PLUGIN_DIRselects the version under test. - The headless harness passes
--verbose, which the CLI now requires with stream-json output.
- dispatching-parallel-agents triggering test removed. On any fixture cheap enough to run, the model rightly fixes four one-line bugs inline instead of dispatching agents.
- New
tests/codex/test-session-start.js. It covers router size, router/memory separation, state framing, snapshot labels, the memory budget, and the recall ledger.
v6.8.1
v6.8.1 (2026-09-27)
Leaner plans: writing-plans records the decisions an implementer needs instead of writing the code out in advance. Adapted from upstream superpowers v6.4.2.
Changes
A plan records decisions. It is not a transcript of the code. A new "What a Step Contains" section replaces "No Placeholders". A test step names the test and its assertions, a code step gives the exact signature, file, and spec values with a body only for an algorithm those don't determine, and a verification step gives the command and its passing output. Code written into a plan was never run, so an implementer told to follow the plan copied its bugs faithfully. Plans were also the largest thing the executing session had to hold in context. Upstream measured plans taking a quarter of the time and a third of the tokens, with 9/9 planted-defect probes still caught on Sonnet 5.
Content steps keep their exact text. This fork's own plans mostly edit skills, docs, and manifests, where there is no signature to derive a body from. Unlike upstream, a content step (config, data, prose) states the exact text or the exact before/after, and it is exempt from the transcript and proportion checks.
"Similar to Task N" stays banned. Upstream dropped the explicit rule. Here it stays, because a subagent implementer sees only its own task brief: a pointer to another task points at nothing. Shared patterns are stated in each task, and shared names go through the Interfaces block.
Self-review checks proportion. "Placeholder scan" becomes "Step scan", which catches both a line that decides nothing and a body the signature and tests already determine. A new sixth check compares the plan's length to the spec's. When code blocks dominate, bodies are replaced with signatures and test assertions. Steps are now sized as "one action with a checkable result" instead of "2-5 minutes".
Fixes
Removed skills/writing-plans/plan-document-reviewer-prompt.md. Nothing had dispatched it since the plan reviewer subagent was replaced by self-review. The README still advertised "a pre-execution plan review gate" from that era. It now describes what actually happens: a spec-anchored self-review, then a stop for your review before anything runs.
Two more stale README claims corrected. The overview still described staged spec-then-quality reviews, which v6.8.0 replaced with one reviewer returning both verdicts. The skill-activator entry still described 70/30 keyword-density/recency recall scoring, which v6.7.0 replaced with IDF-weighted relevance gates where recency is only a tiebreak.
v6.8.0
v6.8.0 (2026-09-21)
Upstream parity pass: a silently-false test-pollution bisector fixed, one reviewer per task instead of two, and plans that actually carry the contract their implementers need.
Visible Changes
Two subagent prompt files were removed. skills/subagent-driven-development/spec-reviewer-prompt.md and code-quality-reviewer-prompt.md are gone, replaced by a single task-reviewer-prompt.md. If you dispatch either file directly, switch to the new one. The reason is local rather than borrowed: the code-reviewer template already carried a Spec Alignment section covering missing and extra scope, which was the entire job of the separate spec reviewer. Two reviewers read the same diff and the same task text, rebuilt the same context twice, and split their findings across two fix round-trips that one reviewer surfaces in one. Both verdicts are still mandatory — a review that returns only one is incomplete and gets sent back.
Fixes
find-polluter.sh reported "all tests clean" without running a single test. The script passed your pattern straight to find -path, but find . emits paths with a ./ prefix, so the documented pattern src/**/*.test.ts matched nothing. Counting lines in that empty result returned 1, so the script announced "Found 1 test files", ran nothing, and printed the clean bill of health. Every invocation since the script shipped returned a false all-clear. Fixed: the pattern is normalized for the ./ prefix, a caller-supplied ./ is no longer doubled into a never-matching form, and the collapsed form of **/ is matched too, so a test sitting directly under the base directory is not skipped. A pattern that matches nothing now exits 2 and says plainly that nothing was proven, and a pollution marker that already exists before the run exits 3 rather than blaming the first test. Covered by a new deterministic test suite that needs no network and no npm.
New Features
scripts/task-brief extracts one task from a plan into a self-contained brief file — the task body, the plan's Global Constraints, and its Spec pointer — and prints the path. The controller hands over that path instead of pasting task text it already holds, which keeps a second copy of every task, and every implementer report, out of the session that has to re-read them on every later turn. Measured on a real 18-task plan in this repository: roughly 605 tokens per task when pasted against roughly 75 when passed as a path. Task identifiers match exactly, so asking for task 3 never returns task 3.1 or task 10 — which matters, because real plans here contain all three.
scripts/review-package writes the commit list, the stat summary, and the full diff to one file and prints the path. This is a correctness guard rather than a saving. It refuses an empty range, which otherwise hands a reviewer nothing and gets back a confident "no issues found" while the task is marked reviewed, and it refuses a base that is not an ancestor of head, which produces a diff describing work nobody on the branch did. Both exit 3 and explain how to correct the range. The package reports its own size and, past roughly 25k tokens, tells the reviewer to triage from the stat and to say which files it only skimmed.
Changes
Plans now carry the contract their implementers need. The plan header gains a Spec: pointer and a Global Constraints block, and every task gains an Interfaces block naming exactly what it consumes and produces. This matters more here than upstream because implementers are hard context-isolated: a dispatched subagent sees only its own task and never the plan, so without that block it cannot learn its neighbours' signatures and invents a plausible name the next task then fails to import. subagent-driven-development scans those blocks against each other before dispatching the first task, and executing-plans does the same before starting an inline run.
Plans carry a Review Focus section, and reviewers are told the spec is a vision document. Review Focus lists up to five input classes the spec implies but no task's tests exercise, each pinned by a test added to the task that owns the code. On the reviewing side, behavior the requirements are silent about is judged by what a reasonable person using the software would expect — silence is not permission, and a crash on an unnamed input is not Minor merely because nobody wrote that input down. Reviewers also return a "Declined to judge" list, so nothing they set aside is dropped silently.
Reviewers are read-only and may not dispatch subagents. A reviewer that runs git checkout has orphaned commits made after the range under review, so review is now explicitly read-only on the checkout, with a temporary worktree as the escape hatch. Separately, every subagent prompt now bans nested dispatch: an implementer that spawns its own reviewer duplicates the review the controller dispatches anyway, at a full extra review seat per task, and its verdict reaches no one. Both constraints are in the skill templates and in the code-reviewer and red-team agent definitions, for Claude and Codex alike.
Review ranges are specified instead of guessed. Whole-branch reviews use git merge-base origin/main HEAD, because a bare origin/main shows main's newer files as phantom deletions once main moves past the branch point. Per-task reviews use the commit recorded before the implementer was dispatched, never HEAD~1, which silently drops all but the last commit of a multi-commit task.
Same-shape tasks batch into one dispatch. When a plan lists several tasks that are each the same small mechanical edit across different files, one subagent does the batch and one reviewer reads the diff as a single unit, instead of N dispatches each rebuilding the same context from zero. Batch reviews verify that every file named in the brief actually appears in the diff.
The per-task fix loop has a circuit breaker. Five rounds maximum. Rounds one through three resume the implementer that did the work; rounds four and five dispatch a fresh one on a more capable model. At the cap the controller adjudicates each open finding and records every decision. There was previously no round cap and no exit at all.
Inline execution gets a review. executing-plans went straight from the last task to finishing-a-development-branch, so the inline path shipped with no independent read of the branch. It now runs one whole-branch review first, on the most capable model available, and says plainly in its report when no subagent tool was available and the author reviewed their own work.
Test-driven development reports failures it did not cause. The verification-scope table from v6.7.1 is unchanged: scope still bounds which command runs. What changed is that scope never bounds what gets reported. A failure in that run which your change did not cause is named explicitly as pre-existing, because a red test watched scrolling past and left unmentioned is a report falsified by omission.
Test assertions no longer fail on capitalization. The Claude Code test helpers compared free-form model prose case-sensitively, so a correct answer beginning "Read plan" failed a pattern written as read.*plan. All four assertion helpers now match case-insensitively.
v6.7.1
v6.7.1 (2026-09-04)
Verification is now scaled to the change instead of defaulting to a full-suite run after every edit.
Changes
verification-before-completion gains a verification-scope table. The gate said "run the full command now" and had no notion of proportionality, so a docstring edit and a cross-subsystem rule removal earned the same five-minute suite run. A new Scale Verification to the Change section maps change scope to the command that proves it: a one-line edit gets that file's tests, one module gets its suite plus a typecheck if types moved, several modules in one subsystem get their suites, and shared types, public contracts, cross-subsystem changes, dependency bumps, and build/CI changes still get the full matrix. Three rules keep it honest — widen on evidence rather than pre-emptively, never imply an unrun suite is green (report it as unrun), and let a project's own CLAUDE.md matrix win over the table. Scoping the command is explicitly not a licence to skip the gate: the narrow command still runs and its real output still gets read.
This was the gap that forced projects to hand-write their own proportionality rules. One repo's CLAUDE.md had already patched around it in prose that named the skill directly: "verification-before-completion says to run the full proving command now. It has no notion of proportionality, so taken literally every edit becomes a full-matrix run."
Four skills now defer to that table instead of mandating the full suite. systematic-debugging Phase 4 asks for the tests covering the fix rather than the whole suite. requesting-code-review scopes its final regression pass to what the fixes actually touched. refactoring drops the awkward "unless the suite takes more than 2 minutes" escape hatch for a scoped run that biases deliberately wider — structural moves cross module boundaries more often than they look like they do — while keeping the mandatory full run in Phase 4. test-driven-development replaces the undefined "relevant broader tests" in VERIFY GREEN with the target test plus the changed module's suite, and says outright not to run the whole repo suite on every cycle.
The Stop hook's TDD reminder suggests a scope. It said "consider running tests," which nudged toward a run without saying which one. It now points at the tests covering the edited files and names the scope table, so the reminder does not itself push toward a reflexive full-suite run.
dependency-management and refactoring Phase 4 keep their full-suite mandates, deliberately. Dependency bumps and rename/move audits have unbounded blast radius — they are the bottom row of the new table, not exceptions to it. Softening them would have been consistency for its own sake.
v6.7.0
Memory stack overhaul: recall that ranks by relevance instead of recency, impact data you can trust, and a health report to check both.
New Features
tools/memory-health.js — a read-only report on your project's memory files. It shows how many tokens each artifact injects per session, how many paths project-map.md documents that no longer exist, how many documented files have changed since the map was written, and an approximate capture rate comparing significant sessions against saved decisions. Run node tools/memory-health.js whenever the memory files stop feeling trustworthy.
Configurable context window — the context pressure gate no longer assumes a 200K window. Set SP_CONTEXT_WINDOW=1m if you run a 1M-token model, or the gate blocks plan execution at 12% of your real capacity. SP_CONTEXT_PRESSURE_THRESHOLD adjusts the 60% trigger. Without configuration the gate still self-corrects from a [1m] model marker or from any turn that measurably exceeds 200K, but only after it has already misfired once — set the variable explicitly.
Changes
Memory recall now ranks by relevance, not recency. Scoring is IDF-weighted with relevance and coverage gates, so a distinctive term outweighs a common one and an entry must actually cover what you asked about. The previous model let recency outrank relevance roughly 13-to-1 on normal-length prompts, which turned recall into "show the newest entries that share any word with the prompt." Measured on real prompts, an unrelated known-issue that previously surfaced on 5 of 5 turns now surfaces on none.
Each recalled entry is injected at most once per session. A per-session ledger tracks what has already been shown, seeded with whatever the session-start hook injected on turn one. One measured session was re-injecting the same entries 11 times.
The decision-log reminder now works outside plugin-style repos. It previously matched only SKILL.md, hook, and manifest paths, so a session that redesigned src/auth/session.ts in an ordinary app never triggered it. It now also fires when a design or diagnostic skill ran alongside 2+ source-file changes, or when 4+ distinct source files changed. The broad volume rule nudges once per session rather than at every turn.
Blast radius edges are path-resolved. A file is listed as referencing a changed file only when the reference resolves to that file's actual path. Word-level matches are gone: they had produced 21 fabricated dependents for a single SKILL.md and 16 for plugin.json, and requesting-code-review feeds this list straight into review scope. The list is now deliberately incomplete — an empty list means "nothing proven," never "no dependents."
Project map staleness names the files that changed. Instead of a blanket "the map is stale" flag pointing at an unbounded diff, the session-start hook intersects the diff with the paths the map documents and lists them, so updating the map is a short work list. When the hash moved but nothing you documented changed, it now says so instead of raising a false alarm.
executing-plans checkpoints state.md after each task. This is the cross-session execution path, so it is the one most likely to be interrupted — yet it was the only one without a checkpoint. It now records the next task, what verification proved, and facts discovered during execution, and reads state.md first when resuming.
Skill invocation stats are per-session. They were kept in one shared file with a two-hour expiry, so working across two projects in the same window attributed one project's skill usage to the other.
Fixes
Superseded decisions are no longer injected at session start. Entries marked [superseded by ...] were skipped by keyword recall but injected unconditionally by the session-start hook, so an explicitly overturned decision could arrive as current context. All three paths now agree.
Documentation corrected to match behavior. The architecture docs described an automatic [auto] session-log writer that was retired in April — nothing writes session-log.md except the context-management skill. The context-management skill also instructed deriving Hot Files from Files: lines that no longer exist; it now uses git history. error-recovery said to delete fixed known-issues entries, while both injection paths are built around strikethrough — deleting them threw away the diagnosis. token-efficiency advised compacting at 50% while the gate fires at 60%. The project map's 150-line target and 200-line hard limit are now documented as distinct, with the consequence of crossing each.
Test suite coverage. The context-engine and subagent-guard unit suites existed but were never wired into the runner. The suite now runs 263 tests across 8 suites, up from 158 across 6.