<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Chris Gougui</title>
    <description>The latest articles on DEV Community by Chris Gougui (@cgougui).</description>
    <link>https://dev.to/cgougui</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4127559%2F67ec8af7-5794-487c-ae2d-3071f5265b70.jpeg</url>
      <title>DEV Community: Chris Gougui</title>
      <link>https://dev.to/cgougui</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cgougui"/>
    <language>en</language>
    <item>
      <title>The Real Cost of Agentic Coding</title>
      <dc:creator>Chris Gougui</dc:creator>
      <pubDate>Tue, 13 Oct 2026 09:04:19 +0000</pubDate>
      <link>https://dev.to/cgougui/the-real-cost-of-agentic-coding-3no8</link>
      <guid>https://dev.to/cgougui/the-real-cost-of-agentic-coding-3no8</guid>
      <description>&lt;p&gt;The era of the neat, predictable $20-a-month AI subscription is pretty much dead. &lt;/p&gt;

&lt;p&gt;In its place? Autonomous CLI tools hooked directly into your personal API keys, quietly torching your credit balance while you watch. If you caught the recent updates from enterprise providers booting power users over to pay-as-you-go metered tiers, you already know the vibe is shifting. Fast.&lt;/p&gt;

&lt;p&gt;Trading tight, manually scoped context for open-ended agentic loops is an absolute unit-economics nightmare.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"I experimented with API-driven agents, but watching the cost ticker climb until it hit $20 for a single commit made it impossible to defend. I’d gladly pay a flat $200 each month just to avoid that level of stress."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h3&gt;
  
  
  The "Bring Your Own Key" Bait-and-Switch
&lt;/h3&gt;

&lt;p&gt;Engineers love predictable bills. Finance teams love them even more. Flat-rate pricing meant the vendor took the financial hit if you spammed prompts all day. &lt;/p&gt;

&lt;p&gt;Modern agent harnesses flip that script entirely. &lt;/p&gt;

&lt;p&gt;Now, you're expected to "Bring Your Own Key." It sounds liberating on paper. In practice? It’s a massive financial trap. &lt;/p&gt;

&lt;p&gt;Enter the &lt;strong&gt;Taxi Meter Effect&lt;/strong&gt; : there is a very specific flavor of panic that comes with watching a terminal scroll while an LLM recursively tries to debug a simple state issue. The ticker goes up. The tokens burn. One engineer testing a popular coding agent burned through twelve bucks in 45 minutes just trying to refactor a messy React hook. &lt;/p&gt;

&lt;p&gt;Think about that for a second. Standard dev tooling usually tops out at a couple grand a year. Paying $15 an hour for an agent to hallucinate imports is just terrible business math. &lt;/p&gt;




&lt;h3&gt;
  
  
  Anatomy of the Token Furnace
&lt;/h3&gt;

&lt;p&gt;Agents run on loops. They prompt themselves. They break things. They try again. And every single turn costs real money.&lt;/p&gt;

&lt;p&gt;Let’s look at the actual receipts for a standard bug fix using a top-tier frontier model:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The Context Dump:&lt;/strong&gt; The agent vacuums up your entire project directory just to get its bearings. That’s an easy 120,000 tokens of raw input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Loop:&lt;/strong&gt; It writes a patch. Tests fail. It reads the stack trace, scratches its virtual head, and tries again. It does this six times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Input Tally:&lt;/strong&gt; &lt;code&gt;120,000 tokens × 6 cycles = 720,000 input tokens.&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Output:&lt;/strong&gt; Another 15,000 tokens burned on terminal logs, internal reasoning monologues, and patch diffs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Total damage? Around $11 for input tokens, plus another dollar or two for output. &lt;/p&gt;

&lt;p&gt;You just dropped twelve dollars on an off-by-one error. Why? Because the agent brute-forced its way through the solution by re-reading your codebase half a dozen times. &lt;/p&gt;

&lt;p&gt;Worse, agents have zero concept of frugality. Need a basic regex or a string format? The harness will happily spin up the most expensive reasoning model on the market just to avoid falling over. It's wild overkill.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Case for Deterministic Control
&lt;/h3&gt;

&lt;p&gt;There’s a much saner way to work without setting your wallet on fire.&lt;/p&gt;

&lt;p&gt;Look, autonomous agents are fine for greenfield hacking. If you’re spinning up a toy project from scratch, blowing twenty bucks of API credits to scaffold a boilerplate repo is money well spent. Ship it and move on.&lt;/p&gt;

&lt;p&gt;Legacy code is a whole different beast. &lt;/p&gt;

&lt;p&gt;When you're dealing with existing codebases, deterministic tools like aider or frugaast run circles around autonomous agents. The fix isn't complicated: take the steering wheel back.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pick your files by hand.&lt;/strong&gt; Stop letting tools blindly scrape your directory tree. Use a quick fuzzy-search or file tree to feed the model only what it actually needs. No bloat.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier your cloud models.&lt;/strong&gt; Don't pull out a sledgehammer for a thumbtack. Route simple boilerplate and syntax tweaks to lightweight, hyper-cheap API models. Save the expensive, heavy-reasoning frontier models strictly for gnarly architectural problems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Stick to single-turn diffs.&lt;/strong&gt; Ditch the endless self-healing loops. Make the AI spit out clean Search/Replace blocks, sanity-check the diff yourself, and commit. Done.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Workflow Paradigm&lt;/th&gt;
&lt;th&gt;Cost Predictability&lt;/th&gt;
&lt;th&gt;Context Strategy&lt;/th&gt;
&lt;th&gt;Execution Pattern&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Flat-Rate SaaS AI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;High (Capped monthly fee)&lt;/td&gt;
&lt;td&gt;Implicit (Active tab)&lt;/td&gt;
&lt;td&gt;Inline completion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Autonomous Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Low (Pay-per-token meter)&lt;/td&gt;
&lt;td&gt;Unconstrained (Folder crawls)&lt;/td&gt;
&lt;td&gt;Multi-turn recursive loops&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Scoped Deterministic AI&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;High (Metered, but strictly bounded)&lt;/td&gt;
&lt;td&gt;Explicit (Manual inclusion)&lt;/td&gt;
&lt;td&gt;Single-turn reviewable diffs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Emphasizing controlled, single-turn interactions over multi-step autonomous loops eliminates unpredictable token churn. Better yet, it keeps human eyes on the code.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Fallacy of "Saved Dev Time"
&lt;/h3&gt;

&lt;p&gt;The classic rebuttal is obvious: developer hours cost more than tokens. If an agent saves you thirty minutes, burning $12 on compute looks like an easy win.&lt;/p&gt;

&lt;p&gt;Fair point. But it rarely holds up in the real world. &lt;/p&gt;

&lt;p&gt;Unless you're running clean synthetic benchmarks, babysitting an agent takes real effort. You spend half your morning reviewing bloated diffs, untangling bizarre side effects, and reverting broken commits. You aren't saving time. You're just paying an hourly API toll to babysit a robot.&lt;/p&gt;

&lt;p&gt;And don't expect falling token prices to save you, either. As inference gets cheaper, agent frameworks just expand their context sweeps and crank up loop counts. Your final invoice stays exactly where it was.&lt;/p&gt;




&lt;h3&gt;
  
  
  Reclaiming Control
&lt;/h3&gt;

&lt;p&gt;The venture-backed, subsidized AI era is winding down. The bill is finally coming due. &lt;/p&gt;

&lt;p&gt;It's wild watching companies nickel-and-dime an engineer over a $10/month productivity license, while simultaneously handing out open API tabs that quietly burn thousands on unmonitored agent loops. That's a massive operational footgun. Until these harnesses learn some actual restraint, running open-ended agentic loops is pure financial leakage. The real flex in software engineering isn't total automation. It's having tight, predictable control over your stack.&lt;/p&gt;

&lt;p&gt;How is your team handling the API sticker shock lately?&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
    </item>
    <item>
      <title>I traced the agentic calls. Here's where the token consumption comes from</title>
      <dc:creator>Chris Gougui</dc:creator>
      <pubDate>Wed, 16 Sep 2026 08:12:02 +0000</pubDate>
      <link>https://dev.to/cgougui/i-traced-the-agentic-calls-heres-where-the-token-consumption-comes-from-52nf</link>
      <guid>https://dev.to/cgougui/i-traced-the-agentic-calls-heres-where-the-token-consumption-comes-from-52nf</guid>
      <description>&lt;p&gt;I expected an agentic coding assistant to use more tokens than a simpler tool. I didn't expect the difference to be this large.&lt;/p&gt;

&lt;p&gt;For the exact same simple coding task, I measured:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Pi&lt;/th&gt;
&lt;th&gt;Aider&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;LLM calls&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JSON exchanged&lt;/td&gt;
&lt;td&gt;~760 KB&lt;/td&gt;
&lt;td&gt;~100 KB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;That made me curious about what was actually happening under the hood.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I therefore traced the exchanges between a coding harness and the LLM during a simple coding task.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Here is an overview of the Pi workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;User&lt;/strong&gt; sends prompt: "Make the cards width = total_width / 3" and tags A.py and B.py.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; responds with read tool calls to fetch the contents of both files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harness&lt;/strong&gt; returns the full text of both files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; generates internal thoughts about UI design (adding color blue) and uses the edit tool on A.py and B.py to restructure the layout.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harness&lt;/strong&gt; confirms: "Successfully replaced 2 block(s)".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; uses the edit tool on B.py to add the new CSS classes for the updated components.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harness&lt;/strong&gt; confirms: "Successfully replaced 2 block(s)".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; sends a text response to the User summarizing the design changes (Modern layout, Visual Hierarchy, Selection states).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So you see: for a simple request where I already know what files to edit, there are 3 back and forth with the LLM.&lt;br&gt;
The total size of the json files exchanged is 760kB. Not huge, but again this is a very trivial test. &lt;/p&gt;

&lt;p&gt;The ah-ah moment came when I compared this with the exact same prompt with aider. &lt;/p&gt;

&lt;p&gt;Here is the aider workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Harness&lt;/strong&gt; sends a massive, pre-assembled prompt containing:

&lt;ol&gt;
&lt;li&gt;A "Repo Map" (summaries of all files in the project to provide global context).&lt;/li&gt;
&lt;li&gt;The full, raw text of the files the user "added" to the chat (A.py and B.py).&lt;/li&gt;
&lt;li&gt;Strict system instructions on how to format SEARCH/REPLACE blocks.&lt;/li&gt;
&lt;li&gt;The user's actual prompt: "Make the cards width = total_width / 3"&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; generates internal thoughts to figure out the Qt layout math.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM&lt;/strong&gt; responds with a text explanation of the planned changes, followed by three specific SEARCH/REPLACE blocks targeting A.py &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here we have a single LLM call. The first prompt is larger, but contains all the necessary context for the LLM to work.&lt;br&gt;
The total size of the json files exchanged is only 100kB !&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>coding</category>
      <category>llm</category>
    </item>
  </channel>
</rss>
