blog.arda.tr 100 entries · since 2010
▾
◂ back to the ledger

The Context Dilemma: Why Claude Feels Smarter (And Costs More)

excerpt

Official Claude tools feel magical compared to third-party integrations. The secret? Brute-force context loading that burns through your tokens.

Cover image: The Context Dilemma: Why Claude Feels Smarter (And Costs More)

I’ve been using AI coding assistants extensively—Claude, Gemini, GPT—through various providers like Cursor, Copilot, and Google’s tools. They’re good, but nothing special.

Then I tried Claude through the official apps: Claude Chat and Claude Code.

The difference was night and day. The same model felt smarter. More accurate. Fewer hallucinations. What’s going on?

The Secret Sauce: Read Before Write

The Context Dilemma

Here’s what I noticed: Anthropic’s official tools won’t let Claude write to a file before reading it first.

This seems like a small thing, but it’s everything.

When Claude Code wants to edit your code, it doesn’t just guess based on a snippet. It reads the entire file first. It sees your imports, your types, your variable names, your patterns. Only then does it make changes.

The result? It almost never breaks your build.

The cost? You’re paying for all those input tokens.

The Third-Party Shortcut

Third-party tools like Cursor and Copilot optimize for speed and cost. They send the AI a snippet or a diff and ask it to patch the code. This saves tokens but causes problems:

  • Hallucinated imports
  • Wrong variable names
  • Syntax errors from missing context
  • Suggestions that don’t match your codebase patterns

They’re trying to be efficient. But efficiency without context breeds hallucinations.

The Agentic Loop Tax

Claude Code isn’t just a chatbot—it’s an agent. When you ask it to “fix the bug,” it doesn’t fire one shot. It enters a loop:

  1. Plan: “I need to read main.go to understand the error.” (tokens burned)
  2. Execute: Reads the file. (tokens burned)
  3. Analyze: “I should check go.mod too.” (tokens burned)
  4. Execute: Reads go.mod. (tokens burned)
  5. Act: Writes the fix.

This “slow down to speed up” approach creates the illusion of higher intelligence. It isn’t actually smarter—it’s just more informed. It reads the manual before answering the test.

The Pricing Reality

For reference, Claude 4.5 Sonnet runs about $3/$15 per million tokens (input/output), while Opus is around $5/$25. Sonnet is roughly 40% cheaper.

But the model price isn’t the whole story. It’s how the official tools use it—reading entire files, checking dependencies, verifying context—that burns through your allowance.

I hit 65% of my token limit in one session. That’s the cost of accuracy.

The Google Alternative

Meanwhile, Google’s Gemini models offer huge context windows (up to 2 million tokens) at lower prices. But they operate on different principles—optimized for low token usage, which often means less thorough context gathering.

More context window doesn’t help if the tool doesn’t use it.

The Compromise I’m Exploring

Here’s my hypothesis: What if we could get the best of both worlds?

  • Gemini’s pricing and context window
  • Claude’s “read everything first” methodology

The idea: Use Gemini models but force them to operate with high token usage—reading as much of the codebase as possible before making changes. Treat context like Claude Code does, but on Gemini’s infrastructure.

Will it work? I don’t know yet. But the principle is clear:

Context is everything. The “magic” of AI coding tools isn’t the model—it’s how thoroughly they understand your code before touching it.

My Advice

  • Complex refactoring? Use official Claude tools. Accept the token burn. The accuracy is worth it.
  • Quick scripts or single functions? Use Cursor or Copilot to save your limits.
  • Large codebases? Consider whether Gemini’s massive context window, properly utilized, could bridge the gap.

The AI coding assistant wars aren’t just about model intelligence. They’re about context strategy. And right now, Anthropic is winning by simply being more thorough—even if it costs you.

I put Wikipedia, Stack Overflow and the Amiga Hardware Reference Manual on my NAS, for my agents ai · agents · mcp · homelab · amiga 6 min
Twenty-Six Entries, and the Lead Came Back ai · agents · evaluation · dev 8 min
Twenty-Two Agents, and the Lead Is Gone ai · agents · evaluation · dev 8 min