Claude Code
The agentic coding tool — a CLI you install locally, a redesigned desktop app, an IDE extension, and a browser interface at
claude.ai/codethat runs tasks on Anthropic-managed cloud VMs.
What it is
Claude Code is where Claude takes multi-step actions against code: reading files, running commands, editing, running tests, opening PRs. It has four forms that share the same underlying engine.
- CLI — install on your machine, run
claudein any repo, work in your terminal. - Desktop app — redesigned 2026-04-14 around parallel sessions: a session sidebar across repos, drag-and-drop panes (terminal / preview / diff / chat), an in-app file editor and diff viewer, SSH on macOS (already supported on Linux), and one Git worktree per session.
- IDE extension — VS Code and JetBrains, surfacing the same engine in your editor.
- Web —
claude.ai/coderuns the agent in an Anthropic-managed cloud VM that clones your repo and opens PRs. Use--teleportfrom the CLI to hand off a cloud session into your terminal, orclaude --bgto run a session in the background and reattach later via/resumeorclaude agents(a single-screen view of every running, blocked, and finished session; accepts--add-dir,--settings,--mcp-config,--plugin-dir,--model,--effort). Insideclaude agents, prefix any shell command with!to spin it up as a detachable background job — equivalent toclaude --bg --exec '<command>'from your shell.--worktreeand theclaude agentsview now also recognize GitLab merge requests (shown as!N), alongside GitHub PRs (v2.1.233, 2026-08-14). Run/fork(v2.1.212, 2026-07-17) to copy your current conversation into its own background-session row and keep working in the original. Background sessions on different machines can message each other withSendMessageand discover each other withListAgents(macOS/Linux, v2.1.224, 2026-08-07); type@plus a session name in any prompt to message one directly, and manage inbound requests from/config(v2.1.232, 2026-08-13). Team/Enterprise can also runclaude self-hosted-runnerto host web/mobile/desktop sessions on their own machines instead of Anthropic’s cloud VMs (v2.1.224).
Claude in Chrome (browser extension, generally available 2026-07-01) pairs with Claude Code for a build-test-verify loop: build in your terminal, then have Claude drive the browser to test. All paid plans; Pro is limited to Haiku 4.5. Not a Claude Code form itself, but it interoperates with one.
The Desktop app form also has two features shared with Claude Cowork: toggle computer use (Settings → General) to let Claude click and type directly on your screen when no connector covers a task, and pair the mobile app with a Desktop session via Dispatch to hand off a task from your phone. Both are Research Preview, Pro/Max only. See cross-cutting features.
Claude Code is where Skills, MCP servers, Plugins, Hooks, and slash commands all install.
When to use it
- Multi-step coding against files in a real repo.
- Anything you’d want to leave running unattended — long migrations, refactors, test runs.
- Async work via
claude.ai/code— kick off jobs from the iOS app or web and check back later. - Setting up Routines (
/schedule) for recurring tasks. - Letting Claude grind on a measurable goal across many turns —
/goal "<completion condition>"(v2.1.139+, May 2026) keeps Claude working until a separate evaluator model confirms the condition holds (e.g.,npm test exits 0). - Tackling a migration or audit too large for one session — include the keyword
ultracodein your prompt (renamed fromworkflowin v2.1.160 — the bare wordworkflowno longer fires), or set/effort ultracodeto auto-orchestrate the whole session, to fan the job out across up to 1,000 parallel subagents (research preview, requires v2.1.154+; see Dynamic Workflows on the surfaces page). - Reviewing a GitHub PR without installing the GitHub App. From a checked-out PR branch, run
/code-reviewto print findings in the terminal,/code-review --commentto post them as inline PR comments (≥ 80-confidence, deduped), or/code-review --fixto apply them to the working tree. Originally absorbed/simplifyin v2.1.146 (2026-05-21); since v2.1.154 (2026-05-28),/simplifyis back as a separate cleanup-only review (reuse, simplification, efficiency, altitude — no bug-hunting). If you want bug-hunting plus apply-fixes, use/code-review --fix.
How to install / enable
-
macOS/Linux: native installer.
curl -fsSL https://claude.ai/install.sh | bash claude - Windows PowerShell:
irm https://claude.ai/install.ps1 | iex, orwinget install Anthropic.ClaudeCode(usewinget upgrade Anthropic.ClaudeCodeto bump an existing install). - Homebrew:
brew install --cask claude-code(stable) orclaude-code@latest(newest). - Linux distros:
apt,dnf,apkpackages also available. - npm install (
npm install -g @anthropic-ai/claude-code) still works but Anthropic now prints a yellow “npm installation is deprecated” banner. Use the native installer for new setups. - Web:
https://claude.ai/code(Pro, Max, Team, or premium Enterprise seats). - Pick a model with
/model(or--modelat launch). Claude Opus 5 is the default as of v2.1.219 (2026-07-24) — a step-change agentic-coding model with a 1M-token context window, priced identically to Opus 4.8 ($5 / $25 per million tokens). Sonnet 5 (cheaper, also 1M context) and Opus 4.8 remain selectable; a request that trips a safety classifier falls back to Opus 4.8 automatically. Claude Fable 5 is available again after its export-control suspension was lifted (redeployed globally 2026-07-01), so it appears in the picker for all users. (Mythos 5 is restricted to approved U.S. organizations.)
Common pitfalls
- Claude Code on the web runs in a sandboxed VM with network restrictions; local-only MCP servers won’t work there.
- Skills/plugins/MCP installed in
~/.claude/(user scope) are global;.claude/in a repo (project scope) is per-repo. - Background sessions accumulate — list with
claude agentsand clean up. Pin one with Ctrl+T in that view if you want it kept alive when idle and restarted in place on updates; un-pinned sessions are shed first under memory pressure. - The planned Agent SDK billing split was paused. Anthropic had announced that
claude -p(headless mode), Claude Code GitHub Actions, and any third-party harness using the Agent SDK would move to a separate credit pool on 2026-06-15. On that date Anthropic shelved the change: for now,claude -pand the Agent SDK still draw from your normal subscription, same as interactiveclaudein the terminal. Anthropic says it will give notice before any future change. See Claude API.
See also
- Skills, MCP servers, Plugins, Marketplaces
- Hooks, Slash commands and subagents, Routines, Authentication
Sources
- Claude Code product landing — Anthropic; verified 2026-05-29 (this run, via search summary) — canonical install command (
curl -fsSL https://claude.ai/install.sh | bash) and OS-specific options, includingwinget install Anthropic.ClaudeCode. - Set up Claude Code — Anthropic docs; verified 2026-05-26 (this run).
- Claude Code on the web — Anthropic docs; verified 2026-05-19.
- Redesigning Claude Code on desktop for parallel agents — Anthropic blog; published 2026-04-14 — session sidebar, drag-and-drop panes, SSH on macOS, per-session Git worktrees.
- Claude Code changelog (v2.1.139–v2.1.162) —
claude agentsconfig flags,/code-review(absorbed/simplifyin v2.1.146 on 2026-05-21; gained--fixin v2.1.152 on 2026-05-27; gained--commentfor inline PR comments in v2.1.161, 2026-06-02). In v2.1.154 (2026-05-28)/simplifyreturned as a distinct cleanup-only command (reuse / simplification / efficiency / altitude — no bug-hunting), so it is no longer an alias for/code-review --fix. Also:claude --bg,claude --bg --exec '<command>', and the!prefix insideclaude agentsto spin background jobs;/resume(also covers background sessions as of v2.1.161); Ctrl+T pinned background sessions;/goal(v2.1.139, 2026-05-12);/reload-skills+disallowed-toolsfrontmatter (v2.1.152); Opus 4.8 + Dynamic Workflows +/effort ultracode(v2.1.154, 2026-05-28); verified 2026-06-05 (this run). - Code review — Anthropic docs; verified 2026-06-03 (this run) —
/code-review,--fix,--commentflag semantics; 80-confidence threshold; parallel review subagents. - Keep Claude working toward a goal — Anthropic docs; verified 2026-05-27 —
/goalcompletion-condition loop with separate evaluator model, 4,000-char limit, requires v2.1.139+. - Introducing dynamic workflows in Claude Code — Anthropic blog; published 2026-05-28 — research preview, 1,000-agent cap, 16 concurrent, plan availability (Max/Team on by default, Enterprise admin-gated, Pro toggle in
/config). - Orchestrate subagents at scale with dynamic workflows — Anthropic docs; verified 2026-06-06 (this run) — single-task keyword renamed
workflow→ultracodein v2.1.160;/effort ultracodesession setting (xhigh + auto-orchestration); v2.1.154 requirement;CLAUDE_CODE_DISABLE_WORKFLOWSenv var. - Install Claude Code the Right Way in 2026 — secondary; npm-deprecation banner and native-installer migration path; verified 2026-05-25.
- Use the Claude Agent SDK with your Claude plan — Anthropic help center; verified 2026-06-20 (this run) — opening notice confirms the planned Agent SDK /
claude -pbilling split is paused as of 2026-06-15; usage still draws from subscription limits. - Anthropic puts Claude agents on a meter across its subscriptions — InfoWorld; published 2026-05-14 — the (now-paused) plan to move
claude -pand the Agent SDK onto a separate credit pool on 2026-06-15. - Introducing Claude Sonnet 5 — Anthropic news; published 2026-06-30; verified 2026-07-04 (this run) — Sonnet 5 (
claude-sonnet-5) is the default for Free / Pro and the default in Claude Code, 1M-token context, intro pricing through 2026-08-31; Opus 4.8 still selectable. - Redeploying Claude Fable 5 — Anthropic news; published 2026-06-30; verified 2026-07-04 (this run) — export controls lifted 2026-06-30; Fable 5 redeployed globally 2026-07-01 on Claude Platform / Claude.ai / Claude Code / Cowork; Mythos 5 restricted to approved U.S. orgs.
- Get started with Claude in Chrome — Anthropic help center; verified 2026-07-04 (this run) — Chrome extension GA 2026-07-01, build-test-verify pairing with Claude Code, all paid plans, Pro limited to Haiku 4.5.
- Claude Code changelog (v2.1.196–v2.1.220) — Anthropic docs; verified 2026-07-25 (this run) — Sonnet 5 default (v2.1.197, 2026-06-30); Claude in Chrome GA + subagents background-by-default +
/datavizskill + background agents auto-open draft PRs (v2.1.198, 2026-07-01); permission dialogs require manual approval by default (v2.1.200, 2026-07-03); screen-reader mode--ax-screen-reader(v2.1.208, 2026-07-14);/forknow copies the conversation into a background session and the in-session subagent launcher becomes/subtask(v2.1.212, 2026-07-17); EndConversation tool (v2.1.214, 2026-07-18);/verifyand/code-reviewno longer auto-run — manual invocation required (v2.1.215, 2026-07-19);sandbox.filesystem.disabledsetting (v2.1.216, 2026-07-20);/code-reviewruns as a background subagent (v2.1.218, 2026-07-22); Claude Opus 5 becomes the default (v2.1.219, 2026-07-24). Latest release v2.1.220 (2026-07-25). - Introducing Claude Opus 5 — Anthropic news; published 2026-07-24; verified 2026-07-25 —
claude-opus-5, $5 / $25 per Mtok (same as Opus 4.8), 1M context, available on Claude API / Bedrock / Vertex / Foundry / claude.ai / Claude Code / Cowork, new default on Max and strongest on Pro, flagged requests fall back to Opus 4.8. - Let Claude use your computer in Cowork — Anthropic help center; verified 2026-08-01 (this run) — confirms computer use is available in both Cowork and Claude Code, Desktop app only, Pro/Max, macOS + Windows.
- Put Claude to work on your computer — Anthropic blog; published 2026-03-23; verified 2026-08-01 (this run) — Dispatch + computer use launch, Cowork and Claude Code.
- Claude Code product landing — re-verified 2026-08-15 (this run); install command (
curl -fsSL https://claude.ai/install.sh | bash) and launch surfaces (Terminal, Desktop, VS Code, JetBrains, web, iOS/Android, Slack, GitHub Actions) unchanged. - Claude Code changelog (v2.1.221–v2.1.224, 2026-08-03 to 2026-08-07) — Anthropic docs; verified 2026-08-08 —
claude self-hosted-runnerand cross-sessionSendMessage/ListAgents(v2.1.224);archiveplugin source (zip + SHA-256, v2.1.224); 200-subagent-per-session spawn cap removed (v2.1.224); Focus view chat-menu toggle (v2.1.221); permission/sandbox hardening (v2.1.222–223). - Claude Code changelog (v2.1.225–v2.1.233, 2026-08-08 to 2026-08-14) — Anthropic docs; verified 2026-08-15 (this run) —
@-mention of another session by name plus/configrows for “Dialog expiry” / “Messages from your other sessions” (v2.1.232); GitLab support in plugin marketplaces (v2.1.232);--worktreeandclaude agentsrecognize GitLab merge requests as!N(v2.1.233). Latest release v2.1.233.