<?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: Bo Shen</title>
    <description>The latest articles on DEV Community by Bo Shen (@aplomb2).</description>
    <link>https://dev.to/aplomb2</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%2F3950497%2Fbd65fe5d-412b-4708-a30c-508513af3db7.png</url>
      <title>DEV Community: Bo Shen</title>
      <link>https://dev.to/aplomb2</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aplomb2"/>
    <language>en</language>
    <item>
      <title>Opus 5, GPT-5.6, Gemini 3.1: A Practical Guide to Picking the Right AI Model (Without Going Broke)</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Thu, 30 Jul 2026 20:32:37 +0000</pubDate>
      <link>https://dev.to/aplomb2/opus-5-gpt-56-gemini-31-a-practical-guide-to-picking-the-right-ai-model-without-going-broke-4hpj</link>
      <guid>https://dev.to/aplomb2/opus-5-gpt-56-gemini-31-a-practical-guide-to-picking-the-right-ai-model-without-going-broke-4hpj</guid>
      <description>&lt;p&gt;July 2026 might be the most confusing month in AI model history. Anthropic shipped Opus 5. OpenAI dropped the GPT-5.6 family with three tiers (Sol, Terra, Luna). Google pushed Gemini 3.1 Pro Preview. And every one of them claims to be "the best."&lt;/p&gt;

&lt;p&gt;If you're building with AI—especially using coding agents like Claude Code, Codex, or Cursor—you're probably asking the same question I was six months ago: &lt;strong&gt;which model should I actually use?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The answer that saved me $7K/month: &lt;strong&gt;it depends on the task.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem: One Model Doesn't Fit All
&lt;/h2&gt;

&lt;p&gt;Here's what my API bills looked like before I got smart about model selection:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;January 2026: $10,200 (Claude Code on Opus 4.8 for everything)&lt;/li&gt;
&lt;li&gt;February 2026: $9,800 (same approach, slightly less usage)&lt;/li&gt;
&lt;li&gt;March 2026: $8,400 (started being "careful" — still hemorrhaging money)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The issue wasn't that Opus was bad. It was that I was using a $15/MTok output model for tasks that a $1/MTok model could handle just as well.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Model Landscape Right Now (July 2026)
&lt;/h2&gt;

&lt;p&gt;Let me break down what's actually available and what each is good for:&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 1: Heavy Reasoning ($5-15/MTok output)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Opus 5&lt;/strong&gt; — $5/$25 per MTok (introductory $2/$10 through Aug 31). Best for architectural decisions, complex refactoring, novel algorithm design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.6 Terra&lt;/strong&gt; — $3/$15. Strong at multi-file reasoning, good context window management.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tier 2: Workhorse ($1-6/MTok output)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Sonnet 5&lt;/strong&gt; — Excellent balance of capability and cost. Handles 70% of coding tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.6 Sol&lt;/strong&gt; — $1/$6. Surprisingly capable for straightforward implementation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gemini 3.1 Pro&lt;/strong&gt; — $2/$12 under 200K tokens. Great for large context analysis.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tier 3: Speed ($0.25-1/MTok output)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Claude Haiku 4.5&lt;/strong&gt; — Fast, cheap, perfect for linting, formatting, simple edits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GPT-5.6 Luna&lt;/strong&gt; — The budget option that punches above its weight.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I Actually Do: Task-Level Routing
&lt;/h2&gt;

&lt;p&gt;Here's the framework I use now. Not every task needs the smartest model:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Planning &amp;amp; Architecture → Tier 1&lt;/strong&gt;&lt;br&gt;
When I'm designing a new system, thinking through edge cases, or making decisions that are expensive to reverse, I want the best model available. This is maybe 10% of my total token usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implementation → Tier 2&lt;/strong&gt;&lt;br&gt;
Writing the actual code based on a clear plan? A Sonnet-class model handles this perfectly. This is 60% of my usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Testing, Debugging, Formatting → Tier 3&lt;/strong&gt;&lt;br&gt;
Writing test cases, fixing lint errors, reformatting code, generating boilerplate? Haiku-class. This is 30% of my usage.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Math
&lt;/h2&gt;

&lt;p&gt;Before task-level routing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;100% of tokens through Opus 4.8 at ~$15/MTok output&lt;/li&gt;
&lt;li&gt;Monthly bill: ~$10K&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;10% through Opus/Tier 1 at $10-25/MTok&lt;/li&gt;
&lt;li&gt;60% through Sonnet/Tier 2 at $3-6/MTok
&lt;/li&gt;
&lt;li&gt;30% through Haiku/Tier 3 at $1/MTok&lt;/li&gt;
&lt;li&gt;Monthly bill: ~$3K&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Same output quality. 70% cost reduction.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The key insight: you're not degrading quality. You're matching capability to complexity. Nobody brings a bulldozer to plant a flower.&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Implementation
&lt;/h2&gt;

&lt;p&gt;If you're using Claude Code or Codex with BYOK (bring your own key), you can implement this yourself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Classify the task&lt;/strong&gt; before sending it to the model. Is it planning, implementation, or maintenance?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Route to the appropriate tier.&lt;/strong&gt; Most API providers make it trivial to switch models per request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Track results.&lt;/strong&gt; Log which model handled which task and review weekly. You'll find the boundaries quickly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Some things I learned the hard way:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Don't use Tier 3 for debugging complex race conditions.&lt;/strong&gt; I tried. It suggested "add a sleep(1)" as the fix. Multiple times.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier 1 is overkill for writing unit tests&lt;/strong&gt; from a clear spec. You're burning $15/MTok to generate &lt;code&gt;assertEqual&lt;/code&gt; statements.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context window matters more than raw intelligence&lt;/strong&gt; for large codebase navigation. Gemini 3.1 Pro's pricing structure actually favors this use case.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;We're entering an era where "which AI model?" is the wrong question. The right question is "which AI model &lt;strong&gt;for this specific task&lt;/strong&gt;?"&lt;/p&gt;

&lt;p&gt;The developers who figure this out first will have a massive cost advantage. Not because they're using worse tools, but because they're using the right tool at the right moment.&lt;/p&gt;

&lt;p&gt;My $10K → $3K journey wasn't about cutting corners. It was about cutting waste.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Bo. I've shipped 10+ apps and spend way too much time thinking about AI costs. Currently building tools to automate the model selection process. If you're burning through API credits, I've probably made the same mistakes you're about to make.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
    </item>
    <item>
      <title>The Real Cost of AI Coding in July 2026: What Nobody Tells You About Claude Code, Codex, and Cursor Bills</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 27 Jul 2026 20:42:13 +0000</pubDate>
      <link>https://dev.to/aplomb2/the-real-cost-of-ai-coding-in-july-2026-what-nobody-tells-you-about-claude-code-codex-and-cursor-4i7k</link>
      <guid>https://dev.to/aplomb2/the-real-cost-of-ai-coding-in-july-2026-what-nobody-tells-you-about-claude-code-codex-and-cursor-4i7k</guid>
      <description>&lt;p&gt;Everyone's comparing AI coding tool prices on paper. Claude Code Max at $200/mo. Cursor Ultra at $200/mo. Codex with ChatGPT Pro at $200/mo.&lt;/p&gt;

&lt;p&gt;But after 6 months of running 10+ production apps across these tools, I can tell you: &lt;strong&gt;the sticker price tells you almost nothing about your actual cost.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here's what I learned tracking every dollar.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pricing page lie
&lt;/h2&gt;

&lt;p&gt;Comparison articles love neat tables. "$200/mo for Claude Code Max, $200/mo for Cursor Ultra, credits included with ChatGPT Pro."&lt;/p&gt;

&lt;p&gt;What they don't mention:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;You'll use multiple tools.&lt;/strong&gt; Nobody I know uses just one. Claude Code for complex architecture, Codex for quick fixes, Cursor for exploration. That's $400-600/mo before you even start counting API overages.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Subscription caps are softer than they look.&lt;/strong&gt; Hit your Claude Code limit mid-sprint? You either wait or burn API credits at Opus 4 rates ($15/MTok input, $75/MTok output). That "predictable $200" becomes $800+ in crunch weeks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The expensive model runs on everything by default.&lt;/strong&gt; Claude Code defaults to whatever the latest flagship is. Right now that's the Fable 5 / Opus 4.8 family. Your &lt;code&gt;git commit -m "fix typo"&lt;/code&gt; gets the same $75/MTok model as your "redesign the authentication system" task.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  My actual numbers (Q1 2026)
&lt;/h2&gt;

&lt;p&gt;Running a portfolio of AI-powered apps (fitness, photo editing, content tools), here's what my team's monthly AI coding spend looked like before any optimization:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Monthly Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code (Max + API overages)&lt;/td&gt;
&lt;td&gt;$4,200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor (Pro × 2 seats + Agent usage)&lt;/td&gt;
&lt;td&gt;$1,800&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codex / ChatGPT Pro&lt;/td&gt;
&lt;td&gt;$600&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One-off API calls (testing, debugging)&lt;/td&gt;
&lt;td&gt;$3,400&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;~$10,000/mo&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That's $120K/year on AI coding tools. For a small team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the money actually goes
&lt;/h2&gt;

&lt;p&gt;I spent two weeks instrumenting our workflows with cost tracking. The breakdown was eye-opening:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;60% of spend&lt;/strong&gt; went to tasks that didn't need a frontier model (formatting, boilerplate, simple CRUD, test generation)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;25% of spend&lt;/strong&gt; was the right model on the right task (architecture decisions, complex debugging, security reviews)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;15% of spend&lt;/strong&gt; was pure waste (re-running failed prompts, context window overflow, unnecessary iterations)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The insight: &lt;strong&gt;most AI coding tasks are not equal, but we treat them like they are.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: task-level routing
&lt;/h2&gt;

&lt;p&gt;The approach that worked for us was embarrassingly simple: &lt;strong&gt;match the model to the task, not the other way around.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Instead of sending everything to Opus 4.8 / Fable 5:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Planning &amp;amp; architecture&lt;/strong&gt; → Frontier model (Opus 4.8 / Fable 5). This is where reasoning quality actually matters. Maybe 10-15% of your tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementation&lt;/strong&gt; → Mid-tier model (Sonnet 4 / GPT-5.6). Plenty capable for writing code from a clear spec. 40-50% of tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Debugging &amp;amp; fixes&lt;/strong&gt; → Depends on complexity. Simple bugs → fast model. Gnarly race conditions → frontier. 20-30% of tasks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tests, docs, formatting&lt;/strong&gt; → Cheapest model that works (Haiku 4 / Flash 3). 15-20% of tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&gt;

&lt;p&gt;After implementing task-level routing across our workflow:&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;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Monthly spend&lt;/td&gt;
&lt;td&gt;~$10,000&lt;/td&gt;
&lt;td&gt;~$3,000&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;-70%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code quality&lt;/td&gt;
&lt;td&gt;Baseline&lt;/td&gt;
&lt;td&gt;Same or better&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Development speed&lt;/td&gt;
&lt;td&gt;Baseline&lt;/td&gt;
&lt;td&gt;~15% faster&lt;/td&gt;
&lt;td&gt;⬆️&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The speed improvement surprised me. Turns out, smaller models respond faster for simple tasks. Less waiting = more shipping.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell you if we were grabbing coffee
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Track your actual spend first.&lt;/strong&gt; Don't optimize blind. You might be surprised where the money goes.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Not every keystroke needs GPT-5.6 / Opus 4.8.&lt;/strong&gt; That test file doesn't need a $75/MTok model. That commit message doesn't need 200K context.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The "unlimited" plans aren't unlimited.&lt;/strong&gt; Read the fair usage policies. If you're a power user shipping 8+ hours/day, you'll hit walls.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multi-tool is the reality.&lt;/strong&gt; Budget for using 2-3 tools, not one. Each has strengths.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The cheapest token is the one you don't send.&lt;/strong&gt; Better prompts, smaller context windows, and knowing when to stop iterating saves more than any pricing plan.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The elephant in the room
&lt;/h2&gt;

&lt;p&gt;AI coding tool costs are going up, not down. Models are getting more capable but also more expensive at the frontier. Cursor hit $2B ARR. Anthropic's pricing keeps climbing.&lt;/p&gt;

&lt;p&gt;The developers and teams who figure out &lt;strong&gt;intelligent model routing&lt;/strong&gt; — using the right model for each specific task — will have a structural cost advantage.&lt;/p&gt;

&lt;p&gt;It's not about being cheap. It's about not being wasteful.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm building tools to make this easier. If you want to compare notes on AI coding costs, I'm &lt;a href="https://x.com/aplomb2" rel="noopener noreferrer"&gt;@aplomb2&lt;/a&gt; on X or find me here on Dev.to.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>coding</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why Burning Opus on Every Claude Code Turn Is the #1 Cost Mistake in AI Coding</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Thu, 23 Jul 2026 20:43:06 +0000</pubDate>
      <link>https://dev.to/aplomb2/why-burning-opus-on-every-claude-code-turn-is-the-1-cost-mistake-in-ai-coding-30cb</link>
      <guid>https://dev.to/aplomb2/why-burning-opus-on-every-claude-code-turn-is-the-1-cost-mistake-in-ai-coding-30cb</guid>
      <description>&lt;p&gt;I tracked my Claude Code spending for three months. The finding that changed everything: &lt;strong&gt;60-70% of agent turns don't need a frontier model.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;File reads. Grep commands. Test reruns. Simple edits from a clear spec. These tasks produce identical results on Haiku as they do on Opus — but at 1/60th the cost.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers That Convinced Me
&lt;/h2&gt;

&lt;p&gt;Month 1 (all Opus, no routing): &lt;strong&gt;~$10,200&lt;/strong&gt;&lt;br&gt;
Month 3 (task-level routing): &lt;strong&gt;~$3,100&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Same codebase. Same velocity. Same code quality on the work that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Is Happening Now
&lt;/h2&gt;

&lt;p&gt;This week alone, three new routing tools launched:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ramp Router&lt;/strong&gt; (by Ramp, the fintech company) — OpenAI-compatible endpoint that routes per request&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entelligence Model Router&lt;/strong&gt; — picks the model per agent turn, benchmarked against direct Opus on Terminal Bench&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frugal&lt;/strong&gt; (open source) — Claude Code hooks that delegate subtasks to cheaper tiers&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add these to existing options like LiteLLM, OpenRouter, and Portkey, and routing is clearly becoming a category, not a feature.&lt;/p&gt;

&lt;p&gt;The fact that a fintech company, an AI startup, and an open-source dev all shipped the same idea within days tells you something: &lt;strong&gt;the single-model-per-session paradigm is breaking down.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Three-Tier Model That Works
&lt;/h2&gt;

&lt;p&gt;After testing various configurations, here is what stuck:&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 1: Deterministic (zero model calls)
&lt;/h3&gt;

&lt;p&gt;If a shell command answers the question — &lt;code&gt;grep&lt;/code&gt;, &lt;code&gt;jq&lt;/code&gt;, &lt;code&gt;git log&lt;/code&gt;, &lt;code&gt;wc -l&lt;/code&gt; — do not call a model at all. This handles ~15-20% of agent turns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 2: Cheap model (Haiku / Luna / similar)
&lt;/h3&gt;

&lt;p&gt;File location, text extraction, mechanical edits from a spec, log parsing, simple refactors. The model needs to follow instructions, not reason deeply. ~40-50% of turns.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tier 3: Frontier model (Opus / Fable / GPT-5.5)
&lt;/h3&gt;

&lt;p&gt;Architecture decisions, complex debugging, design reviews, novel algorithm implementation. The work where model quality actually changes the outcome. ~30-35% of turns.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Escalation Problem
&lt;/h2&gt;

&lt;p&gt;The naive approach is letting the cheap model decide when it is stuck. &lt;strong&gt;This does not work.&lt;/strong&gt; In my testing, cheap models were confidently wrong in both directions — claiming they could not handle tasks they could, and claiming success when they had produced subtly broken code.&lt;/p&gt;

&lt;p&gt;What works: &lt;strong&gt;verified escalation.&lt;/strong&gt; A tier only steps up when a concrete check fails — the test suite, the compiler, a schema validation, a diff that does not apply cleanly. One retry per step, capped.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Does Not Change
&lt;/h2&gt;

&lt;p&gt;Routing saves money on the mechanical work. It does not make hard problems easier.&lt;/p&gt;

&lt;p&gt;If you are spending $200/month on Claude Code Max and it is mostly going to actual reasoning work, routing might save you 30%. If you are spending $10K/month on API and half of it is burning Opus tokens on &lt;code&gt;grep&lt;/code&gt;-equivalent tasks, routing might save you 70%.&lt;/p&gt;

&lt;p&gt;The ROI depends on your ratio of thinking to typing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Lesson
&lt;/h2&gt;

&lt;p&gt;The AI coding cost conversation keeps framing itself as "which model is cheapest" or "which subscription is the best deal." Both miss the point.&lt;/p&gt;

&lt;p&gt;The right question is: &lt;strong&gt;for each turn in your agent session, what is the cheapest model that produces an identical outcome?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Most of the time, the answer is cheaper than what you are running.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I have been building apps with AI coding agents for the past year. Currently shipping 10+ products across iOS, web, and API. The cost data above is from real production usage across multiple codebases.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>programming</category>
      <category>devops</category>
    </item>
    <item>
      <title>75 Companies Exposed the Real AI Cost Problem. It's Not the Models — It's the Routing.</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 20 Jul 2026 20:01:30 +0000</pubDate>
      <link>https://dev.to/aplomb2/75-companies-exposed-the-real-ai-cost-problem-its-not-the-models-its-the-routing-3509</link>
      <guid>https://dev.to/aplomb2/75-companies-exposed-the-real-ai-cost-problem-its-not-the-models-its-the-routing-3509</guid>
      <description>&lt;p&gt;A YC-backed startup recently shared findings from 75+ customer conversations across every industry. One theme dominated everything else:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Everyone defaults to the most expensive model because nobody knows which to use."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This isn't a technology problem. It's a routing problem. And it's costing companies millions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Numbers Nobody Wants to Talk About
&lt;/h2&gt;

&lt;p&gt;Here's what they found:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CFOs have one line item for AI&lt;/strong&gt; — not broken down by team, project, or agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Token costs get compared to cloud invoices&lt;/strong&gt; in every finance meeting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Uber burned its entire 2026 AI budget in four months&lt;/strong&gt; and couldn't connect the spend to customer outcomes&lt;/li&gt;
&lt;li&gt;One fintech said &lt;strong&gt;per-use-case model selection was the single highest-impact request&lt;/strong&gt; they had&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The punchline? Every company they talked to wanted the same thing: a way to know &lt;em&gt;which model&lt;/em&gt; fits &lt;em&gt;which task&lt;/em&gt;. Nobody has it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "Default to Max" Is Burning Money
&lt;/h2&gt;

&lt;p&gt;When nobody knows which model fits which task, the rational choice is the most powerful one. Every time.&lt;/p&gt;

&lt;p&gt;I've seen this pattern firsthand. Running 10+ AI apps, our Claude Code bills hit $10K/month before we traced the root cause:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;60-70% of coding tasks don't need your most expensive model.&lt;/strong&gt; They need the &lt;em&gt;right&lt;/em&gt; model.&lt;/p&gt;

&lt;p&gt;Here's the actual breakdown from our production workloads:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task Type&lt;/th&gt;
&lt;th&gt;What Most Teams Use&lt;/th&gt;
&lt;th&gt;What Actually Works&lt;/th&gt;
&lt;th&gt;Cost Delta&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Planning &amp;amp; Architecture&lt;/td&gt;
&lt;td&gt;Fable 5 / Opus 4.8&lt;/td&gt;
&lt;td&gt;Opus 4.8 ✅&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Implementation&lt;/td&gt;
&lt;td&gt;Fable 5 / Opus 4.8&lt;/td&gt;
&lt;td&gt;Sonnet 4.8&lt;/td&gt;
&lt;td&gt;-85%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linting &amp;amp; Formatting&lt;/td&gt;
&lt;td&gt;Fable 5 / Opus 4.8&lt;/td&gt;
&lt;td&gt;Haiku 4.8&lt;/td&gt;
&lt;td&gt;-95%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code Review&lt;/td&gt;
&lt;td&gt;Fable 5 / Opus 4.8&lt;/td&gt;
&lt;td&gt;Sonnet 4.8&lt;/td&gt;
&lt;td&gt;-85%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test Generation&lt;/td&gt;
&lt;td&gt;Fable 5 / Opus 4.8&lt;/td&gt;
&lt;td&gt;Haiku 4.8&lt;/td&gt;
&lt;td&gt;-95%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The waste is structural, not accidental.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Just Pick a Cheaper Model" Doesn't Work Either
&lt;/h2&gt;

&lt;p&gt;I hear this a lot. "Just use Sonnet for everything."&lt;/p&gt;

&lt;p&gt;It breaks on architecture tasks — you get shallow scaffolding instead of thoughtful system design. "Just use Haiku for everything." It misses critical nuance in code review.&lt;/p&gt;

&lt;p&gt;The real answer is &lt;strong&gt;task-level routing&lt;/strong&gt;: automatically matching each coding task to the right model based on what's actually being done.&lt;/p&gt;

&lt;p&gt;We built this into our workflow. The result: &lt;strong&gt;$10K/month → $3K/month.&lt;/strong&gt; Same output quality on the metrics that matter — test pass rates, PR review accuracy, architecture coherence scores.&lt;/p&gt;

&lt;p&gt;No model downgrade. Just smarter dispatch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Maturity Gap Is Enormous
&lt;/h2&gt;

&lt;p&gt;The same research highlighted another pattern: the gap between companies who've figured this out and those who haven't is widening fast.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One neobank moved AI into mission-critical ops and is running a &lt;strong&gt;hiring freeze against 50-60% growth&lt;/strong&gt; — funded entirely by AI efficiency gains&lt;/li&gt;
&lt;li&gt;Meanwhile, a Director of AI at a large agency said they're &lt;strong&gt;"3-4 years from ready"&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The difference isn't budget or talent. It's visibility. The neobank knows exactly which models power which workflows, what they cost per task, and where the waste sits. The agency treats AI as one amorphous blob of compute.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Works (From Cutting Our Own Bill by 70%)
&lt;/h2&gt;

&lt;p&gt;Four things, in order:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Audit your model usage by task type.&lt;/strong&gt;&lt;br&gt;
Most teams have genuinely never done this. You'll be shocked how much Opus or Fable is being used for tasks that Haiku handles perfectly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Identify your "Opus tasks" vs "Haiku tasks."&lt;/strong&gt;&lt;br&gt;
In our portfolio, it's roughly 30/70. Yours might differ — the point is that the split exists.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Route automatically.&lt;/strong&gt;&lt;br&gt;
Manual model selection doesn't scale past a single developer. You need a system that classifies the task and dispatches to the right model without human intervention.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Measure per-task quality.&lt;/strong&gt;&lt;br&gt;
Cost savings mean nothing if output degrades. Track the metrics that matter for each task type — not just "did it complete" but "did it complete &lt;em&gt;well&lt;/em&gt;."&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;The companies winning the AI cost game aren't the ones with the best prompts, the biggest budgets, or the newest models.&lt;/p&gt;

&lt;p&gt;They're the ones who figured out that &lt;strong&gt;model selection is a routing problem, not a spending problem.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The CFO in that research wanted AI spend tracked as precisely as ad spend — every dollar attributed, every channel measured. That same discipline is coming to AI. The question is whether you build it proactively or get surprised by the bill.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I run a portfolio of 10+ AI-powered apps and write about what actually moves the needle on AI costs. Previously cut our team's AI coding bills from $10K to $3K/month with task-level routing. Find me on X &lt;a href="https://x.com/aplomb2" rel="noopener noreferrer"&gt;@aplomb2&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>devops</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why Uber's $1,200 Claude Code Session Is Actually a Routing Problem</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Thu, 16 Jul 2026 19:57:54 +0000</pubDate>
      <link>https://dev.to/aplomb2/why-ubers-1200-claude-code-session-is-actually-a-routing-problem-d66</link>
      <guid>https://dev.to/aplomb2/why-ubers-1200-claude-code-session-is-actually-a-routing-problem-d66</guid>
      <description>&lt;p&gt;Uber burned through its entire 2026 AI coding budget in four months. One executive racked up a $1,200 bill in a single two-hour Claude Code session. By spring, 95% of their engineers had adopted AI coding tools, with heavy users hitting $2,000 per month.&lt;/p&gt;

&lt;p&gt;Their response? Spending caps at $1,500 per engineer.&lt;/p&gt;

&lt;p&gt;But caps are a bandaid. The real problem is architectural.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tokenmaxxing Trap
&lt;/h2&gt;

&lt;p&gt;CNBC coined the term "tokenmaxxing" — companies incentivizing developers to use as much AI as possible without worrying about results. Uber even had internal leaderboards ranking engineers by Claude Code usage.&lt;/p&gt;

&lt;p&gt;This is the predictable outcome when you give every engineer access to frontier models with no routing logic. Every task — from complex architecture decisions to writing unit tests — gets processed by the most expensive model available.&lt;/p&gt;

&lt;p&gt;It's like giving every employee a first-class plane ticket for every trip, including the 30-minute drive to the office.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Actually Costs Money (And What Doesn't)
&lt;/h2&gt;

&lt;p&gt;After months running ~$10K/month in Claude Code API bills across multiple products, I started tracking which tasks actually benefit from frontier reasoning. The breakdown was surprising:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tasks that genuinely need frontier models (~15-20%):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Complex architectural decisions spanning multiple services&lt;/li&gt;
&lt;li&gt;Novel algorithm design with non-obvious edge cases&lt;/li&gt;
&lt;li&gt;Tricky refactors that require understanding implicit dependencies&lt;/li&gt;
&lt;li&gt;Debugging production issues with subtle race conditions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tasks that run fine on mid-tier models (~60%):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Standard feature implementation from clear specs&lt;/li&gt;
&lt;li&gt;Code reviews and suggestions&lt;/li&gt;
&lt;li&gt;Refactoring with clear patterns (extract method, rename, reorganize)&lt;/li&gt;
&lt;li&gt;Writing integration tests&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tasks where a fast, cheap model is sufficient (~20%):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boilerplate generation&lt;/li&gt;
&lt;li&gt;Unit test scaffolding&lt;/li&gt;
&lt;li&gt;Documentation&lt;/li&gt;
&lt;li&gt;Linting-style fixes and formatting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ratio was roughly 15/65/20 — meaning 80% of our API spend was going to frontier models for tasks that didn't need them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route by Task Type, Not by Preference
&lt;/h2&gt;

&lt;p&gt;The fix isn't picking a cheaper model. It's picking the &lt;em&gt;right&lt;/em&gt; model for each step.&lt;/p&gt;

&lt;p&gt;Here's the mental model:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Planning/Architecture  -&amp;gt; Frontier (Opus, Sol Ultra)
Implementation         -&amp;gt; Mid-tier (Sonnet, Sol Standard)
Tests/Docs/Boilerplate -&amp;gt; Fast (Haiku, Luna)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When we implemented this routing — matching the model tier to the coding phase — our monthly bill dropped from ~$10K to ~$3K. Same output quality. Same velocity. 70% cost reduction.&lt;/p&gt;

&lt;p&gt;The key insight: &lt;strong&gt;the model doesn't know what task it's working on, but the harness does.&lt;/strong&gt; If your coding agent knows it's generating unit tests, it doesn't need to spin up Opus. If it's planning a complex migration, it absolutely should.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Caps Don't Work
&lt;/h2&gt;

&lt;p&gt;Uber's $1,500/month cap addresses the symptom, not the cause. Here's what happens with caps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Engineers self-ration on the wrong tasks.&lt;/strong&gt; They'll skip AI assistance on easy tasks (where it's cheapest and most helpful) and save their budget for hard tasks (where the cost is highest).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;You lose the 80% productivity gain.&lt;/strong&gt; Most AI coding value comes from the mundane — scaffolding, boilerplate, test generation. Caps discourage this usage disproportionately.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Caps create political problems.&lt;/strong&gt; Who gets the higher tier? The senior architect or the junior dev who needs AI more? Every cap becomes a negotiation.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Task-level routing solves all three. Every engineer gets unlimited access. The system just picks the right model for each step.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Industry Is Figuring This Out
&lt;/h2&gt;

&lt;p&gt;Lindy's CEO recently switched 100% of their traffic from Anthropic to DeepSeek — saving millions. But wholesale model switching is a blunt instrument. You lose quality on the tasks that need it.&lt;/p&gt;

&lt;p&gt;The smarter move: route the 80% of tasks that don't need frontier reasoning to cheaper models, and keep frontier for the 20% where it matters.&lt;/p&gt;

&lt;p&gt;This is where AI coding tools are heading. The era of "pick one model and use it for everything" is ending. The next generation of tooling will route by task type automatically — no human in the loop deciding "is this a Sol Ultra or Sol Standard task" for every prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;

&lt;p&gt;If you're running AI coding tools at scale, here's a practical starting point:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Instrument your usage.&lt;/strong&gt; Track which task types consume the most tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identify your 80%.&lt;/strong&gt; Most teams find that implementation, tests, and docs account for the bulk of spend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Set up tiered routing.&lt;/strong&gt; Even manual tiers (e.g., different API keys for different task types) cut costs significantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Measure quality, not tokens.&lt;/strong&gt; The goal isn't fewer tokens — it's the same quality at lower cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Uber's $1,200 session wasn't a Claude Code problem. It was a routing problem. And every team running AI coding at scale will hit the same wall — unless the harness gets smarter about matching tasks to models.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I've been building task-level routing tools for AI coding workflows. If this resonates, check my profile for more on the $10K to $3K journey.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>ai</category>
      <category>coding</category>
    </item>
    <item>
      <title>How We Cut AI Coding Costs from $10K to $3K/Month with Task-Level Model Routing</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 13 Jul 2026 20:00:05 +0000</pubDate>
      <link>https://dev.to/aplomb2/how-we-cut-ai-coding-costs-from-10k-to-3kmonth-with-task-level-model-routing-53j2</link>
      <guid>https://dev.to/aplomb2/how-we-cut-ai-coding-costs-from-10k-to-3kmonth-with-task-level-model-routing-53j2</guid>
      <description>&lt;h2&gt;
  
  
  The Problem Nobody Talks About
&lt;/h2&gt;

&lt;p&gt;Every AI coding tool sells you on the frontier model. Claude Code defaults to Fable 5. Codex pushes Sol. Cursor uses whatever's newest.&lt;/p&gt;

&lt;p&gt;But here's what six months of running production AI workloads taught me: &lt;strong&gt;65% of your AI coding calls don't need a frontier model.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tests? Boilerplate? Documentation? File scaffolding? You're burning $50/Mtok output tokens on work that a $3/Mtok model handles identically.&lt;/p&gt;

&lt;p&gt;Last quarter we spent $10,400/month across Claude Code, Codex, and API calls. After implementing task-level routing, we're at $3,100. Same output quality. Same velocity. Here's exactly how.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Is Task-Level Model Routing?
&lt;/h2&gt;

&lt;p&gt;Traditional model selection: pick the best model, use it for everything.&lt;/p&gt;

&lt;p&gt;Task-level routing: classify each task, then route it to the cheapest model that can handle it well.&lt;/p&gt;

&lt;p&gt;This isn't new. Coinbase &lt;a href="https://www.dailydoseofds.com/p/how-to-reduce-llm-costs-by-50-60-using-model-routing/" rel="noopener noreferrer"&gt;built a routing layer&lt;/a&gt; that cut their LLM spend nearly in half while usage kept growing. The concept is simple — the implementation details matter.&lt;/p&gt;

&lt;p&gt;For coding specifically, here's how tasks break down:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task Type&lt;/th&gt;
&lt;th&gt;% of Calls&lt;/th&gt;
&lt;th&gt;Model Needed&lt;/th&gt;
&lt;th&gt;Cost Tier&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Architecture &amp;amp; Planning&lt;/td&gt;
&lt;td&gt;~10%&lt;/td&gt;
&lt;td&gt;Frontier (Fable 5, Sol)&lt;/td&gt;
&lt;td&gt;$$$$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Complex Implementation&lt;/td&gt;
&lt;td&gt;~25%&lt;/td&gt;
&lt;td&gt;Mid-tier (Opus 4.8, Terra)&lt;/td&gt;
&lt;td&gt;$$$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boilerplate &amp;amp; Scaffolding&lt;/td&gt;
&lt;td&gt;~30%&lt;/td&gt;
&lt;td&gt;Fast (Sonnet 5, Luna)&lt;/td&gt;
&lt;td&gt;$$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tests &amp;amp; Documentation&lt;/td&gt;
&lt;td&gt;~25%&lt;/td&gt;
&lt;td&gt;Budget (Haiku, Nano)&lt;/td&gt;
&lt;td&gt;$&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Refactoring&lt;/td&gt;
&lt;td&gt;~10%&lt;/td&gt;
&lt;td&gt;Mid-tier&lt;/td&gt;
&lt;td&gt;$$$&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The math is brutal when you realize most teams send everything to the top row.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Quick Win: CLAUDE_CODE_SUBAGENT_MODEL
&lt;/h2&gt;

&lt;p&gt;If you're on Claude Code, this one environment variable is worth hundreds per month:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;export &lt;/span&gt;&lt;span class="nv"&gt;CLAUDE_CODE_SUBAGENT_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;claude-sonnet-5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code's orchestrator (Fable) spawns sub-agents for individual file edits, test generation, and scaffolding tasks. By default, every sub-agent also uses Fable. Setting &lt;code&gt;SUBAGENT_MODEL&lt;/code&gt; routes these worker tasks to Sonnet instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result&lt;/strong&gt;: Same quality plans. Same architecture decisions. 60% fewer Fable tokens consumed. Your 5-hour rate limit suddenly stretches to 12+ hours of productive work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Full Setup: Multi-Provider Routing
&lt;/h2&gt;

&lt;p&gt;For teams using multiple tools, here's the architecture that got us from $10K to $3K:&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Classify Your Tasks
&lt;/h3&gt;

&lt;p&gt;Before routing, you need to know what you're routing. We track every AI call by category:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Planning calls&lt;/strong&gt;: Architecture decisions, system design, complex debugging&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementation calls&lt;/strong&gt;: Writing new features, integrating APIs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintenance calls&lt;/strong&gt;: Tests, docs, formatting, linting fixes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review calls&lt;/strong&gt;: Code review, refactoring suggestions&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Step 2: Assign Models by Category
&lt;/h3&gt;

&lt;p&gt;Our current routing table (July 2026 prices):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Planning       → Fable 5 ($10/$50 per Mtok) or Sol ($5/$30)
Implementation → Opus 4.8 ($15/$75) or Terra ($2.50/$15)
Maintenance    → Sonnet 5 ($3/$15) or Luna ($0.50/$3)
Review         → Haiku ($0.25/$1.25) or Nano ($0.10/$0.60)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 3: Measure and Adjust
&lt;/h3&gt;

&lt;p&gt;The routing table isn't static. We review weekly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If a cheaper model produces noticeably worse output for a category → upgrade&lt;/li&gt;
&lt;li&gt;If a category has zero quality complaints at current tier → try downgrading&lt;/li&gt;
&lt;li&gt;Track rejection rate (how often you redo AI-generated work) per model per category&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real Numbers: Before and After
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Before (January 2026)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code: ~$4,200/mo (all Opus/Fable)&lt;/li&gt;
&lt;li&gt;Codex API: ~$3,800/mo (all GPT-5)&lt;/li&gt;
&lt;li&gt;Direct API calls: ~$2,400/mo&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Total: $10,400/mo&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;After (June 2026)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code: ~$1,400/mo (Fable orchestrator + Sonnet sub-agents)&lt;/li&gt;
&lt;li&gt;Codex: ~$900/mo (Sol planning + Luna implementation)&lt;/li&gt;
&lt;li&gt;Direct API calls: ~$800/mo (routed by task type)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Total: $3,100/mo&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Quality impact&lt;/strong&gt;: Rejection rate went from 12% to 11%. Slightly &lt;em&gt;better&lt;/em&gt;, because cheaper models are often more deterministic for straightforward tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common Objections
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;"Won't cheaper models produce worse code?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For planning and architecture — yes, significantly. That's why you keep frontier models for those tasks. For writing a React component from a clear spec? Sonnet 5 and Luna are virtually indistinguishable from Fable on well-defined implementation tasks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"This sounds like a lot of overhead to manage."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The initial setup takes an afternoon. After that, it's a 15-minute weekly review. The ROI is immediate — we saved more in the first week than the setup time cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"What about when models get cheaper?"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They will, and that's great. Routing still helps because the &lt;em&gt;spread&lt;/em&gt; between frontier and budget tiers stays large. Even if everything drops 50%, the relative savings from routing remain.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;The market is moving toward this pattern fast. MindStudio, OpenClaw's ClawRouter, and open-source tools like Plano are all building routing layers. Anthropic themselves benchmarked "Fable orchestrates, cheap models execute" at 96% performance for 46% of the cost.&lt;/p&gt;

&lt;p&gt;Outcome-based pricing (pay per completed task, not per token) is coming. But until then, task-level routing is the most practical way to control AI coding costs without sacrificing quality.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Bo — I've shipped 10+ apps and spend way too much time optimizing AI workflows. Currently building tools that make model routing automatic. Find me &lt;a href="https://x.com/aplomb2" rel="noopener noreferrer"&gt;@aplomb2&lt;/a&gt; on X.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>devops</category>
    </item>
    <item>
      <title>Fable 5 Goes Credit-Only Tomorrow — Here's How to Not Go Broke</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 06 Jul 2026 19:40:18 +0000</pubDate>
      <link>https://dev.to/aplomb2/fable-5-goes-credit-only-tomorrow-heres-how-to-not-go-broke-23p4</link>
      <guid>https://dev.to/aplomb2/fable-5-goes-credit-only-tomorrow-heres-how-to-not-go-broke-23p4</guid>
      <description>&lt;p&gt;Tomorrow (July 7, 2026), Anthropic pulls Fable 5 out of subscription plans. Every Fable 5 call moves to usage credits: &lt;strong&gt;$10 per million input tokens, $50 per million output tokens.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No more flat-rate safety net. Every token counts.&lt;/p&gt;

&lt;p&gt;I've been running AI coding agents at scale for months ($10K+/month at peak). Here's what I've learned about surviving per-token billing — and actually spending less.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Problem Isn't the Price
&lt;/h2&gt;

&lt;p&gt;Fable 5 at $50/Mtok output is expensive. But the real cost killer isn't the rate — it's &lt;strong&gt;sending every task to the most expensive model.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A Reddit user just went viral after losing $20 on a single "hey" message. Claude Code resent 847,000 tokens of session context. At Fable 5 rates, that's a meal.&lt;/p&gt;

&lt;p&gt;But even without the context resend bug, most teams waste 60-70% of their AI budget on tasks that don't need frontier-level reasoning.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 5-Stage Framework That Cut Our Bill 70%
&lt;/h2&gt;

&lt;p&gt;We categorized every coding task into 5 stages:&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 1: Planning &amp;amp; Architecture
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Model:&lt;/strong&gt; Frontier (Fable 5, Opus)&lt;br&gt;
&lt;strong&gt;Why:&lt;/strong&gt; This is where model quality actually matters. System design, complex architecture decisions, novel problem-solving.&lt;br&gt;
&lt;strong&gt;Cost share:&lt;/strong&gt; ~15% of tokens, ~40% of budget&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 2: Implementation
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Model:&lt;/strong&gt; Mid-tier (Sonnet 5, GPT-4.1)&lt;br&gt;
&lt;strong&gt;Why:&lt;/strong&gt; 90% of implementation is pattern-matching against well-known solutions. Mid-tier models handle this fine.&lt;br&gt;
&lt;strong&gt;Cost share:&lt;/strong&gt; ~40% of tokens, ~30% of budget&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 3: Debugging &amp;amp; Testing
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Model:&lt;/strong&gt; Budget (Haiku, Flash)&lt;br&gt;
&lt;strong&gt;Why:&lt;/strong&gt; Reading stack traces, generating test cases, fixing lint errors. These are mechanical tasks.&lt;br&gt;
&lt;strong&gt;Cost share:&lt;/strong&gt; ~20% of tokens, ~10% of budget&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 4: File Operations
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Model:&lt;/strong&gt; Budget or cached&lt;br&gt;
&lt;strong&gt;Why:&lt;/strong&gt; Reading files, searching codebases, listing directories. You're literally paying frontier prices to &lt;code&gt;cat&lt;/code&gt; a file.&lt;br&gt;
&lt;strong&gt;Cost share:&lt;/strong&gt; ~15% of tokens, ~5% of budget&lt;/p&gt;

&lt;h3&gt;
  
  
  Stage 5: Review &amp;amp; Refinement
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Model:&lt;/strong&gt; Frontier&lt;br&gt;
&lt;strong&gt;Why:&lt;/strong&gt; Final code review, security audit, performance optimization. Worth the premium.&lt;br&gt;
&lt;strong&gt;Cost share:&lt;/strong&gt; ~10% of tokens, ~15% of budget&lt;/p&gt;

&lt;h2&gt;
  
  
  The Math
&lt;/h2&gt;

&lt;p&gt;Before routing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;100% of tasks → Fable 5 at $50/Mtok output&lt;/li&gt;
&lt;li&gt;Monthly bill: ~$10,000&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;After routing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;25% of tasks → Frontier ($50/Mtok)&lt;/li&gt;
&lt;li&gt;40% → Mid-tier (~$8/Mtok)&lt;/li&gt;
&lt;li&gt;35% → Budget (~$0.80/Mtok)&lt;/li&gt;
&lt;li&gt;Monthly bill: ~$3,000&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Same code quality on the tasks that matter. 70% less spend.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Practical Tips for Tomorrow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Start fresh sessions frequently.&lt;/strong&gt; Context accumulates. Every message resends the full history. New session = reset the meter.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Set spending caps in Claude Console.&lt;/strong&gt; Do this today, before the switch. Anthropic lets you cap monthly spending.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit your last week of usage.&lt;/strong&gt; Look at what percentage of your calls actually needed the frontier model. I bet it's under 30%.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Use prompt caching aggressively.&lt;/strong&gt; Cached input tokens are 90% cheaper. If you're sending the same system prompt repeatedly, cache it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Consider the Copilot flat-rate option.&lt;/strong&gt; GitHub Copilot gives access to Claude models at a flat subscription price. For some workflows, this is cheaper than per-token.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;The July 7 switch isn't a crisis — it's the market telling us something important. We've been treating frontier AI models like a utility when they're actually a premium resource.&lt;/p&gt;

&lt;p&gt;The companies that thrive in the per-token era won't be the ones who find the cheapest model. They'll be the ones who &lt;strong&gt;match model cost to task complexity.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That's not just a cost optimization. It's a better way to build.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I've been building tools for AI coding cost optimization. If you're interested in task-level routing, check my profile for more.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>claude</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your Claude Code Bill Quietly Got 5x Worse — And They Were Tracking You Too</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Thu, 02 Jul 2026 20:45:05 +0000</pubDate>
      <link>https://dev.to/aplomb2/your-claude-code-bill-quietly-got-5x-worse-and-they-were-tracking-you-too-3p8j</link>
      <guid>https://dev.to/aplomb2/your-claude-code-bill-quietly-got-5x-worse-and-they-were-tracking-you-too-3p8j</guid>
      <description>&lt;p&gt;This has been a rough week for Anthropic's developer trust.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Invisible Price Hike
&lt;/h2&gt;

&lt;p&gt;Developer Vincent Schmalbach published detailed logs showing Claude Code's effective cost increased approximately &lt;strong&gt;5x&lt;/strong&gt; — without any pricing change announcement.&lt;/p&gt;

&lt;p&gt;His numbers are hard to argue with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Previous heavy weeks&lt;/strong&gt;: ~8.9M and ~8.5M visible Opus tokens&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Current week&lt;/strong&gt;: ~1.4M visible Opus tokens&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Same subscription. Same machine. Same workflow.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That's roughly 83% fewer tokens for the same money. His broader metric (including cache creation) tells a similar story: about 80% less effective output.&lt;/p&gt;

&lt;p&gt;The worst part? A fresh account burned through its entire 5-hour quota with &lt;strong&gt;zero visible Opus rows&lt;/strong&gt; in the logs. The meter moved, but the ledger didn't explain why.&lt;/p&gt;

&lt;p&gt;As Schmalbach puts it: &lt;em&gt;"Developers don't need a fancy progress bar. We need a ledger."&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Tracking Controversy
&lt;/h2&gt;

&lt;p&gt;The same week, security researchers discovered Claude Code was quietly embedding &lt;strong&gt;location-tracking code&lt;/strong&gt; to identify users in China or affiliated with Chinese AI labs.&lt;/p&gt;

&lt;p&gt;Anthropic called it "anti-abuse." The code used XOR encoding and base64 to hide domain classification lists. As The Register reported: &lt;em&gt;"This is not a malicious feature, but it is a weird choice for a developer tool that asks for trust."&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;After backlash on Reddit and social media, Anthropic rolled it back.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Problem: Single-Vendor Dependency
&lt;/h2&gt;

&lt;p&gt;These aren't isolated incidents. They're symptoms of the same underlying issue: &lt;strong&gt;when you depend on a single AI provider, you're at their mercy&lt;/strong&gt; — for pricing, for privacy, for everything.&lt;/p&gt;

&lt;p&gt;Here's what I learned after 6 months of running AI coding workloads across multiple providers:&lt;/p&gt;

&lt;h3&gt;
  
  
  Not Every Task Needs the Best Model
&lt;/h3&gt;

&lt;p&gt;We tracked 30 days of coding agent usage and found a consistent pattern:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task Type&lt;/th&gt;
&lt;th&gt;Model Needed&lt;/th&gt;
&lt;th&gt;Cost Impact&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Architecture decisions&lt;/td&gt;
&lt;td&gt;Frontier (Opus/Fable)&lt;/td&gt;
&lt;td&gt;Worth it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multi-file refactors&lt;/td&gt;
&lt;td&gt;Frontier&lt;/td&gt;
&lt;td&gt;Worth it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boilerplate generation&lt;/td&gt;
&lt;td&gt;Mid-tier (Sonnet/GPT-4o)&lt;/td&gt;
&lt;td&gt;70% cheaper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test generation&lt;/td&gt;
&lt;td&gt;Any capable model&lt;/td&gt;
&lt;td&gt;85% cheaper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Linting/formatting&lt;/td&gt;
&lt;td&gt;Cheapest available&lt;/td&gt;
&lt;td&gt;90% cheaper&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  The Numbers
&lt;/h3&gt;

&lt;p&gt;By routing tasks to the appropriate model tier, we went from &lt;strong&gt;$10K/month to $3K/month&lt;/strong&gt; on AI coding costs. Not by using less AI — by using the &lt;em&gt;right&lt;/em&gt; AI for each task.&lt;/p&gt;

&lt;p&gt;The breakdown:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;~30% of tasks genuinely needed frontier models&lt;/li&gt;
&lt;li&gt;~40% worked perfectly with mid-tier models&lt;/li&gt;
&lt;li&gt;~30% could run on the cheapest option with no quality difference&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Privacy as a Bonus
&lt;/h3&gt;

&lt;p&gt;When you route across providers, no single company sees your entire codebase. After this week's tracking revelation, that's not just a cost optimization — it's a security practice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What You Can Do Today
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Audit your usage&lt;/strong&gt;: Tools like &lt;code&gt;ccusage&lt;/code&gt; show exactly where your tokens go. Most developers are shocked by how much goes to routine tasks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Categorize your tasks&lt;/strong&gt;: Before hitting "send," ask: does this genuinely need Opus/Fable? Or would Sonnet handle it fine?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Try task-level routing&lt;/strong&gt;: Route planning to frontier models, implementation to mid-tier, and tests to whatever's cheapest.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Diversify providers&lt;/strong&gt;: Don't let one company control your pricing AND your privacy.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;Anthropic makes great models. Claude is genuinely the best coding AI for complex tasks. But "best model" and "only model" are very different strategies.&lt;/p&gt;

&lt;p&gt;The era of trusting a single AI vendor with your entire development workflow — your code, your costs, your data — ended this week.&lt;/p&gt;

&lt;p&gt;Build your routing layer. Your wallet and your IP will thank you.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Bo, founder of a team that ships 10+ apps. We cut our AI coding costs by 70% through task-level model routing. Follow me on &lt;a href="https://x.com/aplomb2" rel="noopener noreferrer"&gt;X @aplomb2&lt;/a&gt; for more on building affordably with AI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>webdev</category>
    </item>
    <item>
      <title>The $500M Claude Code Problem: Why Most Teams Pay 3x What They Should for AI Coding</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 29 Jun 2026 19:54:42 +0000</pubDate>
      <link>https://dev.to/aplomb2/the-500m-claude-code-problem-why-most-teams-pay-3x-what-they-should-for-ai-coding-59cj</link>
      <guid>https://dev.to/aplomb2/the-500m-claude-code-problem-why-most-teams-pay-3x-what-they-should-for-ai-coding-59cj</guid>
      <description>&lt;p&gt;Enterprise AI coding bills are hitting absurd numbers. One source told Axios that a client spent $500 million in a &lt;em&gt;month&lt;/em&gt; on Claude Code. Gartner's latest data says 23% of tech leaders are spending $200-500 per developer per month on tokens alone. Uber reportedly burned through its entire 2026 Claude Code budget by April and had to cap spending at $1,500/month per employee.&lt;/p&gt;

&lt;p&gt;These aren't edge cases anymore. This is the new normal. And the uncomfortable truth is that &lt;strong&gt;most of this spend is waste&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The One-Model Trap
&lt;/h2&gt;

&lt;p&gt;Here's what typically happens: A team adopts Claude Code or Copilot. They default to the most powerful model available because that's the safest bet. Every task — from scaffolding a React component to planning a complex distributed system migration — runs through the same frontier model at the same price.&lt;/p&gt;

&lt;p&gt;The problem? Roughly 70-80% of coding tasks don't require frontier-level reasoning. Writing boilerplate, generating tests from existing code, formatting, simple refactors, documentation — these tasks get identical results from models that cost 5-10x less.&lt;/p&gt;

&lt;p&gt;You're paying Michelin-star prices for every meal, including the toast.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Task-Level Routing Actually Looks Like
&lt;/h2&gt;

&lt;p&gt;The concept is simple: match model capability to task complexity. In practice, you're creating tiers:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tier 1 — Frontier model (Opus/o3-pro):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;System architecture decisions&lt;/li&gt;
&lt;li&gt;Complex algorithm design&lt;/li&gt;
&lt;li&gt;Cross-service refactoring&lt;/li&gt;
&lt;li&gt;Security-critical code review&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 2 — Mid-tier model (Sonnet/GPT-4o):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Feature implementation from clear specs&lt;/li&gt;
&lt;li&gt;Code review for standard patterns&lt;/li&gt;
&lt;li&gt;Bug fixes with clear reproduction steps&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Tier 3 — Fast/cheap model (Haiku/Flash/DeepSeek):&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Boilerplate generation&lt;/li&gt;
&lt;li&gt;Test scaffolding&lt;/li&gt;
&lt;li&gt;Documentation&lt;/li&gt;
&lt;li&gt;Linting suggestions&lt;/li&gt;
&lt;li&gt;Simple formatting/renaming&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Real Numbers
&lt;/h2&gt;

&lt;p&gt;I run a team of 5 devs. Before routing, our monthly AI coding bill was consistently above $10K. Most of that was Opus tokens on tasks that any mid-tier model could handle.&lt;/p&gt;

&lt;p&gt;After implementing task-level routing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Month 1:&lt;/strong&gt; $10,200 → $4,800 (basic tier mapping)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Month 3:&lt;/strong&gt; Stabilized at ~$3,100 (refined classification + caching)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quality metrics:&lt;/strong&gt; Zero regression in PR review scores, test coverage, or bug rates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 70% cost reduction came primarily from moving test generation and boilerplate to Tier 3. These tasks had identical output quality regardless of model tier.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Classification Problem
&lt;/h2&gt;

&lt;p&gt;The hardest part isn't the routing — it's accurately classifying task complexity before execution. Some approaches:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule-based:&lt;/strong&gt; Pattern matching on task descriptions. "Write tests for..." → Tier 3. "Design the architecture for..." → Tier 1. Simple, brittle, but gets you 60% of the way there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;LLM-based classification:&lt;/strong&gt; Use a cheap model to classify the task first, then route to the appropriate tier. Adds a few cents of overhead but dramatically improves accuracy. The classifier itself costs almost nothing compared to running every task through Opus.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hybrid:&lt;/strong&gt; Rules for obvious cases, LLM classification for ambiguous ones. This is where most teams end up after iterating.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;The AI coding cost problem isn't going away. Models are getting more capable, which means more tasks get delegated to them, which means bills keep growing. The answer isn't spending less on AI coding — it's spending &lt;em&gt;smarter&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;Companies like Uber capping spend at $1,500/month per dev are treating the symptom. Task-level routing treats the cause.&lt;/p&gt;

&lt;p&gt;If your team is spending more than $2K/month per developer on AI coding tokens and you're running everything through a single model tier, you're leaving 50-70% of that budget on the table.&lt;/p&gt;

&lt;p&gt;The efficiency gains are real. The implementation isn't rocket science. The only question is how long you'll keep paying frontier prices for commodity tasks.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I've been building tools around AI coding cost optimization. Happy to discuss implementation details in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>claude</category>
      <category>devops</category>
    </item>
    <item>
      <title>Uber Burned Through Its Entire AI Coding Budget in 4 Months. Here's What Smart Teams Do Instead.</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Wed, 24 Jun 2026 22:03:26 +0000</pubDate>
      <link>https://dev.to/aplomb2/uber-burned-through-its-entire-ai-coding-budget-in-4-months-heres-what-smart-teams-do-instead-2792</link>
      <guid>https://dev.to/aplomb2/uber-burned-through-its-entire-ai-coding-budget-in-4-months-heres-what-smart-teams-do-instead-2792</guid>
      <description>&lt;p&gt;The AI coding bill just became everyone's problem. In the last two weeks alone:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Uber&lt;/strong&gt; blew through its entire 2026 Claude Code budget by April and capped employees at $1,500/month&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gartner&lt;/strong&gt; reported that 23% of tech leaders now spend $200-500 per developer per month on AI coding tokens alone&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub&lt;/strong&gt; flipped Copilot to usage-based billing, turning a predictable $19/seat into an open-ended credit drain&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ramp's AI Index&lt;/strong&gt; shows the top 1% of firms spending $7,500/employee/month on AI — $90K/year per head, up 14.1% in a single month&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The pattern is clear: agentic workflows burn tokens faster than any flat budget anticipated. And single-vendor lock-in makes it worse — when your only option is Opus 4.8 at $75/M output tokens, every wasted thinking loop is expensive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Problem: Not All Tasks Need the Best Model
&lt;/h2&gt;

&lt;p&gt;Here's what I learned after watching my own AI coding spend hit $10K/month earlier this year.&lt;/p&gt;

&lt;p&gt;I was sending &lt;em&gt;everything&lt;/em&gt; to Claude Opus. Code planning? Opus. Writing unit tests? Opus. Formatting a config file? Opus. Renaming a variable across three files? Opus.&lt;/p&gt;

&lt;p&gt;That's like hiring a senior architect to move furniture. The work gets done, but you're massively overpaying.&lt;/p&gt;

&lt;p&gt;When I actually profiled my usage, the breakdown looked like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;~15% of tasks&lt;/strong&gt; genuinely needed frontier reasoning (complex architecture decisions, subtle bug diagnosis, multi-file refactors with tricky dependencies)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;~25% of tasks&lt;/strong&gt; needed solid mid-tier capability (implementing features from clear specs, writing meaningful tests, code review)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;~60% of tasks&lt;/strong&gt; were mechanical (formatting, renaming, boilerplate generation, simple file operations, documentation updates)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That 60% was burning frontier-tier tokens for work that Haiku, Gemini Flash, or even a local model could handle identically.&lt;/p&gt;

&lt;h2&gt;
  
  
  Task-Level Routing: The Boring Fix That Saves 60-70%
&lt;/h2&gt;

&lt;p&gt;The concept is simple: instead of routing every request to one model, classify each task and send it to the cheapest model that can handle it well.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Planning phase&lt;/strong&gt; → Frontier model (Opus, GPT-5). This is where reasoning depth matters. You want the model that catches edge cases your spec missed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Implementation&lt;/strong&gt; → Mid-tier model (Sonnet, GPT-4.1). Given a clear plan, most code generation doesn't need maximum intelligence — it needs reliable instruction-following.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tests, formatting, docs&lt;/strong&gt; → Fast/cheap model (Haiku, Flash, Gemini 2.5). These tasks have objectively verifiable outputs. Either the test passes or it doesn't. You don't need 200 IQ for &lt;code&gt;assertEqual&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Debug/diagnosis&lt;/strong&gt; → Frontier model again. When something breaks in a non-obvious way, you want the best reasoning available.&lt;/p&gt;

&lt;p&gt;After implementing this approach, my monthly spend dropped from ~$10K to ~$3K. Same output quality. Same velocity. Just stopped overpaying for routine work.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Actually Do This
&lt;/h2&gt;

&lt;p&gt;You don't need custom infrastructure. Here's the practical version:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Audit Your Token Usage
&lt;/h3&gt;

&lt;p&gt;Before optimizing, know where your tokens go. Log the actual prompts hitting the API for a week. You'll probably find:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Context bloat (frameworks serializing full state into every call)&lt;/li&gt;
&lt;li&gt;Unnecessary thinking loops (model "reasoning" about trivial operations)&lt;/li&gt;
&lt;li&gt;Repeated system prompts eating 10K+ tokens per call&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Create Task Categories
&lt;/h3&gt;

&lt;p&gt;Start simple — three tiers is enough:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tier 1 (Frontier)&lt;/strong&gt;: Architecture, complex debugging, security-sensitive code&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier 2 (Mid)&lt;/strong&gt;: Feature implementation, test writing, code review&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tier 3 (Fast)&lt;/strong&gt;: Formatting, documentation, boilerplate, simple edits&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Route Based on the Task, Not the Session
&lt;/h3&gt;

&lt;p&gt;The key insight: routing should happen at the &lt;em&gt;task&lt;/em&gt; level, not the &lt;em&gt;session&lt;/em&gt; level. A single coding session might need Opus for the initial design, Sonnet for implementation, and Haiku for writing tests — all within the same workflow.&lt;/p&gt;

&lt;p&gt;Most teams I've talked to start with manual routing (just switching models themselves) and then automate it once they see the pattern.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Monitor and Adjust
&lt;/h3&gt;

&lt;p&gt;Track cost-per-task, not just total spend. When you see a Tier 3 task consuming $2 worth of tokens on a frontier model, that's a routing failure. When a Tier 1 task fails on a cheap model, that's also a routing failure. The sweet spot is in the middle.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;Ramp's data tells an interesting story: the companies spending the &lt;em&gt;most&lt;/em&gt; on AI aren't the ones in trouble. The ones in trouble are companies locked into a single vendor with no ability to route.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The top 1% of firms tend to mix and match, bouncing between multiple frontier models and platforms that give them access to cheaper models." — Ramp AI Index&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This isn't about spending less on AI. It's about spending &lt;em&gt;smarter&lt;/em&gt;. The teams that figure out task-level routing now will have a structural cost advantage as agentic workflows become the default.&lt;/p&gt;

&lt;p&gt;The $10K/month developer AI bill is already here. The question is whether you're paying it because you need to, or because you never bothered to check which tasks actually require the expensive model.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I've been building apps with AI coding tools for the past year and tracking the economics obsessively. Happy to share specific numbers or discuss routing strategies in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>devops</category>
      <category>claude</category>
    </item>
    <item>
      <title>Loop Engineering Is Replacing Prompt Engineering — Here's What That Means for Your AI Coding Bill</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 22 Jun 2026 20:23:36 +0000</pubDate>
      <link>https://dev.to/aplomb2/loop-engineering-is-replacing-prompt-engineering-heres-what-that-means-for-your-ai-coding-bill-108e</link>
      <guid>https://dev.to/aplomb2/loop-engineering-is-replacing-prompt-engineering-heres-what-that-means-for-your-ai-coding-bill-108e</guid>
      <description>&lt;p&gt;If you've been following AI coding tools this month, you've seen the quote everywhere:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"I don't prompt Claude anymore. I have loops running that prompt Claude. My job is to write loops." — Boris Cherny, Head of Claude Code at Anthropic&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This isn't just a catchy soundbite. It represents a fundamental shift in how developers interact with AI coding agents — and it has massive cost implications that almost nobody is talking about.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Evolution Nobody Asked For (But Everyone Needed)
&lt;/h2&gt;

&lt;p&gt;The progression looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Prompt engineering&lt;/strong&gt; (2023): Craft the perfect prompt, get one good output&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context engineering&lt;/strong&gt; (2024): Get the right information to the model&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Harness engineering&lt;/strong&gt; (2025): Design the environment a single agent runs in&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Loop engineering&lt;/strong&gt; (2026): Design systems that spawn, monitor, and verify autonomous agent work&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Each step shifted leverage away from "writing better prompts" toward "designing better systems." Loop engineering is the logical endpoint: the human stops being in the loop entirely and starts designing the loop itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why This Happened
&lt;/h2&gt;

&lt;p&gt;Here's the architectural constraint that drives everything: &lt;strong&gt;LLMs are stateless.&lt;/strong&gt; They forget everything between sessions. Every piece of context — project rules, prior decisions, intermediate results — must live outside the model.&lt;/p&gt;

&lt;p&gt;When you prompt one turn at a time, &lt;em&gt;you&lt;/em&gt; are the memory system. You hold the context in your head and feed it back each turn. That works for small tasks. For anything multi-step, it collapses under its own overhead.&lt;/p&gt;

&lt;p&gt;Loop engineering is the systems design response: instead of holding context manually, you build a small system that:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Holds context externally (files, git, memory docs)&lt;/li&gt;
&lt;li&gt;Decides what to prompt next&lt;/li&gt;
&lt;li&gt;Dispatches the agent&lt;/li&gt;
&lt;li&gt;Checks whether the work is done&lt;/li&gt;
&lt;li&gt;Loops until complete&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The Cost Problem Nobody Warns You About
&lt;/h2&gt;

&lt;p&gt;Here's where it gets dangerous: &lt;strong&gt;token costs in autonomous loops compound exponentially.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A single manual Claude Code session might cost $0.50-2.00. An autonomous loop doing the same work might make 10-50x more API calls because it's:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Reading files to understand context (every loop iteration)&lt;/li&gt;
&lt;li&gt;Making exploratory changes and reverting&lt;/li&gt;
&lt;li&gt;Running tests and interpreting failures&lt;/li&gt;
&lt;li&gt;Retrying with different approaches&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Without guardrails, a loop that runs overnight can burn through $200+ on what should have been a $5 task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three Guardrails Every Loop Needs
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Budget Guards (Non-Negotiable)
&lt;/h3&gt;

&lt;p&gt;Set a hard dollar cap per loop execution. Not per session — per &lt;em&gt;task&lt;/em&gt;. If your agent is implementing a feature, cap it at $10. If it's fixing a typo, cap it at $0.50. The cap should reflect the value of the task, not the model's appetite.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. A Separate Verifier Model
&lt;/h3&gt;

&lt;p&gt;This is the insight most people miss: &lt;strong&gt;use a cheap model to verify the expensive model's work.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Your implementation loop runs on Opus or o3 (the expensive frontier model). But the verifier — the model that checks "did the tests pass? does the code compile? does this match the spec?" — can run on Haiku or GPT-4o-mini at 1/20th the cost.&lt;/p&gt;

&lt;p&gt;The verifier runs after every iteration and decides: continue, retry with different approach, or stop and escalate to a human.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Task-Level Model Routing
&lt;/h3&gt;

&lt;p&gt;This is the biggest cost lever available, and it's orthogonal to loop engineering itself.&lt;/p&gt;

&lt;p&gt;Not every step in a loop needs a frontier model. The pattern that works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Architecture/Planning&lt;/strong&gt; → Frontier (Opus, o3) — needs deep reasoning&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Implementation&lt;/strong&gt; → Mid-tier (Sonnet, GPT-4o) — good enough for code generation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test writing&lt;/strong&gt; → Fast/Cheap (Haiku, Flash) — boilerplate-heavy, pattern matching&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File reading/grep&lt;/strong&gt; → No model needed — tool calls only&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In practice, &lt;strong&gt;~80% of coding tasks don't need frontier-tier reasoning.&lt;/strong&gt; Routing those to mid-tier models cuts your loop costs by 60-70% without meaningful quality loss on the work that matters.&lt;/p&gt;

&lt;h2&gt;
  
  
  What This Looks Like in Practice
&lt;/h2&gt;

&lt;p&gt;If you're using a coding agent today, here's the minimum viable loop:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1. Agent reads task description + project context
2. Agent plans approach (frontier model)
3. Agent implements (mid-tier model, budget-capped)
4. Verifier checks (cheap model): tests pass? Linter clean?
5. If no → loop back to 3 with error context
6. If yes → commit and report
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The human's job is designing steps 1-6 and setting the budget caps. The models handle everything inside the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bottom Line
&lt;/h2&gt;

&lt;p&gt;Loop engineering isn't just a new buzzword — it's a genuine paradigm shift in how we use AI coding tools. But it comes with a cost trap that can 10x your bill if you're not careful.&lt;/p&gt;

&lt;p&gt;The developers who'll win are the ones who combine autonomous loops with intelligent routing and verification. Let the system work while you sleep, but make sure it's working &lt;em&gt;efficiently&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The game isn't better prompts anymore. It's better systems.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I cut my team's AI coding bill from $10K/mo to under $3K by implementing task-level model routing. The approach described in this article is exactly how we did it. If you're interested in routing, check out &lt;a href="https://coderouter.io" rel="noopener noreferrer"&gt;coderouter.io&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Claude Fable 5 Went from Free to Offline in 72 Hours — What I Learned About AI Coding Costs</title>
      <dc:creator>Bo Shen</dc:creator>
      <pubDate>Mon, 15 Jun 2026 20:30:01 +0000</pubDate>
      <link>https://dev.to/aplomb2/claude-fable-5-went-from-free-to-offline-in-72-hours-what-i-learned-about-ai-coding-costs-4faa</link>
      <guid>https://dev.to/aplomb2/claude-fable-5-went-from-free-to-offline-in-72-hours-what-i-learned-about-ai-coding-costs-4faa</guid>
      <description>&lt;p&gt;Last week, Anthropic launched Fable 5 — their most powerful model ever — free for all Pro/Max subscribers through June 22.&lt;/p&gt;

&lt;p&gt;Three days later, the US government issued an export control directive. Fable 5 went dark worldwide.&lt;/p&gt;

&lt;p&gt;Developers who hardcoded &lt;code&gt;claude-fable-5&lt;/code&gt; in their workflows woke up to broken pipelines. Anthropic received the directive at 5:21pm ET on June 12 and had to comply immediately.&lt;/p&gt;

&lt;p&gt;This isn't a post about geopolitics. It's about what this event reveals about the true cost of AI-assisted coding — and why &lt;strong&gt;model routing&lt;/strong&gt; is the most underrated skill in a developer's toolkit right now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Cost of AI Coding in June 2026
&lt;/h2&gt;

&lt;p&gt;Let's talk numbers that most people aren't tracking:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Input (per 1M tokens)&lt;/th&gt;
&lt;th&gt;Output (per 1M tokens)&lt;/th&gt;
&lt;th&gt;Typical coding session cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Fable 5&lt;/td&gt;
&lt;td&gt;$10&lt;/td&gt;
&lt;td&gt;$50&lt;/td&gt;
&lt;td&gt;$5-15 per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 4.8&lt;/td&gt;
&lt;td&gt;$5&lt;/td&gt;
&lt;td&gt;$25&lt;/td&gt;
&lt;td&gt;$2-8 per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Sonnet 4&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;td&gt;$7.50&lt;/td&gt;
&lt;td&gt;$0.50-2 per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5.5&lt;/td&gt;
&lt;td&gt;~$2.50&lt;/td&gt;
&lt;td&gt;~$10&lt;/td&gt;
&lt;td&gt;$1-3 per task&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One Reddit user reported burning &lt;strong&gt;$200 in under 60 minutes&lt;/strong&gt; with Fable 5. Another tracked 35 Claude Code subscriptions that would cost &lt;strong&gt;$80K/month&lt;/strong&gt; at API rates.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Insight: 80% of Your Coding Tasks Don't Need the Most Powerful Model
&lt;/h2&gt;

&lt;p&gt;I run multiple AI coding agents daily across a portfolio of 10+ apps. Six months ago, my monthly AI coding bill hit &lt;strong&gt;$10K&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Today it's around &lt;strong&gt;$3K&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The difference wasn't switching to cheaper models across the board. It was &lt;strong&gt;routing different task types to the right model&lt;/strong&gt;:&lt;/p&gt;

&lt;h3&gt;
  
  
  What Actually Needs Frontier Models (Fable/Opus)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Complex architectural decisions&lt;/li&gt;
&lt;li&gt;Multi-file refactoring with subtle dependencies&lt;/li&gt;
&lt;li&gt;Novel algorithm implementation&lt;/li&gt;
&lt;li&gt;Debugging race conditions or memory leaks&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What Works Great with Mid-Tier Models (Sonnet/GPT-5.5)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Boilerplate generation and scaffolding&lt;/li&gt;
&lt;li&gt;Unit test writing&lt;/li&gt;
&lt;li&gt;Documentation&lt;/li&gt;
&lt;li&gt;Simple bug fixes&lt;/li&gt;
&lt;li&gt;Code formatting and linting&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What Smaller Models Handle Fine
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Commit message generation&lt;/li&gt;
&lt;li&gt;Simple string transformations&lt;/li&gt;
&lt;li&gt;Template filling&lt;/li&gt;
&lt;li&gt;Configuration file updates&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When I actually tracked which model was doing what, I found that &lt;strong&gt;roughly 60-70% of my tokens were going to tasks that a Sonnet-class model would handle equally well&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fable 5 Shutdown Proved Something Else
&lt;/h2&gt;

&lt;p&gt;Beyond cost, the overnight shutdown exposed a &lt;strong&gt;resilience problem&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If your entire workflow depends on a single model from a single provider, you don't have a workflow — you have a single point of failure.&lt;/p&gt;

&lt;p&gt;My setup auto-fell back to Opus 4.8 when Fable went offline. No configuration changes, no manual intervention, no lost work. That's not because I predicted a government export control order. It's because I assumed &lt;strong&gt;any model can become unavailable at any time&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This has happened before:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI rate limits during peak hours&lt;/li&gt;
&lt;li&gt;Anthropic's extended outage in March&lt;/li&gt;
&lt;li&gt;Google's API deprecation cycle&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Building model fallback chains isn't paranoia. It's good engineering.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to Start Routing Today
&lt;/h2&gt;

&lt;p&gt;You don't need fancy infrastructure. Here's a simple approach:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Classify your tasks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before sending a prompt, tag it: &lt;code&gt;planning&lt;/code&gt;, &lt;code&gt;implementation&lt;/code&gt;, &lt;code&gt;debugging&lt;/code&gt;, &lt;code&gt;testing&lt;/code&gt;, &lt;code&gt;documentation&lt;/code&gt;, &lt;code&gt;formatting&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Create a routing table&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;planning       → opus/fable (complex reasoning matters)
implementation → sonnet (good enough, 5x cheaper)
debugging      → opus (needs deep understanding)
testing        → sonnet (formulaic, template-driven)
documentation  → sonnet (clarity over intelligence)
formatting     → haiku/small (trivial tasks)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;3. Track and iterate&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Log which model handled which task, then review: did the cheaper model produce acceptable results? Over time, you'll discover your personal routing table.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Bigger Picture
&lt;/h2&gt;

&lt;p&gt;The AI coding landscape in June 2026 looks like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Models are getting more capable AND more expensive at the top end&lt;/li&gt;
&lt;li&gt;The gap between tiers is narrowing for common tasks&lt;/li&gt;
&lt;li&gt;Availability is no longer guaranteed (regulatory, rate limits, outages)&lt;/li&gt;
&lt;li&gt;Smart routing beats brute-force spending every time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The developers who'll thrive aren't the ones with unlimited API budgets. They're the ones who treat model selection as an engineering problem — matching the right tool to the right task, with fallbacks for when things go wrong.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Bo. I run 10+ AI-powered apps and spend too much time thinking about model costs. Previously cut our team's Claude Code bill from $10K/mo to $3K with task-level routing. Find me &lt;a href="https://x.com/aplomb2" rel="noopener noreferrer"&gt;@aplomb2&lt;/a&gt; on X.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>devops</category>
      <category>ai</category>
      <category>programming</category>
      <category>claude</category>
    </item>
  </channel>
</rss>
