DOC: Claude Code Architecture Deep Dive - Partner SDE Research
Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened Jan 24, 2026 · closed Jan 24, 2026
Overview
Comprehensive architectural analysis of the Claude Code repository conducted for deep technical understanding.
Research Scope
This issue tracks learnings from exploring:
- Overall architecture and entry points
- Tool system and MCP integration
- Agent/task/subagent system
- Hooks system and event lifecycle
- Permissions and security model
- Conversation and context management
Learnings will be documented in comments below
Each major system will have its own detailed comment for reference.
---
@claude and @codex please review this pr
5 Comments
1. Overall Architecture
Claude Code is Anthropic's official CLI for Claude - an agentic coding tool that lives in the terminal.
Core Structure
Key Entry Points
claudein terminalclaude.ymltriggers on @claude mentionsTechnology Stack
2. Plugin Architecture
Plugin Structure
Command Definition (Markdown + YAML)
Agent Architecture
13 Production Plugins
| Plugin | Purpose |
|--------|---------|
| feature-dev | 7-phase feature workflow |
| code-review | Multi-agent PR review |
| hookify | Custom rule engine |
| ralph-wiggum | Autonomous iteration loops |
| security-guidance | Pattern detection |
| plugin-dev | Development toolkit |
| agent-sdk-dev | SDK scaffolding |
| frontend-design | High-quality UI generation |
3. Tool System
Built-in Tools
Bash(git:*))MCP Integration (Model Context Protocol)
mcp__plugin_<name>_<server>__<tool>Permission Model
Bash Pattern Matching
Bash(git:*)- All git commandsBash(npm install:*)- Specific npm commandsBash(* install)- Wildcard patternsClosing - created in wrong repo
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.