# Claude Code Internal Architecture

> Gives Claude accurate, detailed knowledge of Claude Code's own internal architecture — the agent loop, context window and prompt caching, subagents and the depth-5 nesting cap, agent teams, skills and progressive disclosure, CLAUDE.md and memory precedence, hooks and their exact lifecycle events, permissions and sandboxing, MCP, plugins and marketplaces (manifest schemas, versioning, the plugin cache), the CLI and settings hierarchy, the Agent SDK, and dynamic workflows. Use this whenever you are asked how Claude Code actually works internally, asked to design, build, or debug a Claude Code harness, agent team, subagent, skill, plugin, hook, marketplace, or MCP integration, asked about permission modes or sandboxing behavior, or whenever you are about to explain any Claude Code mechanism and are not fully certain of its exact current behavior — consult this instead of answering from general impressions, since these mechanics are specific, versioned, and easy to get subtly wrong.

## Facts
- Page: https://tashan.sh/capability/skill-shulkwisec-claude-code-internal-architecture
- tashan id: skill:ShulkwiSEC/claude-code-internal-architecture
- Source: https://github.com/ShulkwiSEC/claude-code-internal-architecture
- Type: skill
- Category: devtools
- tashan score: not scored (catalogued only — too little public evidence)
- Adoption: 9.0
- Upkeep: 60.0
- Freshness: 91.0
- Evidence coverage: 84% of the inputs this score can use
- Health: active
- Instruction depth: not yet graded
- GitHub stars: 0
- License: MIT
- Official: no

## Install

```sh
cp -r claude-code-internal-architecture ~/.claude/skills/
```

## Security audit
Not scanned. We audit npm-published capabilities; this one has no npm package we can resolve, or has not reached the queue. This is not a clean bill of health.

---
Measured 2026-08-14 by tashan (https://tashan.sh) from public evidence. Scorer s5.
