claude-code-book (SCUTBrothers)
Summary
A second book-length Chinese treatment of Claude Code's source ('Understanding Claude Code In Depth') with a compiled PDF and LaTeX sources. Focuses on turning the complex system into reusable engineering knowledge: source structure, runtime mechanics, permissions and extension points, security and context strategy.
Key Takeaways
- Dedicated chapters on the permission model and extension points
- Treats security and context strategy as first-class harness concerns
- Complements the Orange Book with a different chapter decomposition
Reliability Note
Independent reverse-engineering effort - unofficial, verify against official Anthropic docs and behavior. Original text in Chinese.
Flows informed by this source
3Hook a Permission Layer onto Dangerous Tools
Intercept dangerous tool calls with a hook layer: pattern rules, approval gates, and blocks that the model cannot talk its way past.
+1 more steps to Done
Best forbuilders who have shipped a basic app before
Design the Permission Approval UX
Design approval prompts users actually read: diffs, risk framing, scoped grants, and pacing that prevents approval fatigue.
+1 more steps to Done
Best forbuilders who have shipped a basic app before
Sandbox Untrusted Code Execution
Contain what your agent runs: isolated execution environments with resource limits, network policy, and workspace mounting done right.
+1 more steps to Done
Best forproduction-grade builds with strict verification