Claude Code's source code has been leaked via a map file in their NPM registry 4 months ago
Built the hooks-based version of this: github.com/LZong-tw/clawback
Stop hook runs tsc + lint, exit 2 blocks completion. Same patterns, public API, no flags to hack.