Claude Code

Claude Code is Anthropic's agentic coding tool — a CLI (and IDE extension) that runs Claude directly in the developer's environment, with access to the local filesystem, shell, and external tools via MCP.

What It Does

Claude Code is an agent built on Claude that specializes in software engineering tasks: writing and editing code, running tests, reading documentation, searching codebases, executing shell commands, and managing git. It operates as a full agentic loop with tools, not just a code-completion autocomplete.

Key capabilities:

  • Read, write, and edit files across the local filesystem
  • Execute shell commands and interpret results
  • Search code (grep, find, AST search)
  • Run tests and iterate on failures
  • Manage git (commit, branch, PR creation via gh)
  • Connect to external tools via MCP
  • Supports hooks: shell commands triggered on events (e.g., after each tool call)

Architecture

Claude Code runs as a CLI process that wraps the Claude API. Each conversation is an agentic loop: the model sees the conversation history and tool results, produces tool calls or a response, and the loop continues. The host (Claude Code itself) handles permission prompts, tool execution, and context management (including compaction when context fills).

Differentiating Features

  • Permission model: the user approves or denies individual tool calls, with configurable auto-approval for safe operations. This gives human oversight without requiring constant interruption.
  • CLAUDE.md: a per-project (or per-user) markdown file that provides the model with project-specific instructions, conventions, and context. Read at the start of each session. Files cascade in monorepos — both root and subdirectory versions load together. Path-gated rules can isolate folder-specific guidance. The most effective CLAUDE.md files are short: every line should prevent Claude from making a mistake; anything else should be removed. The Anthropic team's own CLAUDE.md reportedly contains only build commands, execution order, single-test invocations, and a "Gotchas" section for recurring mistakes.
  • CLAUDE.local.md: a machine-local, gitignored companion file. Captures personal patterns — recurring PR feedback, individual habits to correct — that accumulate into rules Claude applies automatically without prompting. Useful pattern: dump reviewer comments immediately after a review, prune entries once the patterns become automatic. Maintains two sections: project-specific review feedback and personal habits.
  • Subagents: Claude Code supports spawning subagents via the Agent tool (renamed from Task tool in v2.1.63) for parallelism and context isolation. Custom subagents are defined as Markdown files with YAML frontmatter in .claude/agents/ or ~/.claude/agents/. See Claude Code Subagents for full coverage.
  • Extended thinking: Claude Code can use Claude's extended thinking mode for complex reasoning tasks.
  • Effort Control (added with Opus 4.8): a per-session setting that lets users trade reasoning depth for speed and rate-limit headroom. Higher effort levels trigger deeper reasoning at greater token cost; lower effort levels produce faster responses while preserving rate limits for longer sessions. The setting can be changed mid-session. Claude Code's rate limits were increased alongside this feature to accommodate the higher token consumption of maximum-effort runs.
  • Dynamic Workflows (research preview, added with Opus 4.8): enables Claude Code to plan work and orchestrate hundreds of parallel subagents within a single session. The primary use case documented by Anthropic is codebase-scale migrations across hundreds of thousands of lines of code. See Claude Code Subagents for the underlying subagent system.

Output Styles

Output styles let operators and users change how Claude Code responds — modifying the system prompt applied to every message in a session. Configured via /config > Output style. The selection is saved to .claude/settings.local.json. Operators can also build and distribute custom output style plugins.

Built-in styles:

  • Default: standard response behavior.
  • Explanatory: Claude explains implementation choices and codebase patterns alongside its work.
  • Learning: collaborative, learn-by-doing mode. Claude adds TODO(human) markers at decision points — business logic, error handling, algorithm choices, architecture decisions — and asks you to implement those pieces rather than doing them itself. Provides educational insights formatted as starred callout blocks. Incurs additional token cost.

The Learning style was initially available only to Claude for Education users before being opened to all users. The underlying mechanism is a plugin that fires a SessionStart hook, injecting additional system-level instructions at the start of every session. The plugin approach means custom teaching or guidance modes — constraining the agent to explain rather than implement — can be encoded as distributable packages rather than requiring per-project CLAUDE.md customization.

CS336 at Stanford published a CLAUDE.md for their course that illustrates this constraint pattern manually: the file explicitly prohibits the agent from writing code, completing TODO sections, editing student files, or running bash commands, instead restricting it to explaining concepts, asking clarifying questions, suggesting sanity checks, and directing students to documentation. The built-in Learning style and the CS336 approach are converging on the same behavioral model — an agent constrained to guide rather than solve — via different mechanisms (plugin vs. CLAUDE.md).

IDE Integration

Available as extensions for VS Code and JetBrains IDEs, embedding the CLI experience inside the editor with a panel UI.

Enterprise Adoption Notes

The token pricing model creates unpredictable cost exposure at enterprise scale. In a notable instance, Microsoft granted thousands of employees access to Claude Code in December 2025 as a pilot for its Experiences and Devices group (Windows, Microsoft 365, Outlook, Teams, Surface). By May 2026, the pilot had consumed Microsoft's entire projected 2026 AI spend, and the company announced it would wind down Claude Code licenses by June 30, 2026 — the end of Microsoft's fiscal year — in favor of GitHub Copilot CLI.

The stated rationale was "strategic consolidation" and better fit with Microsoft's internal repositories and security requirements. The financial driver is widely understood to be fiscal-year-end cost containment. Anthropic models remain accessible to Microsoft developers through Copilot CLI, Microsoft 365 apps, and the existing partnership; the change is to the dedicated Claude Code license rather than to model access generally.

The HN discussion around the announcement identified this as a broader enterprise risk pattern with agentic AI tools: unsupervised agentic workflows consume tokens at a qualitatively different rate than supervised human-in-the-loop use, and the cost curve is difficult for enterprises to predict or control without deliberate tooling for monitoring and governance. One developer in the thread reported spending approximately $40,000 on Claude tokens over three months, attributing the excess to the model spawning numerous subagents that got stuck. Another commenter noted that Claude's token usage per task is higher than comparable agents — a deliberate quality trade-off that enterprises may not want when operating at scale.

A second enterprise response pattern emerged in June 2026 when Uber was reported to have capped all employees at $1,500/month per AI coding tool (applied per tool, so an engineer using two tools has separate $1,500 budgets for each). The context: Uber exhausted its entire 2026 AI budget within four months of the year. Simon Willison analyzed the cap as a sensible governance mechanism — preferable to either cutting access or encouraging unlimited usage — and noted it implies roughly $36,000/year per engineer assuming two tools, about 11% of median Uber SWE compensation. His own usage ran ~$1,000/month per provider, suggesting the cap is permissive for typical heavy individual users but constraining for agentic workflows that can run autonomously at scale. The HN discussion surfaced a related cost strategy: routing the majority of coding tasks to smaller "flash" models (which are ~10x cheaper and faster) and reserving frontier models for code review and complex reasoning, rather than defaulting all tasks to the most capable model.

See Also