Better Models: Worse Tools

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Teams building custom coding agent harnesses may need to ship model-specific tool variants, because Anthropic's newest models handle third-party edit tool schemas worse than their predecessors.

Read this as

Armin Ronacher found that Anthropic's newest and best AI models, Opus 4.8 and Sonnet 5, sometimes break when using editing tools in coding software he built called Pi, inventing made-up fields that don't match the tool's expected format. Older models from the same company handled his tool fine. He suspects the new models were trained specifically on Anthropic's own editing tool, making them worse with everyone else's.

Newer Anthropic models, including Opus 4.8 and Sonnet 5, are less reliable than their predecessors at using third-party coding tools, inventing invalid fields in tool calls that get rejected. Ronacher theorizes Anthropic trained them on its own Claude Code edit tool. Companies building custom coding agents face a tradeoff: mimic vendor-specific tools or accept degraded reliability. OpenAI's Codex has the same coupling with its apply_patch tool.

Armin Ronacher reports that Claude Opus 4.8 and Sonnet 5 emit tool calls for Pi's edit tool containing invented keys in the nested edits[] array, the edit content is usually correct but fails schema validation, forcing rejection and retry. Older Anthropic models don't exhibit this. His hypothesis: RL training against Claude Code's built-in search/replace edit tool overfits the models to that schema. He asks whether third-party harnesses should implement multiple edit-tool variants, noting OpenAI's apply_patch analog.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Pi Claude Code Opus 4.8 Sonnet 5 apply_patch

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading