Auditing Agent Harness Code When the Model Changes¶
A model-change harness audit re-tests harness code one component at a time on the new model, and each finding deletes, narrows, or adds a part.
Run the audit when a harness's model changes. Three conditions apply: a graded eval on the new model, one component removed per run, and one model per harness or a check per model. Anthropic gives the reason: "every component in a harness encodes an assumption about what the model can't do on its own, and those assumptions are worth stress testing, both because they may be incorrect, and because they can quickly go stale as models improve" (Anthropic: Harness design for long-running application development).
What the audit reads¶
Claude Code 2.1.335, released December 3, 2026, "Added /claude-api harness-audit to find agent harness code written for older models (loop limits, sub-agents, context management, injected reminders, session-start code) and propose fixes as a diff" (Claude Code changelog). Neither the changelog nor the skills reference says how it decides what to change, so test each change before you accept it. For prompt text, see re-auditing context engineering across model generations.
Three kinds of finding¶
Anthropic's long-running harness work spans two model changes, Sonnet 4.5 to Opus 4.5 and then Opus 4.5 to Opus 4.6. Its components moved in different directions (Anthropic):
| Finding | Component | What the post reports |
|---|---|---|
| Delete | Context resets | An earlier harness on Sonnet 4.5 needed them for "context anxiety"; "Opus 4.5 largely removed that behavior on its own" |
| Delete | Sprint decomposition | With Opus 4.6, "I started by removing the sprint construct entirely." |
| Narrow | Evaluator agent | Kept, but moved "to a single pass at the end of the run rather than grading per sprint". On 4.6 it was overhead on tasks the generator handled well alone and still gave "real lift" at the edge of the generator's capabilities. |
| Add | New components | General recommendation: "adding new pieces to achieve greater capability that may not have been possible before" |
A removal-only audit has no outcome for the evaluator. The post concludes it "is worth the cost when the task sits beyond what the current model does reliably solo."
OpenAI reports both directions in instructions. GPT-6 Astra runs tests on its own, "so the same instructions can lead to unnecessary testing", yet "Sometimes it needs a little push to keep going" (OpenAI: Rethinking skills and prompts for GPT-6 Astra). That post covers prompts, skills, and AGENTS.md, not harness code.
Remove one component per run¶
Anthropic's first simplification was a radical cut, and the author "wasn't able to replicate the performance of the original." The fix was "removing one component at a time and reviewing what impact it had on the final result" (Anthropic). Apply an audit diff the same way: score the unchanged harness on the new model, then keep a change only if its rerun holds. Isometric harness ablation gives the measurement method, and temporary compensatory mechanisms separates compensatory parts from structural ones before you cut.
Why it works¶
A component's value depends on where the task sits against what the model does reliably alone. A new model moves that limit: "On 4.6, the model's raw capability increased, so the boundary moved outward" (Anthropic). Tasks past the new limit still need the component, so the finding can be to narrow it instead of deleting it. The same shift can make new parts possible, and those are the add findings.
When this backfires¶
- Several models share the harness. A removal tuned to the newest model reaches every model served. OpenAI's prompt-side warning: "consider which models will use the instructions you leave behind" (OpenAI). Scope changes per model with per-model harness tuning.
- The component is structural. Sandboxing and permission gates stay valuable regardless of model capability (Temporary Compensatory Mechanisms), so cutting them removes a control.
- No graded eval runs on the new model. Anthropic judged each removal by its effect on the final result. Without that run, a diff line is a guess.
- The diff removes many parts at once. That repeats Anthropic's failed radical cut.
- Tasks get harder after the upgrade. Deleting the evaluator on evidence from easy tasks loses its lift on hard ones.
- An automated search proposes the removals. Deletion and cost rules reports a loop that encouraged removals and still barely shrank its harness.
Key Takeaways¶
- Before deleting a component, check whether it still pays on the hardest tasks. If it does, narrow it to those tasks instead of deleting it.
- Ask what the new model makes possible as well as what it makes redundant. A newer model can need a push the old one did not.
- Apply an audit diff one change per eval run on the new model.
- Treat
/claude-api harness-auditoutput as proposals. The changelog and skills reference name the code it targets and give no decision rules.
Related¶
- Temporary Compensatory Mechanisms — classify a component as compensatory or structural before the audit touches it
- Isometric Harness Ablation — measure each component's contribution at a pinned model
- Harness Impermanence — write scaffolding so the deletions this audit finds stay cheap
- Deletion and Cost Rules for an Evolving Agent Harness — deletion rules for a harness that an automated search evolves
- Re-Auditing Context Engineering Across Model Generations — the same model-change trigger applied to prompts and instruction files