CodeMode23 min read
Why code mode could cut your agent bill
5,276 graded agent runs on eight models, from one-line edits to 200-item jobs. On long tasks code mode cut cost 58% and wall time 51% and got 16 points more right. On tiny ones it costs more. Here is all of it.
By Michael PfaffenbergerPydanticAI Blog

Read the full story
Originally published by PydanticAI Blog on Oct 28, 2026.
Comments
Sign in to join the discussion.