Skip to main content

Every Part of Claude Code You Can Use or Change

Unofficial community docs for version 2.1.312, built from the official docs and the program itself. Not made by or tied to Anthropic. For supported behavior, check the official docs first.

  • Documented: An official docs page names this item.
    An official docs page names it.
  • Undocumented: Only the program shows this item. It can change without notice.
    Only the program shows it. It can change without notice.
  • Differs: The official docs and the program disagree. The row says how.
    The docs and the program disagree. The row says how.
  • Gated: Works only behind a flag or a server gate.
    It works only behind a flag or a server gate.

Claude Code is a coding assistant that runs in your terminal, your editor, and the cloud. You tell it a task in plain words. It reads your files, runs commands, and edits code to finish the task. You can change almost every part of it with settings, hooks, plugins, skills, and MCP servers.

Find an Answer by Question​

Each row names one question and the page that answers it.

If You AskRead
How do I change a setting, and which file holds it?Settings and Files on Disk
Which environment variable controls this?Environment Variables
What does this command line flag do?CLI Flags
How do I keep Claude Code away from a file or a command?Permission Rules
Why did Claude Code ask me to approve this?Permission Flow
Which model runs, and how do I switch it?Models and Providers
How do I run my own code before or after a tool?Hooks
How do I add a command, a skill, or a subagent?Skills and Commands and Subagents
How do I give my team one configuration?Plugins
How do I connect an MCP server?MCP
How do I drive Claude Code from a script?Headless Mode
Why is my context full, and what fills it?Context Budget and Context and Compaction
What text does the model read first?Captured System Prompts
What can I change at all?What Can I Change
What changed in this release?What Changed
Is this item in the official docs?How to Read These Docs
Which items do the official docs leave out?Undocumented Items
Where does a session go on disk, and what is in it?Files on Disk and Transcript Format
What are the exact fields of a tool or a payload?Tools and Schemas

What This Site Covers​

The official docs explain the features that Anthropic supports. This site goes further. It lists every surface you can use, change, or switch on and off, whether the official docs name it or not. It also explains how the program works inside, so you can predict what a setting will do.

Read How to Read These Docs for the full guide to badges and tables. The text uses Simple English: short sentences and common words.

Claude Code in One Minute​

Claude Code is one program that runs a loop. You send a prompt. The program builds a request and sends it to a model. The model either answers or asks for a tool. If it asks for a tool, Claude Code checks your permission rules, runs the tool, and sends the result back. The loop stops when the model answers without asking for a tool.

Along the way, Claude Code saves the conversation to a file in ~/.claude/projects/, so you can resume it later. When the conversation gets too long, it asks the model for a short summary and goes on from the summary.

StepWhat happensLearn more
StartThe program reads your settings, memory files, plugins, and MCP servers.Architecture
TurnYour prompt becomes a request, the model streams a reply, and tools run.The Agent Loop
RequestThe request holds tools, the system prompt, and the conversation, with cache markers.Request and Cache
PromptThe first text the model reads is built from named sections.The System Prompt
ContextOld messages are summarized when the window fills up.Context and Compaction
SaveEach message is appended to a JSONL file.Sessions and Storage
ModelThe model, effort, thinking, and retries are chosen.Models

Map of the Site​

SectionWhat you find thereStart with
Start HereHow to read the badges, a map of what you can change, the files Claude Code keeps, and breaking changes per release.How to Read These Docs and What Changed
How It WorksThe harness in depth: architecture, the agent loop, requests and cache, the system prompt, compaction, sessions, models, and permissions.Architecture
ConfigureSettings keys, environment variables, command line flags, permissions, memory, output styles, the status line, and models and providers.Models and Providers
ExtendHooks, skills and commands, subagents, plugins, MCP servers, the Mod API, and headless mode.Hooks and Plugins
ReferenceEvery tool and parameter, API endpoints and betas, the transcript format, probes, and an index of undocumented items.Transcript Format and Undocumented Items
System PromptsThe full text of each system prompt variant, captured offline, with sizes and diffs.Captured System Prompts

Where to Go Next​