@rasbt - Claude Code Harness Beats
@rasbt on X A researcher (Sebastian Raschka) looked through leaked Claude Code source and argues its edge over the Claude web chat comes mostly from the surrounding software harness, not the underlying model. He walks through the context handling, caching, tooling, and subagent design that make it work well.
- Claude Code loads live repo state (branch, recent commits, CLAUDE.md) and splits prompts into static and dynamic parts so the static part can be cached and reused.
- It fights context bloat with file-read deduplication and by writing oversized tool outputs to disk, keeping only a preview and a file reference in context.
- Dedicated Grep, Glob, and LSP tools replace raw shell calls, which the author thinks gives better permissions handling and richer code understanding than a chat UI treating code as static text.
Sebastian Raschka's post argues that Claude Code's advantage over the Claude web chat comes mostly from its software harness, not from the underlying model. He says he saw snapshots of the leaked TypeScript codebase on GitHub and won't link them for legal reasons, but he pulls out several design choices he thinks are instructive. His core claim is that if you swapped in a model like DeepSeek, MiniMax, or Kimi and tuned the harness for it, you'd likely get strong coding performance too. That's a testable-sounding thesis, though it's his belief rather than something he demonstrates.
The concrete mechanics are where the post earns its keep. Claude Code loads live repo context at the start of a session: the main branch, the current branch, recent commits, and a CLAUDE.md file. The prompt is split into static and dynamic sections with a boundary marker, so the static part can be cached globally and not reprocessed every turn. The model is told to use a dedicated Grep tool rather than shelling out to grep or rg, presumably for better permission handling and result collection, and there's a separate Glob tool for file discovery. An LSP tool handles call hierarchy and find-references, which Raschka sees as a major step up from a chat UI that treats code as static text.
On context management, the system deduplicates file reads by checking whether a file has changed, writes oversized tool output to disk and keeps only a preview plus a pointer in context, and autocompacts long conversations. It also maintains a structured markdown session file with sections such as current state, task specification, files and functions, errors and corrections, and a worklog, which Raschka compares to how people keep notes while working. Subagents and forks round it out: forked agents reuse the parent's cache, so side tasks like summarization or memory extraction can run without polluting the main loop. Raschka's bottom line is that the gap with the web UI comes from these performance and context-handling details, plus the convenience of working from files on your own machine rather than uploading them.