Skip to main content
RJL.pub logo

RJL.pub - AI-Native Development Journey

Chapter 5: Claude Code Deep Dive

Claude Code architecture and capabilities: every surface it runs on, core capabilities, and the 2026 operations layer
One agentic platform across terminal, IDE, desktop, web, and cloud - subagents, Skills, hooks, MCP, and the 2026 operations layer.

Architecture & Capabilities

Claude Code is Anthropic's agentic coding tool, and by 2026 it is one of the most widely used. It is not autocomplete - it operates as an autonomous agent with deep codebase understanding, multi-file editing, command execution, and the ability to run in the terminal, inside VS Code and JetBrains, on the desktop, on the web, and as headless cloud tasks. It is powered by the Claude 5 family - Opus 5.5 and Sonnet 5.5, with Fable 5.1 available for the hardest reasoning work - with up to a 1M token context window. Through 2026 it grew an operations layer to match: Routines run scheduled agent work on cron, webhooks, or API triggers; cloud sessions continue across devices and can execute on self-hosted runners inside your own network; and parallel sessions coordinate through cross-session messaging.

Core Capabilities:

* Codebase Analysis: reads and understands entire project structures
* Multi-File Refactoring: coordinated changes across dozens of files
* Subagents: spawn specialized agents that work in parallel, each with its own context
* Hooks: deterministic shell commands the harness runs on tool events (lint, format, guardrails)
* Plan Mode: read-only planning and approval before any edits
* Skills: reusable, model-invoked capabilities packaged as folders of instructions and scripts
* Background and Cloud Tasks: long-running and asynchronous work that reports back
* Background Agents: several full sessions running at once, watched from one screen
* Dynamic Workflows: a rerunnable script that orchestrates many subagents, for audits and large migrations
* Projects: a longer body of work where Claude coordinates the parallel sessions itself
* Auto Memory: learnings saved across sessions without anyone authoring them
* MCP: native Model Context Protocol support for governed tool access
* Context Window: up to 1M tokens

MCP Server Integration

MCP servers extend Claude Code with custom capabilities. Servers are added with the CLI or declared in a project's .mcp.json:

// .mcp.json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-postgres"],
      "env": {
        "DATABASE_URL": "postgresql://localhost/mydb"
      }
    },
    "playwright": {
      "command": "npx",
      "args": ["-y", "@playwright/mcp"]
    }
  }
}

Or from the terminal:

claude mcp add github -- npx -y @modelcontextprotocol/server-github
claude mcp add --transport http linear https://mcp.linear.app/sse

With these servers, Claude can query databases, drive a browser, manage Git, and call internal APIs without writing integration glue - all with permissions and audit trails in the wiring.

Effective Usage Patterns

Feature Implementation Pattern:

1. Describe the feature with business context and constraints
2. Claude proposes a plan in plan mode
3. Review and approve the plan
4. Claude implements across multiple files
5. Claude generates and runs tests
6. Review against success criteria, then iterate or ship

Orchestration Pattern:

1. Decompose a large task into independent units
2. Spawn subagents to handle units in parallel
3. Each subagent returns a structured result
4. A synthesis step verifies and integrates the work

Configuration and Memory

Claude Code reads CLAUDE.md from the project root (and nested directories), supports user-level and project-level settings, custom slash commands, hooks, and output styles. It also reads an existing AGENTS.md directly - on its own or alongside CLAUDE.md - so a repo that already carries cross-tool context does not need a second copy of it. Alongside the files you write, it now builds its own memory as it works, carrying learnings between sessions with nothing authored by hand. That is a quiet but real shift in the context story this book opened with: some of the context layer has stopped being a document you maintain and become a byproduct of use - which makes it convenient and, for anything load-bearing, still worth writing down where a reviewer can see it. The combination of CLAUDE.md for context, hooks for deterministic guardrails, and intent specs for outcomes is what turns Claude Code from a code generator into a governed contributor with measurable behavior.