Back to Vault
Claude Code Internals
Tier 1

claude-code-decompiled (research reports)

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

Summary

A documentation-only collection of 20 independent research reports on Claude Code v2.1.88 covering architecture, agent behavior, permission design, prompt assembly, MCP integration, and context management. Deliberately ships analysis rather than extracted code.

Key Takeaways

  • Report set spans permissions, prompt assembly, MCP, and context management
  • Documentation-only approach is the cleanest for attribution
  • Strong specifics on permission tiers around dangerous tools

Reliability Note

Independent reverse-engineering effort - unofficial, verify against official Anthropic docs and behavior.

Flows informed by this source

5
Flows category icon
MCP & Tooling

Design Tool Schemas for Agents

Write tool schemas that constrain model behavior: tight types, enums over strings, and parameters that make misuse hard.

01Audit schemas for looseness
02Tighten the schemas
03Make validation errors teach

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate
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
Agent Architecture

Sub-Agent Delegation with Context Isolation

Delegate bounded work to sub-agents that run in fresh context and return only distilled results - the pattern behind scalable long tasks.

01Specify the delegation contract
02Implement the isolated sub-loop
03Wire dispatch into the parent and distill

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-150 minutesAdvanced
Flows category icon
MCP & Tooling

Deferred Tool Loading

Stop paying context for tools the task never needs: load a core set eagerly and expand the toolset on demand.

01Measure usage and pick the core
02Build the catalog and discovery
03Implement dynamic registration

+1 more steps to Done

Best forproduction-grade builds with strict verification

4 steps90-120 minutesAdvanced
Flows category icon
Harness Engineering

Rate and Blast-Radius Limits for Destructive Tools

Cap how much damage any window of agent activity can do: rate limits, change budgets, checkpoints, and undo.

01Set the budgets from real usage
02Implement the counters and ladder
03Add checkpoints and rollback

+1 more steps to Done

Best forbuilders who have shipped a basic app before

4 steps60-90 minutesIntermediate

Made with Emergent