Dev.to AI 🤖 Ai 👁 0 📖 5 min read

Oompa Loompas, Hawkeye, and the Hulk: How I Route Three LLMs to Crush Token Costs

Sending every coding task to your largest frontier model is like hiring a structural engineer to carry cinder blocks off a flatbed truck. You get the bricks moved, sure, and you get an invoice that makes your eyes water.

Sending every coding task to your largest frontier model is like hiring a structural engineer to carry cinder blocks off a flatbed truck. You get the bricks moved, sure, and you get an invoice that makes your eyes water.

When you run agentic coding workflows every day across production repositories, token burn is not an abstract benchmark. It hits your monthly bill, slows your feedback loops, and degrades accuracy by stuffing your context window with irrelevant noise.
To stop bleeding tokens, I stopped treating AI as one all-purpose brain. I split the work across a three-character strike team: an Oompa Loompa, the Hulk, and Hawkeye.

I run this daily on Anthropic's Claude lineup (Haiku, Sonnet, and Opus), though the pattern is completely provider-agnostic. You can map these exact roles onto OpenAI, Google Gemini, open-weight models, or a mix-and-match roster across different vendors.

Why Single-Model Workflows Bleed Money and Signal
When engineers adopt CLI coding agents or IDE assistants, most fall into one of two expensive traps:

  • The Brute-Force Trap: You point a flagship reasoning model at a massive repository and say, "Track down this race condition and fix it." Your most expensive model burns premium tokens reading README files, scanning directory trees, checking package manifests, and writing boilerplate imports. You pay flagship reasoning rates for basic file I/O.
  • The Context-Bloat Trap: Even frontier models lose precision when you drown their context window in raw directory dumps, verbose stack traces, and unrelated modules. As context fills up with low-value text, attention degrades, edge cases slip through, and the model hallucinates fixes for files it barely needed to read. You do not need maximum cognitive firepower for every keystroke. You need the right specialist at the exact moment a step demands it.

The Three-Character Lineup

  1. The Oompa Loompa: Recon and Factory-Floor Legwork (Haiku / Flash / Mini)
    The Oompa Loompa lives on the factory floor. It is fast, dirt cheap, and built for tireless repetition. It does not need to understand your five-year system architecture or product roadmap.
    Its only job is high-throughput legwork:

    • Traversing directory trees and mapping repository layouts.
    • Running targeted grep searches across thousands of files.
    • Summarizing noisy build logs and test outputs.
    • Doing initial file reads to separate relevant modules from dead weight. The Oompa Loompa finds the needle in the haystack, strips away the clutter, and hands clean, distilled context up the chain.
  2. The Hulk: Deep Reasoning and Battle Plans (Opus / Flagship Reasoning)
    Yes, the comic-book Hulk smashes things rather than drawing architectural diagrams. Stay with me on the metaphor. In this setup, the Hulk is your overwhelming heavy-hitting force. You do not deploy him to sort screws on an assembly line. You unleash him when a problem is tangled, high-risk, and spans five microservices.
    The Hulk takes the clean context gathered by the Oompa Loompa and does the heavy cognitive lifting:

    • Tracing cross-service dependencies and hidden side effects.
    • Weighing architectural trade-offs.
    • Identifying failure modes before a single line of code changes.
    • Drafting a concrete, step-by-step action plan. Crucially, this is where I insert a strict human review gate. Before any code gets written, I read the Hulk's plan, challenge shaky assumptions, tighten edge cases, and approve the checklist. Flagship models are too expensive and too powerful to run blind without human sign-off on the blueprint.
  3. Hawkeye: Precision Execution (Sonnet / Mid-Tier Workhorse)
    Once the plan is locked, Hawkeye steps onto the roof. He is not hauling crates on the factory floor, and he does not need Hulk-level brute force. He is precision incarnate. Give him a clear target, and he hits dead center every single time at a fraction of Opus's cost.

Hawkeye takes the approved checklist and drives execution from start to finish:

  • Writing clean, idiomatic production code.
  • Wiring up interfaces, tests, and configurations.
  • Running test suites and fixing localized lint or type errors.

How the Play Runs in Production
The real leverage is not just assigning three static labels. The magic happens when Hawkeye orchestrates the boundaries dynamically during execution.
[Oompa Loompa: Haiku / Flash] ──(Scans repos, reads files, filters noise)──▶ [Hulk: Opus / Flagship]
│
(Reasons & drafts action plan)
▼
[Human Review]
│
(Approved)
▼
[Oompa Loompa: Haiku / Flash] ◀──(Quick file reads/checks)── [Hawkeye: Sonnet / Mid] ──(Edge-case escalation)──▶ [Hulk: Opus / Flagship]

Here is the exact sequence from zero to shipped pull request:

  • Recon Phase (Oompa Loompa): Point the lightweight model at the codebase first. It crawls the directories, locates the exact modules involved, pulls the relevant snippets, and discards everything else.
  • Strategy Phase (Hulk + Human Gate): The flagship model ingests that distilled context and drafts an explicit, step-by-step execution plan. Review the plan in two minutes, verify that it matches system constraints, and approve it.
  • Execution Phase (Hawkeye): The mid-tier workhorse works through the approved checklist item by item.
    • Downward delegation: Halfway through a refactor, Hawkeye needs to check a type definition or inspect a utility file. Instead of burning its own context window, it dispatches the Oompa Loompa to fetch and summarize that file.
    • Upward escalation: Hawkeye hits an unexpected race condition or a subtle schema conflict not covered in the original plan. Rather than guessing and digging a hole, it escalates that specific bottleneck back up to the Hulk for a surgical second opinion, gets the resolution, and immediately goes back to shooting arrows.

Single-Vendor or Mix-and-Match Hybrid Rosters
Because this is a workflow architecture rather than a vendor lock-in trick, you can run it inside a single ecosystem or build a hybrid roster across providers:

  • All-Claude Setup: Haiku for repo recon, Opus for architectural planning, and Sonnet for daily execution.
  • All-Gemini or All-OpenAI Setup: Pair the fastest lightweight tier for scanning, the flagship reasoning tier for planning, and the balanced mid-tier for coding.
  • Mix-and-Match Dream Team: Use an ultra-cheap, high-context model like Gemini Flash to ingest and filter massive repository trees, hand the distilled brief to Claude Opus to architect the fix, and let Claude Sonnet execute the implementation and test loops.

Three Reasons This Pattern Pays Off Immediately

  • Your context stays razor-sharp: The Oompa Loompa acts as a bouncer at the door. Your reasoning and execution models only ever see verified, high-signal code, cutting down hallucinations.
  • You pay for deep reasoning once, not per keystroke: Thinking through a hard architectural problem requires a flagship brain. Typing out the implementation, updating imports, and iterating on unit tests belongs on the mid-tier workhorse.
  • Your human gate sits at the highest-leverage choke point: Reviewing a 40-line action plan from the Hulk takes two minutes and catches flawed assumptions before you spend thousands of tokens generating 800 lines of code in the wrong direction.

Key Takeaway

  • Stop treating your LLMs like interchangeable clones, and stop forcing one model tier to carry your entire engineering lifecycle.
    Put the Oompa Loompas on the factory floor to gather raw signal, bring in the Hulk to draw the battle plan, lock the plan with a human review gate, and let Hawkeye hit the target.

  • Match the model to the cognitive load of each step, and watch your token bill drop while your code quality climbs.

How are you splitting model tiers across your daily coding workflow?

Read my LinkedIn post

AIEngineering #LLM #AgenticWorkflows #ModelRouting #ClaudeCode #SoftwareArchitecture #DeveloperProductivity #AIOrchestration #BuildInPublic

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.