Hasty Briefsbeta

Bilingual

Which web frameworks are most token-efficient for AI agents?

a day ago
  • Minimal web frameworks (e.g., Express, Flask, ASP.NET Minimal API) are significantly more token-efficient for AI agents than full-featured frameworks, with a 2.9x token gap.
  • All 19 tested frameworks produced working blog apps without bugs on the initial build, highlighting rapid progress in agentic development.
  • Full-featured frameworks like SvelteKit and Django were the most efficient among their category, while Phoenix was the most token-expensive.
  • Adding features (e.g., categories) cost roughly the same token band (15-30k) across most frameworks, regardless of their initial build cost.
  • Framework overhead primarily impacts initial builds; extending existing code has similar costs everywhere.
  • ASP.NET Minimal API stood out for token efficiency, static typing, speed, and low memory use.
  • Popular frameworks like Rails and Laravel caused confusion for agents due to missing system packages.