Class 05 — Claude Code
Subagent orchestration, MCP server integrations, remote sessions, initialization hooks, and the debug surface.
§ Agents
Claude Code can orchestrate specialized subagents — each with its own system prompt, tool set, model, and turn limit. The orchestrator spawns them via the Task tool.
Specify a named agent (defined in .claude/agents/) for this session. Overrides the agent field in config files.
Define subagents inline as a JSON object. Each key is an agent name; the value is a config object with description, prompt, tools, and model.
Controls how spawned teammates are displayed. auto (default), in-process, or tmux for terminal pane isolation.
["Read", "Edit", "Bash"]. Inherits all tools if omitted.
tools list.
sonnet, opus, haiku, or inherit. Use cheaper models for simpler subtasks.
{"name": config} object.
§ Integrations, Hooks & Debug
Connect external context servers, move sessions between cloud and local, wire up lifecycle hooks, and expose the debug surface.
Load MCP servers from JSON files or strings. Adds servers to the current session. Repeatable for multiple config files.
Only use MCP servers from --mcp-config, ignoring all others. Guarantees a controlled, reproducible server set.
Automatically connect to an IDE on startup if exactly one valid IDE is available. Enables IDE integration features.
Enable or disable Chrome browser integration. Gives Claude access to web automation and testing. --no-chrome explicitly disables even if enabled globally.
Create a new web session on claude.ai with the provided task description. Launches in the browser for cloud execution.
Resume a web session in your local terminal. Brings a cloud session back to your CLI environment — teleport it home.
Run initialization hooks and then start interactive mode. Bootstraps projects with setup scripts before the session begins.
Run initialization hooks and exit immediately — no interactive session follows. Pure setup mode for CI bootstrapping.
Run maintenance hooks and exit. For scheduled upkeep, cleanup scripts, or CI maintenance routines.
Enable debug mode with optional category filtering. Pass "api,hooks" to include only those categories, or "!statsig" to exclude one.
Output the current Claude Code version number and exit. Quick check without starting a session.