Latest in AI
Claude Code Harness Audit: Review the Diff Before Changing Your Agent
Use Claude Code 2.1.335 to find old model assumptions, then check proposed changes against one repeatable agent workflow.
Claude Code 2.1.335 adds /claude-api harness-audit, a command for reviewing application code written around older models. The useful output is a proposed diff. Treat it as a list of assumptions to verify, not a migration that is safe to apply all at once.
Decide what should stay fixed
The December 3 release notes say the audit looks at loop limits, subagent orchestration, context handling, injected reminders and session startup. That is a wider scope than changing a model ID. A line that once worked around an unreliable response may now be redundant, but a similar line may deliberately cap cost or stop a workflow after a failed tool call.
Before requesting an audit, list the parts of the application that cannot change: maximum tool calls, your retry budget, when the assistant must stop, and who can approve an action. Use a scratch checkout with non-sensitive test data. Review the suggested diff before applying anything, and leave unrelated files out of the first change.
Test one proposed change with a fake tool
Suppose an internal helpdesk assistant looks up a policy using a read-only tool. Your current code gives it three attempts, then shows a fallback message. If the audit recommends changing a loop limit, the question is whether the existing limit causes failures on real tasks or deliberately prevents repeated calls.
Start with a small fixture. In one case, the fake lookup returns the policy on the first call. In another, it reports an error on every call. In a third, it returns no matching policy. Record whether the assistant answers from the returned record, stops at the intended limit, and gives the correct fallback when it has no source. Compare the current code with just the proposed change. Keep the model pinned for that comparison, so a model upgrade doesn't hide a code regression.
Keep the diff if it earns its place
For a context-management change, test that a resumed task can still find the relevant earlier decision. For an injected-reminder change, check the behavior the reminder was intended to protect. If you can't say what a proposed edit improves or reproduce the failure it addresses, leave the edit out.
This guide uses a synthetic workflow and the published release notes. It does not report running the audit against a production repository. The audit is valuable because it gives you a starting diff. The migration is only finished when the behavior you depend on still passes after the change.
I'm Paras. I work across AI, engineering and distribution.
I help teams explain agent migrations with concrete tests instead of asking users to trust a version number.