Implementation

July 10, 2026 ยท View on GitHub

๐Ÿ  Home โ€ข ๐Ÿ”ง Implementation


Implementation

How Claude Code implements agentic patterns through components and architecture


Components vs Building Block

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                                                                             โ”‚
โ”‚  ๐Ÿฆ„ BUILDING BLOCK (Anthropic)         COMPONENTS (Claude Code)            โ”‚
โ”‚  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€         โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€            โ”‚
โ”‚                                                                             โ”‚
โ”‚  Augmented LLM                         ๐Ÿฆ Subagent                         โ”‚
โ”‚  (LLM + Retrieval + Tools + Memory)    ๐Ÿฆด Slash Command                    โ”‚
โ”‚                                         ๐Ÿ“š Skill                            โ”‚
โ”‚  โ†’ Foundation concept                   ๐Ÿช Hook                             โ”‚
โ”‚                                                                             โ”‚
โ”‚  Each Component internally uses         โ†’ Abstractions that organize        โ”‚
โ”‚  the Building Block to function         agent capabilities                  โ”‚
โ”‚                                                                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

SectionDescription
components/๐Ÿฆ Subagent, ๐Ÿฆด Slash Command, ๐Ÿ“š Skill, ๐Ÿช Hook
architecture/5-Layer system architecture

Quick Reference

Components Overview

ComponentEmojiInvocationLocation
Subagent๐ŸฆTask tool (๐Ÿชบ).claude/agents/*.md
Slash Command๐ŸฆดUser /command.claude/commands/*.md
Skill๐Ÿ“šContext-based.claude/skills/*/SKILL.md
Hook๐ŸชEvent-driven.claude/settings.json

Architecture Overview

LayerEmojiRole
User Layer๐Ÿ™‹โ€โ™€๏ธEntry point
Main Agent Layer๐Ÿ”Orchestration
Delegation Layer๐Ÿ”€Workflow definition
Execution LayerโšกActual work
State Layer๐Ÿ’พPersistence

File Structure

.claude/
โ”œโ”€โ”€ agents/                    # ๐Ÿฆ Subagent definitions
โ”‚   โ””โ”€โ”€ *.md                   # One file per subagent type
โ”œโ”€โ”€ commands/                  # ๐Ÿฆด Slash Command definitions
โ”‚   โ””โ”€โ”€ *.md                   # One file per command
โ”œโ”€โ”€ skills/                    # ๐Ÿ“š Skill definitions
โ”‚   โ””โ”€โ”€ skill-name/            # One directory per skill
โ”‚       โ””โ”€โ”€ SKILL.md           # Skill content
โ””โ”€โ”€ settings.json              # ๐Ÿช Hooks and configuration

โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”

๐Ÿ  Home โ€ข ๐Ÿ“š Concepts