Back Issues/Search Home → Calendar → Archive → RSS → Subscribe → Services → Vendors → Blog → Current Issue → Popular → Newsletters (LinkedIn, Substack)

All issues › Volume 344, Issue 3 › IT News › Developer

Producing Healthy Code With Artificial Intelligence Costs Fewer Tokens

InfoQ, Thursday, November 19th, 2026

Adam Tornhill told GOTO Copenhagen that healthy code helps AI agents perform better and use 40% to 45% fewer tokens.

At GOTO Copenhagen, Adam Tornhill argued that agentic AI can complete tasks two to three times faster, but a study of more than 1,000 open-source projects found velocity gains were cancelled out after two months by rising code complexity.

He said the average codebase scores 5.15 on code health while AI-friendly code starts at 9.5.

An agent alone fixes roughly 50% of issues in low-health code and only 20% as health improves, but adding an MCP with code health data can bring fix rates to 90%-100%, and healthy code needs 40% to 45% fewer tokens, he said.

He recommends automated safeguards such as linting, coverage and mutation testing, and refactoring at scale via a baseline, a test safety net and an agent feedback loop.

more →  ·  More from Developer →