Back to Vault
Claude Code Internals
Tier 1

claude-code-book (SCUTBrothers)

View on GitHub Fetched 2026-07-02 3 related flows

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

3
Flows category icon
Harness Engineering

Hook 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.

01Define the danger rule set
02Implement the hook point
03Harden the patterns against evasion

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate
Flows category icon
Harness Engineering

Design the Permission Approval UX

Design approval prompts users actually read: diffs, risk framing, scoped grants, and pacing that prevents approval fatigue.

01Audit the current approval moments
02Rebuild the prompt content
03Make friction proportional to risk

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate
Flows category icon
Harness Engineering

Sandbox Untrusted Code Execution

Contain what your agent runs: isolated execution environments with resource limits, network policy, and workspace mounting done right.

01Choose the isolation and define the policy
02Build the sandboxed executor
03Enforce and verify the network policy

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps120-180 minutesAdvanced

Made with Emergent