cablate/claude-code-research
Independent research on Claude Code internals, Claude Agent SDK, and related tooling.
Platform-specific configuration:
{
"mcpServers": {
"claude-code-research": {
"command": "npx",
"args": [
"-y",
"claude-code-research"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](./CONTRIBUTING.md)
Independent research on Claude Code internals.
| Directory | What | Source | Count | |-----------|------|--------|-------| | `source-code-analysis/` | Full architecture reverse-engineering | Leaked TypeScript source (v2.1.88) | 75 reports | | `reports/` | Problem-oriented investigations (cache, cost, injection) | Minified npm bundle (cli.js) | 8 reports |
> Looking for the source code analysis? Go to `source-code-analysis/`. > Looking for specific bug/cost investigations? Go to `reports/`.
---
source-code-analysis/)On 2026-03-31, the full source code of Claude Code was exposed via a sourcemap file in the npm registry (discovered by Chaofan Shou, archived by Kuberwastaken and sanbuphy).
We performed a 10-domain, 75-report analysis — the most thorough publicly available breakdown of how a production AI coding agent works.
[Browse all reports →](./source-code-analysis/)
Interactive viewer — open source-code-analysis/index.html in your browser (all 75 reports are embedded, no server needed).
| Domain | Reports | Highlights | |--------|---------|------------| | Harness Engineering ⭐ | 7 | Agent Loop reverse-engineering, 12 transferable harness design principles | | System Prompt ⭐ | 6 | Complete 13-section prompt with dynamic assembly logic, 17 prompt engineering patterns | | Cost & Quota ⭐ | 8 | Cost envelope, prompt cache break detection (12 causes), Haiku→Opus 37.5x cost ga
Loading reviews...