Claude Code
anthropics/claude-codeAnthropic's official CLI for Claude — an agentic coding assistant that operates directly in the terminal.
Modules (39)
Foundation Utilities
Cross-cutting core utilities: auth, config, env, file I/O, session management, formatting, data structures, and shared types
Tool Framework
Extensible tool system with file ops, shell execution, code intelligence, web access, MCP tools, agent orchestration, and streaming execution pipeline
Permission & Security Framework
Permission evaluation, rule management, sandbox enforcement, shell command security analysis, path validation, and trust dialogs
Command System
Slash-command framework with input routing for session management, configuration, plugins, MCP, memory, and developer workflows
Agent & Task Orchestration
Multi-agent spawning, task lifecycle management, swarm coordination via tmux/iTerm2/in-process, and background task execution
Plugin & Skill Ecosystem
Plugin discovery, installation, marketplace sync, DXT packaging, skill loading, and lifecycle management for extensibility
Application Shell and Screens
Top-level app components, screen entry points, fullscreen layout, and primary UI orchestration
React Hooks & Input Layer
Application-level React hooks for UI state, user input, vim emulation, keybindings, voice, notifications, and virtual scroll
Bridge & Remote Connectivity
WebSocket/SSE bridge, remote sessions, SDK transport, direct-connect for IDEs, and cloud environment management
Ink Rendering Engine
Core rendering runtime: DOM, screen buffer, frame diffing, layout engine, and Yoga bindings
Application Bootstrap & Entrypoints
CLI entry points, headless mode, SDK session API, MCP server mode, app initialization, global state, and session tracking
API Client & Model Resolution
Anthropic API streaming, retries, token counting, rate limiting, model alias resolution, provider routing, and query budget tracking
Settings & Configuration
Multi-source settings loading, schema validation, migrations, policy limits, remote managed settings, and hook execution engine
MCP Integration
Model Context Protocol client with server connections, OAuth auth, tool routing, resource access, and cross-app capabilities
Context & Prompt System
System prompt construction, context injection, environment info, compaction, prompt suggestions, and reactive context providers
Analytics & Telemetry
Event logging, GrowthBook feature flags, OpenTelemetry instrumentation, Perfetto tracing, and BigQuery export
Computer Use & Chrome Integration
Computer use MCP server, executor, lock management, and Claude-in-Chrome extension with native host messaging
Permissions UI
Permission request dialogs, approval flows, permission rules management, and tool-specific permission handlers
Memory & Auto-Memory
Persistent file-based memory with auto-extraction, session memory compaction, team sync with secret scanning, and auto-dream consolidation
Agents and Tasks
Agent editor/wizard, background task management, teammate status, and team collaboration UI
Message Rendering
Message type components for assistant, user, system, and tool messages plus shell output rendering
Native Installer & Proxy
Binary download/installation, version management, package manager detection, PID locking, and upstream proxy relay
Onboarding and Feedback
Welcome/logo screens, desktop upsell, feedback surveys, grove privacy dialogs, and guest passes
Design System and UI Primitives
Reusable design-system components, themed primitives, custom select widgets, spinners, and tree controls
Ink Components and Hooks
Base Ink React components (Box, Text, ScrollBox) and hooks (selection, focus, animation)
Prompt Input
User prompt input area with suggestions, mode indicators, voice support, and input processing
LSP & Code Intelligence
Language Server Protocol client management for diagnostics, navigation, and file indexing for workspace search
MCP and Extensions
MCP server management, skills menu, hooks configuration, LSP recommendations, and plugin hints
Terminal I/O Protocol
Low-level terminal protocol handling: ANSI/CSI/OSC/DEC sequences, SGR, tokenizer, and parser
Settings and Security
Settings panels, sandbox configuration, trust verification dialogs, and managed security settings
Authentication & Credential Storage
OAuth flow management, token exchange/refresh, API key creation, and platform-adaptive secure credential storage
Diff and Code Display
Structured diff rendering, color-aware syntax diffing, and diff dialog views
Git Operations
Git filesystem primitives, config parsing, gitignore handling, and GitHub auth status
Input Suggestions
Command suggestions, directory/path completions, shell history, skill usage tracking, and Slack channel suggestions
Deep Link Protocol
Deep link parsing, building, protocol registration, and terminal launching for claude:// URLs
Companion (Buddy) System
Collectible companion sprites with rarity mechanics, speech bubbles, and notification triggers alongside the UI
Voice Input System
Voice recording, streaming speech-to-text, microphone permissions, and feature-flag gating for voice mode
Task & Plan Management
Todo item schema, ultraplan keyword detection, and plan-mode session polling
Help, Memory, and Wizards
Help documentation views, memory file management UI, and reusable wizard dialog framework