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.
The user proposes a tag-based EDIT tool for local LLM agents, using line-number and checksum tags instead of verbatim text to save tokens and increase reliability.
Current CAS (Check and Set) edit methods require the old text verbatim, causing token waste and failure with hallucinations or formatting issues.
The new approach returns lines prefixed with a 4-character tag (checksum) and allows edits by line:tag pairs, reducing token usage especially for deletions.
The tool is effective with models like DeepSeek v4 Flash, and the line:tag format helps LLMs exploit line information for ranges and follow-up calls.