Not sure why this surprises people lol. If you've actually built real AI stuff, you already know this is exactly how it works.
The model is just the tiny smart piece in the middle. The other 98% is all the boring-but-critical scaffolding: sandboxes, permission layers, context management, tool isolation, and a ton of guardrails so it doesn't burn the house down.
@AnthropicAI just did solid engineering instead of treating the LLM like magic.
Researchers show that Claude Code is 98% not AI.
Anthropic never gave us the architecture for Claude Code. There were no docs. Just a tool that every developer is currently obsessing over.
Until it leaked recently.
A research team pulled the source code, analyzed all 500,000 lines, and found something ridiculous.
Only 1.6% of the codebase actually interacts with the AI model.
The core of Claude Code is literally just a simple while-loop. It asks the model what to do, runs a tool, and repeats.
So what is the other 98.4%?
It is hardcore, traditional software engineering.
The researchers found a massive, complex infrastructure designed entirely to babysit the AI and keep it from hallucinating or destroying your computer:
- A 7-mode permission system acting as a security bouncer.
- A 5-layer context compaction pipeline so the AI doesn't forget its goal.
- A subagent delegation mechanism with strict worktree isolation.
- Four different extensibility hooks to manage external tools safely.
Every startup right now is trying to build a better AI model to get better results.
Anthropic did the exact opposite.
They took an existing model and built a fortress of deterministic software around it.
They realized that the AI doesn't need to be smarter. It needs to be managed.