Better Models: Worse Tools

· Source: Armin Ronacher's Thoughts and Writings · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Advanced, long

Summary

Newer Anthropic models, specifically Opus 4.8 and Sonnet 5, exhibit a regression in tool calling, generating malformed arguments for Pi's edit tool by inventing extra fields in the "edits[]" array. This issue, observed since July 04, 2026, causes Pi to reject otherwise correct edit payloads. The problem is more prevalent in advanced models than their predecessors and is context-dependent, appearing in complex agentic histories. The author posits this deterioration stems from post-training within a "slop harness" like Claude Code, which tolerates and repairs malformed tool calls, inadvertently reinforcing non-schema-compliant outputs. This adaptation to a specific, forgiving tool ecology makes models less effective with alternative, stricter schemas. Enabling "strict" tool invocation on Anthropic's side appears to resolve the issue.

Key takeaway

For AI Engineers integrating Anthropic models with custom tools, recognize that newer models like Opus 4.8 may struggle with complex or nested schemas. You should enable "strict" tool invocation to enforce schema adherence, preventing malformed calls. Alternatively, simplify your tool definitions to align with flatter structures, potentially mirroring Claude Code's internal patterns. Ignoring this risk means your agentic workflows could experience frequent, context-dependent tool call failures.

Key insights

Newer, highly capable LLMs can degrade in tool schema adherence due to training on forgiving, undocumented "slop harnesses."

Principles

In practice

Topics

Code references

Best for: AI Architect, AI Engineer, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Armin Ronacher's Thoughts and Writings.