AIToday
Large Language ModelsAI Coding AssistantsDaily Dose of Data SciencePublished: Jul 20, 2026, 04:00 JST2 min read

Claude Code's Real Edge: The Harness, Not the Model

Claude Code's Real Edge: The Harness, Not the Model

3 Key Points

  1. What happened

    A developer rebuilt Claude Code's agent architecture in CrewAI, an open-source framework, and found that the gap between a basic agent loop and Claude Code's capability comes from the surrounding machinery—planning, memory, sandboxing, subagent delegation, and approval systems—not the underlying language model itself.

  2. Why it matters

    Most teams underestimate how much engineering sits outside the model. A bare agent loop fails on real codebases (reads wrong files, loses context, fills memory with stale output), while Claude Code stays on track. Understanding this split—model as "brain" deciding actions, harness as "hands" executing them—shows what you actually need to build reliable coding agents in production.

  3. What to watch

    The rebuild tested against a small BankAccount class with two real bugs and five tests. The harness took the project from 3 failing and 2 passing to all 5 passing, demonstrating that planning, subagents, and sandboxing together enable the agent to fix code correctly without shortcuts like editing tests.

Ask the AI about this article →

Summaries like this, in your inbox every morning.

Context & Analysis

The article traces a common misconception: that Claude Code's power lies in Anthropic's language model. The actual insight is architectural. A basic agent loop—send task, run tools, repeat—can be written in thirty lines, yet it crumbles on real codebases because it lacks the surrounding machinery. Context rot, the slow degradation where the original goal gets crowded out by intermediate results, is a structural problem that no amount of model capability alone solves. This is where the harness layers in: planning builds a high-level roadmap; subagents delegate work to specialist contexts so the main agent doesn't hold gigabytes of file reads in memory; memory persists facts across sessions so the agent doesn't start from zero each time; and sandboxing plus approval loops provide safety without relying on prompts. The article demonstrates this by rebuilding Claude Code's architecture in CrewAI, an open-source framework. Most layers map onto built-in features—the loop, tools, planning, delegation, and memory are framework responsibilities—but three critical pieces remain the engineer's job: prompt design (role, goal, backstory of each agent), sandbox setup, and tool assignment. The test case (fixing a BankAccount class with two real bugs) confirms the hypothesis: the complete harness outperforms a bare loop not because the model is smarter, but because the harness keeps it focused, manages its memory, distributes work, and enforces safety. Cost is a trade-off: planning, subagents, and looping add API calls, so complex agent setups can become expensive.

FAQ
What makes Claude Code stay on track when a simple agent loop fails?
A bare loop loses the original goal after enough tool calls and file reads fill the context window—a problem called context rot. Claude Code adds planning (a step-by-step roadmap kept in context), subagents (delegating specific tasks to specialist agents with separate contexts), and memory (facts carried across sessions) to keep the agent anchored on long-running tasks.
How does Claude Code handle safety with shell access?
Two layers: a permission system requiring approval for sensitive actions, and a sandbox isolating execution so even approved commands cannot touch the host machine. Anthropic uses the same approach, moving code execution into a sandbox (like E2B, which spins up a fresh VM per session) rather than relying on prompts to prevent destructive commands.
What did the test rebuild prove?
The harness took a BankAccount class project from 3 failing and 2 passing tests to all 5 passing, fixing only the implementation and not editing or removing the failing tests—mirroring how Anthropic evaluates coding agents internally.
Daily Dose of Data ScienceRead Original Article

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Fukushima Prefecture expands generative AI to all 6,000 staff despite low usageITmedia AI+ · 53m ago
  • Azoma: Brands Must Optimize for 7 AI Shopping AgentsYahoo Finance AI · 53m ago
  • OpenAI, WAN-IFRA, AIRPPU launch AI program for Ukrainian newsroomsOpenAI Blog · 53m ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleGPT-2's 32,070-token vocabulary mapped in interactive hyperbolic space