Skip to content

Claude Code: A Complete Guide to Anthropic's Terminal AI Coding Agent

Mar 31, 2026 1 min
TL;DR Claude Code is Anthropic's agentic coding tool that runs in the terminal, IDEs, Slack, GitHub, and on the web. Its core extension system has six layers: CLAUDE.md (persistent context), Skills (on-demand workflows), Hooks (deterministic automation), Subagents (isolated delegation), MCP (external tool connections), and Agent Teams (multi-agent collaboration).

🌏 中文版

Claude Code is Anthropic’s agentic coding tool. It understands your codebase, executes everyday tasks through natural language instructions, explains complex code, and handles git workflows — all from your terminal, IDE (VS Code / JetBrains), Slack, GitHub, or the web.

Installation

# Recommended (macOS / Linux)
curl -fsSL https://claude.ai/install.sh | bash

# Windows
winget install Anthropic.ClaudeCode

The npm installation method is now deprecated — use the native installer instead. After installation, sign in with your Claude account and you’re ready to go.

System requirements: macOS 13.0+ / Windows 10+ / major Linux distributions.

Core Capabilities

CapabilityDescription
Code read/writeRead, edit, and create files; understands entire project structure
Shell executionRun arbitrary commands in the terminal (build, test, lint, etc.)
Git workflowscommit, branch, PR, merge — all via natural language
Extended ThinkingEnabled by default; reasons through complex problems before acting
Auto ModeA safe alternative to --dangerously-skip-permissions for long-running autonomous tasks
Headless Modeclaude -p for programmatic execution; embeds into CI/CD pipelines or scripts

The Six-Layer Extension System

Claude Code’s extension system is what sets it apart from other coding agents. Each layer solves a different problem:

1. CLAUDE.md — Persistent Context

# CLAUDE.md (place in your project root)
This is an Astro + React project
Package manager: pnpm
Testing: vitest
Commit messages in English

This file is loaded automatically at the start of every session, so you never have to repeat project conventions.

2. Skills — On-Demand Workflows

Place .md files in ~/.claude/skills/. No SDK required — just write Markdown.

  • Reference Skills: provide knowledge (e.g., an API style guide) that Claude references throughout the session
  • Action Skills: trigger actions (e.g., /deploy) that Claude executes step by step
  • Supports auto-detection — you don’t always need a slash command to activate them

3. Hooks — Deterministic Automation

Configured in settings.json, hooks bind to lifecycle events (before/after tool calls, session start/end, etc.).

{
  "hooks": {
    "PostToolUse": [{
      "matcher": "edit",
      "command": "npx biome check --fix $CLAUDE_FILE_PATH"
    }]
  }
}

Hooks are guaranteed to run regardless of model behavior. Perfect for lint, format, security checks, and any operation that must run every single time.

4. Subagents — Isolated Delegation

The main agent splits tasks and spawns subagents to run them in parallel. Each subagent has its own isolated context window and does not inherit conversation history. Only the final result returns to the main context, keeping token usage lean.

5. MCP — External Tool Connections

The Model Context Protocol lets Claude connect to your toolchain: databases, GitHub, Sentry, Figma, Slack — 3,000+ integrations. Each MCP server becomes an immediately available tool.

6. Agent Teams — Multi-Agent Collaboration

Released in February 2026 alongside Opus 4.6. Multiple independent Claude sessions can message each other, divide work, and operate in parallel. Unlike subagents (a hierarchical delegation relationship), Agent Teams are peers collaborating as equals.

Extension System Summary

LayerProblem it solvesWhen it loads
CLAUDE.mdProject conventions, persistent instructionsAuto-loaded at session start
SkillsReusable workflowsOn-demand or auto-detected
HooksMust-run automationDeterministically on event trigger
SubagentsIsolation and parallelismSpawned by the main agent as needed
MCPExternal system connectionsAlways available after configuration
Agent TeamsMulti-agent collaborationManually initiated
PluginsPackage and distribute all of the aboveLoaded per their own rules after install

Runtime Environments

EnvironmentDescription
TerminalNative CLI, the core experience
VS CodeNative extension with visual diff
JetBrainsNative extension
Webclaude.ai/code
SlackLaunch dev tasks directly in team conversations
GitHubTrigger with @claude in PRs or Issues

Update Channels

ChannelDescription
latestDefault; receives new features immediately
stableApproximately one week delayed; skips releases with major regressions

Pricing

Requires a Claude Pro or Max subscription (or API access). Using Claude Sonnet 4.6 as an example:

Price
Input$3.00 / 1M tokens
Output$15.00 / 1M tokens

How Claude Code Compares to Other Coding Agents

Claude CodeCodex CLIGemini CLIOpenCodePi
VendorAnthropicOpenAIGoogleSST (open source)badlogic (open source)
Extension layers6 layersSkills + MCPMCPDual AgentExtension
Open source✅ (Apache 2.0)
Free tier❌ (subscription required)Partially free1,000 requests/dayCompletely freeCompletely free
Core strengthMost complete extension ecosystemOpenAI model integrationFree + 1M context75+ model flexibilityMinimal + low token usage
IDE integrationVS Code + JetBrainsVS CodeVS CodeTUITUI

Claude Code’s core advantage is the depth of customization enabled by its six-layer extension system — from individual developers to enterprise teams, you can layer in exactly the automation and integrations you need. The trade-offs: it’s not open source and requires a paid subscription.

In-Depth Guides on This Site

This site has 20+ articles dedicated to Claude Code, indexed by topic below:

Extension system:

Configuration & environment:

Integrations & automation:

Miscellaneous:

Resources

References