cd /news/ai-agents/i-traced-the-agentic-calls-here-s-wh… · home topics ai-agents article
[ARTICLE · art-131193] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↓ negative

I traced the agentic calls. Here's where the token consumption comes from

A developer traced the network calls of an agentic coding assistant and found that a simple two-file PyQt edit consumed 3 LLM calls and roughly 760 KB of exchanged JSON, versus a single call and about 100 KB with Aider. After switching part of their workflow to single-shot edits for known files, the developer says their API bill fell from over $400 a month to under $100, and they built a lightweight harness called Frugaast around the single-prompt approach.

by read2 min views1 publishedSep 16, 2026

I expected an agentic coding assistant to use more tokens than a simpler tool. I didn't expect the difference to be this large.

For the exact same simple coding task, I measured:

Pi Aider
LLM calls 3 1
JSON exchanged ~760 KB ~100 KB

The task was very simple: a small PyQt project, two files, and a single instruction — "Make the cards width = total_width / 3." I already knew exactly which two files needed to be changed.

That made me curious about what was actually happening under the hood.

My API bill had gone above $400/month, despite trying various techniques to reduce token usage. My company doesn't pay for it, so I wanted to understand where all those tokens were going.

I therefore traced the exchanges between a coding harness and the LLM during a simple coding task.

To make the test as clean as possible, I used Pi with no add-ons. I explicitly added the two files that needed editing to its context, then compared the result with the exact same prompt in Aider.

Here is an overview of the Pi workflow:

So you see: for a simple request where I already know what files to edit, there are 3 back and forth with the LLM.

The total size of the json files exchanged is 760kB. Not huge, but again this is a very trivial test.

The ah-ah moment came when I compared this with the exact same prompt with aider.

Here is the aider workflow:

Here we have a single LLM call. The first prompt is larger, but contains all the necessary context for the LLM to work.

The total size of the json files exchanged is only 100kB !

Of course, the experiment is excessively simple and fits a case where I already know which files need editing. But in my experience, this is actually the case for a majority of my daily tasks. I don't need an agent to "discover" them and burn tokens in a loop. I just need a tool that applies the edits efficiently.

Aider is fantastic for this, but I unfortunately it is not maintained anymore. So I ended up building my own lightweight harness around this exact single-prompt philosophy called Frugaast.

By switching part of my workflow away from agentic loops and just using single-shot edits for known files, my API bill dropped from $400+ to under $100 a month.

Has anyone else traced their AI editor's network calls? I'm curious if other popular tools like Cursor or Copilot are hiding massive token bloat under the hood.

── more in #ai-agents 4 stories · sorted by recency
── more on @pi 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-traced-the-agentic…] indexed:0 read:2min 2026-09-16 ·