Scope: Entire codebase — CLI (src/), Web App (web/), MCP Server (mcp-server/)
Date: 2026-04-01
Claude Code is a terminal-native AI coding assistant that provides file editing, code search, shell execution, and LLM-powered workflows through a React/Ink CLI, an optional web interface, and an MCP server for tool discovery. The overall modularity status is healthy with targeted concerns. The three deployable units (CLI, web, MCP server) maintain clean physical boundaries with network-based integration. However, within the CLI monolith, several integration points exhibit tight coupling patterns — particularly where tools directly access service internals, where the tool execution service hardcodes tool-specific branching, and where tools implicitly depend on deeply nested AppState structures. These issues are concentrated in the highest-volatility areas (tool execution, permission management, agent or