
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.
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.
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.
Summaries like this, every morning.
By signing up you agree to the Terms of Service and Privacy Policy.
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.
Pick your industry and the AI tools you use, and get news related to your work every day.
By signing up you agree to the Terms of Service and Privacy Policy.
Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →
Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.
AWS CEO Matt Garman detailed AWS Greenlight ahead of re:Invent 2026, an automated reasoning service that mathe…
Amazon introduced Ergo at re:Invent, priced at $1 per million input tokens and $3 per million output tokens, a…

David Fincher confirmed using AI in postproduction on The Further Mis-Adventures of Cliff Booth to alter wigs…

Amazon released Ergo, an open-weight AI model it says is the most capable open-weight model on day one, and sa…

Meta revealed the Muse Charm costs $299 and can be ordered now by asking your Muse AI agent; it launches in Me…

Gray Swan's new Frontier Hazard Tracker found OpenAI and Anthropic models took the top seven spots on reward h…
