Skip to Content
Developer GuideArchitecture Overview

Architecture

Deep-dive into the Claude Code agent system architecture.


Architecture Overview

┌───────────────────────────────────┐ │ User Input Layer │ │ (Terminal, Telegram, etc.) │ └────────────────┬──────────────────┘ ┌───────────────────────────────────┐ │ Claude Code CLI │ │ (commands, agents, hooks) │ └────────────────┬──────────────────┘ ┌──────────┼──────────┐ │ │ │ ▼ ▼ ▼ ┌───────────┐┌───────────┐┌─────────────┐ │ Slash ││ Agents ││ Skill Packs │ │ Commands ││ (.md ││ (multi-step)│ │ (.md) ││ personas)││ │ └─────┬─────┘└─────┬─────┘└──────┬──────┘ │ │ │ └─────────────┼─────────────┘ ┌───────────────────────────────────┐ │ Python Scripts Layer │ │ (data fetchers, parsers) │ └────────────────┬──────────────────┘ ┌──────┬──────┼──────┬──────┐ │ │ │ │ │ ▼ ▼ ▼ ▼ ▼ ┌──────┐┌──────┐┌──────┐┌──────┐┌──────────┐ │ APIs ││ DBs ││Files ││Apple ││ External │ │Google││SQLite││JSONL ││Notes ││ 1Pass │ │GitHub││ ││ .md ││Health││ Telegram │ └──┬───┘└──┬───┘└──┬───┘└──┬───┘└────┬─────┘ │ │ │ │ │ └───────┴───────┼───────┴─────────┘ ┌───────────────────────────────────┐ │ Knowledge Vault │ │ (PARA + knowledge base) │ └───────────────────────────────────┘

Key Design Principles

PrincipleWhat It Means
Deterministic + ProbabilisticScripts for repeatable tasks, LLM for reasoning
Hooks enforce correctnessPre/post hooks validate work, inject context
PARA structureProjects, Areas, Resources, Archives — consistent everywhere
Symlinks for portabilityCommands/agents live in vault, symlinked to ~/.claude/
Credential vault for secretsNo hardcoded credentials — everything via op CLI or env vars

Sections

  • Components — Agents, commands, and skill packs
  • Data Flow — How data moves through the system
  • Scheduling — Time-based, event-based, and hybrid patterns
Last updated on