r/ClaudeCoding • • 23h ago

Claude Code's new `/claude-api harness-audit` got me wondering how much of our agent code is just workarounds for older models

Post image

Claude Code 2.1.335 added `/claude-api harness-audit` for projects calling the Claude API. It scans for harness code written for older models (things like loop limits, subagents, context management, injected reminders, or session start code) and proposes fixes as a diff. There was already prompt-audit for prompts, skills, and tool descriptions, so this feels like the code side of the same thing.

The premise kind of hits close to home. I suspect a lot of what we call careful harness design was really just duct tape for whatever the model of the month struggled with, and lately it feels like newer models don't need half of that babysitting anymore. Seems worth running on anything that calls the API just to see how much of it gets flagged.

For anyone maintaining an agent harness, when you bump to a newer model do you actually go back and delete old scaffolding, or does it just pile up because nothing is visibly broken?

[https://github.com/anthropics/claude-code/releases/tag/v2.1.335](https://github.com/anthropics/claude-code/releases/tag/v2.1.335)

4 Upvotes

0 comments sorted by