Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/claude-code/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Claude Code enables extended thinking by default, giving Claude space to reason

### Effort levels

On supported models (Sonnet 4.6, Sonnet 5, Opus 4.6, Opus 4.7, Opus 4.8, and Fable 5), thinking uses **adaptive reasoning**: the model dynamically allocates thinking tokens based on your effort level and the task at hand. This means Claude responds faster to routine prompts and reserves deeper thinking for steps that benefit from it.
On supported models (Sonnet 4.6, Sonnet 5, Opus 4.6, Opus 4.7, Opus 4.8, Opus 5, and Fable 5), thinking uses **adaptive reasoning**: the model dynamically allocates thinking tokens based on your effort level and the task at hand. This means Claude responds faster to routine prompts and reserves deeper thinking for steps that benefit from it.

| Way to adjust | How |
|---------------|-----|
Expand Down
1 change: 1 addition & 0 deletions docs/claude-code/flags.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,6 @@ keywords: [Claude Code CLI flags, command line options, --continue, --resume, --
| `CLAUDE_CODE_DISABLE_AUTO_MEMORY` | Set to `1` to disable auto memory globally |
| `CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION` | Tune the per-session cap on WebSearch calls (default `200`) that stops runaway loops |
| `CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION` | Tune the per-session cap on subagent spawns (default `200`) that stops runaway loops |
| `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` | Set how many layers of nested subagents can spawn below the main conversation (default `3` since v2.1.219) |
| `CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS` | Tune or disable the threshold after which a long-running MCP tool call moves to the background automatically (default two minutes) so the session stays usable |
| `ANTHROPIC_MODEL` | Override the default model for all sessions |
2 changes: 1 addition & 1 deletion docs/claude-code/subagents.md
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ When a background subagent needs a permission decision, the prompt surfaces in y

Since v2.1.172, a subagent can spawn its own subagents. This helps when a delegated task itself splits into parallel subtasks, such as a reviewer subagent that dispatches a verifier per finding: the intermediate output never reaches your main conversation, and only the top-level subagent's summary returns to you. The subagent panel below the prompt shows the full tree, with a descendant count and a path back to `main` on each row.

Subagent chains are capped at **five levels deep** to prevent runaway concurrent trees. A subagent at depth five does not receive the Agent tool and cannot spawn further. The limit is fixed and not configurable.
By default, a subagent can spawn its own subagents up to **three layers below the main conversation**. At the depth limit, a subagent does not receive the Agent tool and cannot spawn further, so it does its delegated work itself and returns one summary. To change the limit, set the `CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH` environment variable (v2.1.217+) to the number of layers you want below the main conversation. The default was one from v2.1.217 through v2.1.218, and v2.1.219 raised it to three.

### Parallel subagents

Expand Down