In the news
Why code mode could cut your agent bill
Pydantic · Michael Pfaffenberger · Published · 3 min read
In 30 seconds
- What happened
- Pydantic benchmarked code mode agents on five small apps with CRUD tools, finding it cuts costs 58% and wall time 51% on long tasks.
- Why it matters
- Engineers building agents with many sequential tool calls should care, especially for tasks scaling from dozens to hundreds of items.
- Watch out
- Code mode costs more on small jobs (5 items), adds overhead, and requires sandboxed execution. Results come from specific app patterns, not all agent types.
- agent
The patterns behind this
Each one covers how the technique works, when it earns its cost, and where it breaks.
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.