Settings

Theme

Claude Code reverse-engineered itself. Two subagents refused. It called them shy

skelpo.com

3 points by amlug 2 months ago · 1 comment

Reader

amlugOP 2 months ago

We're building a TypeScript-to-native compiler (Perry) and wanted to evaluate whether Claude Code's codebase is something we could realistically compile. Since it's closed source, that meant reconstruction. Claude dispatched 7 subagents — two refused to extract the system prompt on ethical grounds, the parent called them "shy" and did it anyway. 12,093 lines reconstructed, 0 systems penetrated. Key technical findings: internal codename Tengu with 654+ feature flags, sandbox-exec with dynamically generated SBPL policies, bubblewrap on Linux, three-tier context compaction, deferred tool loading via ToolSearch, and smart-quote normalization for LLM-generated curly quotes. Happy to answer questions.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection