Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One capture · claude-code

One read of Claude Code CLIclaude-code-20261128T193702Z

32 pages moved out of 221 read.

Pages moved 32 significant first
Pages read 221 in this capture
Captured 19:37 UTC
Corpus hash eda121dff9a6 corpus-hash

What this read moved

1-25 of 32, page 1 of 2

This capture is too large to show at once. Changes 1-25 of 32 are below, significant first; the rest are on the following screens.

advisor Changed · +2 / -4 lines

from line 28
2828 
2929Each of these enables the advisor for sessions whose main model [supports it](#choose-an-advisor-model). After the session starts, Claude Code shows an `Advisor Tool (experimental) is on and may use more tokens · /advisor` notification. To stop using the advisor, see [Turn the advisor off](#turn-the-advisor-off).
3030 
31On some plans, Fable as the advisor also needs your one-time [consent to bill Fable usage to usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits). For what happens before you have given that consent, see [Fable advisor and usage credits](#fable-advisor-and-usage-credits).
31On some plans, Fable as the advisor also needs your [consent to bill Fable usage to usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits). For what happens before you have given that consent, see [Fable advisor and usage credits](#fable-advisor-and-usage-credits).
3232 
3333### Use the `/advisor` command
3434 
from line 50
5050 
5151Claude Code still saves an advisor that your current main model doesn't support. That advisor activates after you switch to a [compatible main model](#choose-an-advisor-model) with [`/model`](https://code.claude.com/docs/en/model-config#setting-your-model). If the API already refused the saved advisor in the current conversation, it stays off until `/clear` or `/compact`, even after you switch models.
5252 
53On some plans, Fable as the advisor also needs your one-time [consent to bill Fable usage to usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits). For what `/advisor fable` does before you have given that consent, see [Fable advisor and usage credits](#fable-advisor-and-usage-credits).
54 
5553### Set `advisorModel` in settings
5654 
5755To configure the advisor as a default without opening a session, set it in your settings file:
from line 110
112110 
113111### Fable advisor and usage credits
114112 
115On some plans, Fable usage bills to usage credits, and Fable as the advisor bills the same way. If your account requires the [one-time consent to bill Fable usage to usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits), Claude Code asks for it when you select a Fable model with `/model` and doesn't apply Fable as the advisor until you have accepted that consent.
113On some plans, Fable usage bills to usage credits, and Fable as the advisor bills the same way. If your account requires the [consent to bill Fable usage to usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits), accept it before you use Fable as the advisor.
116114 
117115Before you have accepted it, Claude Code doesn't save Fable as the advisor when you type `/advisor fable` or pick Fable in the `/advisor` picker. It points you to `/model fable` instead. With `claude --advisor fable`, Claude Code exits at launch with a message that points to `/model fable`. In a [background session](#use-the-advisor-flag), it starts the session without the advisor instead of exiting. With Fable already saved as your `advisorModel`, Claude Code sends requests without the advisor. In an interactive session whose main model supports the advisor, it also shows a notification that points to `/model fable`.
118116 

agent-sdk/typescript Changed · +29 / -1 lines

### `SDKSessionWritesLostMessage` #### Cache-write token fields

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 109
109109 
110110#### Returns
111111 
112Returns a `Promise<`[`WarmQuery`](#warmquery)`>` that resolves once the subprocess has spawned and completed its initialize handshake.
112Returns a `Promise<`[`WarmQuery`](#warmquery)`>` that resolves once the subprocess has spawned and completed its initialize handshake. If the promise rejects, check the error for an untyped `startupFailureReason` property holding a [`startup_failure_reason`](#startup_failure_reason) value. `startupFailureReason` requires Agent SDK v0.3.312 or later.
113113 
114114Of the [`hook_progress`](#sdkhookprogressmessage) messages a `SessionStart` or `Setup` hook emits before the handshake completes, you get only the newest, which carries all of the hook's output so far. `startup()` holds that message, the hook's [`hook_started`](#sdkhookstartedmessage) message, and anything else the subprocess emits before the handshake completes. The held messages reach you once you call `.query()` on the `WarmQuery` and iterate the result.
115115 
from line 1125
11251125 absPath: string;
11261126 truncated?: boolean;
11271127 encoding?: 'base64';
1128 lossy?: boolean;
11281129};
11291130```
11301131 
11311132`contents` holds the file text, or base64 data when you requested `encoding: 'base64'`; the response's `encoding` field is set to `'base64'` in that case. `absPath` is the resolved absolute path. `truncated` is set when the file was longer than the `maxBytes` cap and the contents were cut at that limit.
11321133 
1134When `lossy` is `true`, the bytes read weren't all valid UTF-8, so read the file again with `encoding: 'base64'`. `lossy` requires Claude Code v2.1.317 or later.
1135 
11331136#### What `readFile()` can read
11341137 
11351138`readFile()` serves a narrower set of files than the Read tool:
from line 1703
17001703 | SDKModelRefusalNoFallbackMessage
17011704 | SDKMirrorErrorMessage
17021705 | SDKInformationalMessage
1706 | SDKSessionWritesLostMessage
17031707 | SDKConversationResetMessage;
17041708```
17051709 
from line 2085
20812085 | "worktree_unverified"
20822086 | "cli_version_too_old"
20832087 | "bypass_root"
2088 | "initialize_not_first"
20842089 | "org_config_required_unavailable"
20852090 | "org_config_refused"
20862091 | "sandbox_required_unavailable"
from line 2114
21092114| `worktree_unverified` | The session's worktree couldn't be verified right now, and retrying may succeed |
21102115| `cli_version_too_old` | This Claude Code version is below the minimum Anthropic requires |
21112116| `bypass_root` | Bypass permissions mode was requested while running as root |
2117| `initialize_not_first` | The first line on Claude Code's stdin wasn't the expected [`initialize`](#sdkcontrolinitializeresponse) control request. In a wrapper script that starts Claude Code, pass stdin through unchanged. Requires Claude Code v2.1.317 or later |
21122118| `org_config_required_unavailable` | The session needs the organization's policies and managed settings before it can start, and they couldn't be loaded, for example because of a network failure or an Anthropic server error. Requires Agent SDK v0.3.293 or later |
21132119| `org_config_refused` | Anthropic refused to provide the organization's policies and managed settings for this sign-in, for example because the sign-in expired or was revoked, or the organization doesn't allow Claude Code for this account. Requires Agent SDK v0.3.293 or later |
21142120| `sandbox_required_unavailable` | [`failIfUnavailable`](#sandboxsettings) is on and the sandbox can't start. The text in `errors` ends with `Set sandbox.failIfUnavailable=false to allow unsandboxed execution.` Requires Agent SDK v0.3.314 or later |
from line 2269
22632269};
22642270```
22652271 
2272### `SDKSessionWritesLostMessage`
2273 
2274Claude Code couldn't save changes to `~/.claude.json` or part of a session transcript because the disk or disk quota was full. Check `lost` for what wasn't saved. The value `global_config` means `~/.claude.json`. [Free up space](https://code.claude.com/docs/en/errors.md#could-not-save-because-the-disk-is-full) before the next run. Requires Claude Code v2.1.317 or later.
2275 
2276```typescript theme={null}
2277type SDKSessionWritesLostMessage = {
2278 type: "system";
2279 subtype: "session_writes_lost";
2280 error_code: "ENOSPC" | "EDQUOT";
2281 lost: ("transcript" | "global_config")[];
2282 transcript_session_ids?: string[]; // the sessions whose transcripts lost lines
2283 uuid: UUID;
2284 session_id: string;
2285};
2286```
2287 
22662288### `SDKPluginInstallMessage`
22672289 
22682290Plugin installation progress event. Emitted when [`CLAUDE_CODE_SYNC_PLUGIN_INSTALL`](https://code.claude.com/docs/en/env-vars) is set, so your Agent SDK application can track marketplace plugin installation before the first turn. The `started` and `completed` statuses bracket the overall install. The `installed` and `failed` statuses report individual marketplaces and include `name`.
from line 4620
45984620| Field | Type | Description |
45994621| - | - | - |
46004622| `status` | `"async_launched" \| "remote_launched"` | The tool accepted the invocation. `"async_launched"` for in-process runs, `"remote_launched"` for runs dispatched to a cloud session instead of running in-process |
4601| `taskId` | `string` | Background task identifier for the run |
4602| `taskType` | `"local_workflow" \| "remote_agent"` | Task type of the registered background task, matching the `status` arm |
4603| `workflowName` | `string` | The `meta.name` from the workflow script |
4604| `runId` | `string` | Workflow run identifier to pass as `resumeFromRunId` on a later invocation. Absent for `remote_launched` runs, where the cloud session URL is the resume handle |
4605| `summary` | `string` | One-line description of what the workflow does |
4606| `transcriptDir` | `string` | Directory where subagent transcripts are written during execution |
4607| `scriptPath` | `string` | Path to the persisted workflow script for this run. Edit it and pass back as `scriptPath` to rerun without resending the script |
4608| `sessionUrl` | `string` | Cloud session URL, set when `status` is `"remote_launched"` |
4609| `warning` | `string` | Non-blocking heads-up, such as local git state diverging from the pushed branch a cloud session will clone |
4610| `error` | `string` | Set when the script fails its syntax check. When present, the run did not start despite the launched status |
4611 
4612### TodoWrite
4613 
4614**Tool name:** `TodoWrite`
4615 
4616```typescript theme={null}
4617type TodoWriteOutput = {
4618 oldTodos: Array<{
4619 content: string;
4620 status: "pending" | "in_progress" | "completed";
4621 activeForm: string;
4622 }>;
4623 newTodos: Array<{
4624 content: string;
4625 status: "pending" | "in_progress" | "completed";
4626 activeForm: string;
4627 }>;
4628};
4629`
4623| `taskId` | `string` | Background

code-review-pull-requests Changed · +24 / -26 lines

from line 4
44 
55Code Review is a managed service that an Owner in your Claude organization turns on for a set of GitHub repositories. Once it's on, Claude reviews pull requests in those repositories. It posts its findings as inline comments, a summary in the review body, and a check run named **Claude Code Review**. An Owner controls [when reviews run](https://code.claude.com/docs/en/code-review-setup.md#set-when-reviews-run) and [how thorough they are](https://code.claude.com/docs/en/code-review-setup.md#set-the-default-review-level) for each repository.
66 
7By itself, a review doesn't approve or block your pull request, and the check run doesn't conclude as a failure. Where a repository has a [Claude Approvals](https://code.claude.com/docs/en/approvals.md#keep-automatic-code-reviews) policy file, the policy can use a review's result to decide who has to approve. It can also change which pull requests get an automatic review.
7By itself, a review doesn't approve or block your pull request. If a repository has a [Claude Approvals](https://code.claude.com/docs/en/approvals.md#keep-automatic-code-reviews) policy file, the policy can use a review's result to decide who has to approve. It can also change which pull requests get an automatic review.
88 
99> [!NOTE]
1010>
from line 17
1717| Marker | Severity | Meaning |
1818| :- | :- | :- |
1919| 🔴 | Important | A bug that should be fixed before merging |
20| 🟡 | Nit | A minor issue, worth fixing but not blocking |
21| 🟣 | Pre-existing | A bug that exists in the codebase but wasn't introduced by this PR |
20| 🟡 | Nit | A minor issue worth fixing |
21| 🟣 | Pre-existing | A bug that was in the codebase before this PR |
2222 
2323When the review recorded its reasoning, a finding has a collapsed **Why this was flagged** section. Expand it to read why Claude flagged the issue and how it verified the problem.
2424 
from line 26
2626 
2727## Respond to findings
2828 
29You can merge without responding to a finding, unless your repository's own rules require it. If its branch protection [requires conversation resolution](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-conversation-resolution-before-merging), resolve each finding's thread before you merge.
30 
3129To clear a finding, resolve its thread or push a fix.
3230 
33* **Dismiss it without a code change**: resolve the thread yourself on GitHub. Replying alone doesn't dismiss a finding. If your pull request has a **Claude Approvals** check, that check [may not count your resolve](https://code.claude.com/docs/en/approvals-troubleshooting.md#approvals-doesn’t-pass-after-you-resolve-a-review-thread).
31* **Dismiss it**: resolve the thread yourself on GitHub. If your pull request has a **Claude Approvals** check, that check [may not count your resolve](https://code.claude.com/docs/en/approvals-troubleshooting.md#approvals-doesn’t-pass-after-you-resolve-a-review-thread).
3432* **Fix the issue**: change the code and push. The next review of the pull request resolves its earlier thread when it judges the issue fixed, whether that review runs automatically on your push or you request it. Where [PR Steward](https://code.claude.com/docs/en/pr-steward.md#what-pr-steward-fixes) works on the pull request, it can push its own fix for an Important finding, so pull the branch before you start.
35* **Explain or disagree**: reply to the comment. Claude doesn't respond right away, and a reply doesn't start a review. The next review of the pull request reads the replies on its earlier findings, and can resolve the thread or post one follow-up reply. If the same kind of finding keeps coming back, ask a maintainer to add a rule to [`REVIEW.md`](https://code.claude.com/docs/en/code-review-customize#choose-what-to-write-in-review-md).
33* **Explain or disagree**: reply to the comment. The thread stays open after you reply. The next review of the pull request reads the replies on its earlier findings, and can resolve the thread or post one follow-up reply. If the same kind of finding keeps coming back, ask a maintainer to add a rule to [`REVIEW.md`](https://code.claude.com/docs/en/code-review-customize#choose-what-to-write-in-review-md).
3634 
37To get that next review without pushing, comment `@claude review` as a [top-level pull request comment](#comment-commands).
35To request a new review, comment `@claude review` as a [top-level pull request comment](#comment-commands).
3836 
37You can merge with findings still open, unless your repository's own rules block the merge. If its branch protection [requires conversation resolution](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-conversation-resolution-before-merging), resolve each finding's thread before you merge.
38 
3939## Check run output
4040 
41The **Details** link on the **Claude Code Review** check run opens the findings in one table sorted by severity, including any finding whose inline comment GitHub didn't accept:
41Open the pull request's **Checks** tab and select **Claude Code Review** to see the findings in one table sorted by severity, including any finding whose inline comment GitHub rejected:
4242 
4343| Severity | File:Line | Issue |
4444| - | - | - |
from line 47
4747 
4848A finding that has a line but wasn't posted as an inline comment appears as an annotation in the **Files changed** tab, on the lines concerned. Important findings show in red, nits in yellow, and pre-existing bugs in gray.
4949 
50The check run concludes as neutral, or as skipped after some pushes that change no files and [keep the earlier result](#when-a-push-keeps-the-earlier-result). It never concludes as a failure, so a finished review doesn't fail a required check. If you don't see findings, or a review didn't run, see [Troubleshoot Code Review](https://code.claude.com/docs/en/code-review-troubleshooting.md).
50The check run concludes as neutral, or as skipped after some pushes that [keep the earlier result](#when-a-push-keeps-the-earlier-result). GitHub counts both as passing for a required check. For missing findings or reviews, see [Troubleshoot Code Review](https://code.claude.com/docs/en/code-review-troubleshooting.md).
5151 
5252### When a push keeps the earlier result
5353 
from line 61
6161* The pull request still adds and removes the same lines, as after an empty commit, a clean merge of the base branch, or a clean rebase
6262* Nobody has resolved an Important finding's thread since that review
6363 
64To get a review without a code change, comment [`@claude review`](#comment-commands) or click **Re-run** on the check run.
64To get a new review anyway, comment [`@claude review`](#comment-commands) or click **Re-run** on the check run.
6565 
6666### Read the result from a script
6767 
from line 102
102102 
103103Have your script handle these cases in order:
104104 
105* **The title starts with `Code review not repeated`**: Code Review [kept an earlier result](#when-a-push-keeps-the-earlier-result) whose Important findings are still open, and the check run has no severity line. Read the title before the counts, with `gh api repos/OWNER/REPO/check-runs/CHECK_RUN_ID --jq .output.title`. Fail the job if you want to gate the merge.
105* **The title starts with `Code review not repeated`**: Code Review [kept an earlier result](#when-a-push-keeps-the-earlier-result) whose Important findings are still open, and the check run omits the severity line. Read the title before the counts, with `gh api repos/OWNER/REPO/check-runs/CHECK_RUN_ID --jq .output.title`. Fail the job if you want to gate the merge.
106106* **The title ends with `no new changes`**: let the job pass without reading the counts
107107* **`normal` is above zero**: fail the job if you want to gate the merge. The `normal` key holds the count of Important findings, so Claude found at least one bug worth fixing before merge. To print only that count, add `| .normal` before the closing single quote.
108* **The line is missing**: the command prints an error that contains `no severity line` instead of counts, and exits with a non-zero status. Treat that as no verdict rather than as zero findings. A check run for a review that failed, timed out, was canceled, or was superseded by a newer one has no such line, and some completed reviews have none either.
108* **The line is missing**: the command prints an error that contains `no severity line` instead of counts, and exits with a non-zero status. Treat that as no verdict rather than as zero findings.
109109 
110110## Request a review
111111 
from line 113
113113 
114114* **Open it or mark it ready**: in a repository set to **Once after PR creation** or **After every push**, a review starts when you open or reopen the pull request, or mark a draft ready for review.
115115* **Comment a command**: post [`@claude review`](#comment-commands) on the pull request.
116* **Push a commit**: a push starts a review in a repository set to **After every push**, or on a pull request you subscribed with `@claude review always`. If your pull request still adds and removes the same lines after the push, Code Review can [keep the earlier result](#when-a-push-keeps-the-earlier-result) instead.
117* **Click Re-run**: after a review fails or times out on a pull request that isn't from a fork, [run it again](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) from the check run. On a pull request that isn't from a fork, you can also click **Re-run** after a push that [kept the earlier result](#when-a-push-keeps-the-earlier-result).
116* **Push a commit**: in a repository set to **After every push**, or on a pull request you subscribed with `@claude review always`, a review starts when you push. If your pull request still adds and removes the same lines after the push, Code Review can [keep the earlier result](#when-a-push-keeps-the-earlier-result) instead.
117* **Click Re-run**: after a review fails or times out, [run the review again](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) from the check run. You can also click **Re-run** after a push that [kept the earlier result](#when-a-push-keeps-the-earlier-result). **Re-run** works only on pull requests from a branch in the same repository.
118118* **Wait for the automatic retry**: a review whose session was interrupted is retried once automatically. The [check run's summary](https://code.claude.com/docs/en/code-review-troubleshooting.md#retrigger-a-failed-or-timed-out-review) says when that's happening.
119119 
120120### Comment commands
from line 123
123123 
124124| Command | What it does | When to use it |
125125| :- | :- | :- |
126| `@claude review` | Starts a single review without subscribing the PR to future pushes | You want one review now, such as on a pull request in a repository set to **Manual**, or another review right away in the other modes |
126| `@claude review` | Starts a single review | You want one review now, such as on a pull request in a repository set to **Manual**, or another review right away in the other modes |
127127| `@claude review always` | Starts a review and subscribes the PR to push-triggered reviews going forward | You want subsequent pushes to start reviews, such as on a high-priority PR in a repository set to **Manual** |
128128| `@claude review once` | Same as `@claude review`: starts a single review without subscribing | The same cases as `@claude review` |
129129| `@claude review stop` | Ends the PR's subscription to push-triggered reviews, without starting a review or canceling one that's already running. Claude replies with a comment instead of a check run. | You subscribed a PR with `@claude review always` in a repository set to **Manual** or **Once after PR creation**, and no longer want each push to start a review |
130130| `@claude review off` or `@claude review pause` | Same as `@claude review stop` | The same cases as `@claude review stop` |
131131 
132In a repository set to **After every push**, you can't stop reviews with a comment, because pushes there start reviews with or without a subscription. To stop pushes from starting reviews on one pull request there, convert it to a [draft](#review-drafts-and-pull-requests-from-forks). When you mark it ready for review again, a review starts.
132For any comment command to take effect, meet all of these conditions:
133133 
134For any comment command to take effect, all of these conditions have to hold:
135 
136134* Post it as a new top-level pull request comment, not an inline comment on a diff line and not the body of a review. Editing an earlier comment doesn't count.
137135* Put the whole command on one line at the start of the comment. Other text can follow it. If `always` or `stop` is misspelled or on a later line, Claude reads the comment as a plain `@claude review` and starts a single review. Capitalization doesn't matter.
138136* You need write, maintain, or admin permission on the repository. Claude checks this with GitHub for each person who comments, and comments from bots don't start reviews.
139137* The pull request must be open.
140138 
141When a command that starts a review is accepted, a **Claude Code Review** check run appears on the pull request with the title **Code review queued...**. The title changes to **Code review in progress...** when the review starts. Claude may also react to your comment with 👀, but that reaction can appear when no review starts, so look for the check run instead.
139To confirm that Code Review accepted your review request, look for a **Claude Code Review** check run on the pull request with the title **Code review queued...**. The title changes to **Code review in progress...** when the review starts. If a review is already running on the pull request's latest commit, wait for that review to finish before you request another.
142140 
143If a review is already running on the pull request's latest commit, a new request doesn't start a second one.
141In a repository set to **After every push**, you keep getting reviews on pushes after you comment `@claude review stop`. To stop those reviews on one pull request, convert it to a [draft](#review-drafts-and-pull-requests-from-forks). When you mark it ready for review again, a review starts.
144142 
145143> [!NOTE]
146144>
from line 151
153151* **Findings on code that hasn't changed since the last review**: the sentence ends "outside the scope of this re-review and not posted"
154152* **Nits and pre-existing findings**: the sentence ends "found and not posted"
155153 
156To get a review that leaves none of these out, comment [`@claude review`](#comment-commands). It covers the whole pull request again.
154To get a review that reports these kinds of findings, comment [`@claude review`](#comment-commands). It covers the whole pull request again.
157155 
158156### Review drafts and pull requests from forks
159157 
160158Automatic reviews skip both of these, so request the review with a comment command:
161159 
162* **Draft pull requests**: a comment command runs on a draft, so you can request a review before you mark the pull request ready. Pushes to a draft don't start reviews, even after `@claude review always`. The subscription takes effect once you mark the pull request ready.
163* **Pull requests from forks**: Claude doesn't review a pull request from a fork automatically, regardless of the repository's **Review runs** setting. To start one, comment `@claude review` on the pull request. The [conditions for comment commands](#comment-commands) still apply, and the write access you need is to the base repository, not the fork.
160* **Draft pull requests**: a comment command runs on a draft, so you can request a review before you mark the pull request ready. If you comment `@claude review always` on a draft, the subscription takes effect once you mark the pull request ready.
161* **Pull requests from forks**: the [conditions for comment commands](#comment-commands) still apply, and you need write access to the base repository
164162 
165On a pull request from a fork, `@claude review always` works too, but doesn't subscribe the pull request to reviews on later pushes. Clicking **Re-run** on the check run doesn't start a review there.
163On a pull request from a fork, comment `@claude review` for each review, even after `@claude review always`.
166164 
167165### Use Code Review alongside the Claude Code GitHub Action
168166 
169If the repository also runs the [Claude Code GitHub Action](https://code.claude.com/docs/en/github-actions.md) in interactive mode with its default `@claude` trigger phrase, an `@claude review` comment starts the Action as well. To keep the two apart, set the Action's `trigger_phrase` input to a different phrase.
167If the repository also runs the [Claude Code GitHub Action](https://code.claude.com/docs/en/github-actions.md) in interactive mode with its default `@claude` trigger phrase, you start the Action as well when you comment `@claude review`. To keep the two apart, set the Action's `trigger_phrase` input to a different phrase.
170168 
171169Also replace each `@claude` in your workflow's `if` condition with the new phrase, so that the Action starts on that phrase instead.
172170 

errors Changed · +15 / -12 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 46
4646| `Usage credits ran out before the response was finished.` | [Add usage credits](https://code.claude.com/docs/en/costs.md#add-usage-credits-to-your-subscription) |
4747| `the prompt to confirm went unanswered · nothing was sent`, from v2.1.324 | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
4848| `Claude stopped here · send a message to be asked again` | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
49| `Claude stopped here because <model> now requires usage credits` | [Usage limits](#the-prompt-to-confirm-went-unanswered) |
4950| `Server is temporarily limiting requests` | [Usage limits](#server-is-temporarily-limiting-requests) |
5051| `Request rejected (429)` | [Usage limits](#request-rejected-429) |
5152| `Credit balance is too low` | [Usage limits](#credit-balance-is-too-low) |
from line 402
401402| `installed mods are off for now` | [Check whether mods can load](https://code.claude.com/docs/en/plugins/mods/troubleshoot.md#check-whether-mods-can-load) |
402403| `the hooks worker was lost with <mod>'s <event> hook in flight` | Fix the named mod. For one cause, see [`it crashed the hooks worker`](https://code.claude.com/docs/en/plugins/mods/troubleshoot#it-crashed-the-hooks-worker). |
403404| `dispatches in a row for fills by <mods>` | Change the named mods so they fill the prompt box at most eight times in a row. |
404| `changed a slash command's typed line` | [Rewrite or add to a prompt](https://code.claude.com/docs/en/plugins/mods/events.md#rewrite-or-add-to-a-prompt) |
405| `changed a slash command's typed line` | [Change command arguments](https://code.claude.com/docs/en/plugins/mods/events.md#change-command-arguments) |
405406| `no prompt.submit in flight carries an attachment under that id` | Call `$.prompt.media` inside the `prompt.submit` hook whose `e.attachments` lists the `id` you pass. Look up `$.prompt.media` in [the types for your build](https://code.claude.com/docs/en/plugins/mods/create.md#get-the-types-for-your-build). |
406407| `Error: No such tool available: <tool name>` | [Tool errors](#no-such-tool-available) |
407408| `MCP server "<name>" connection closed before the tool call was answered` | [Tool errors](#connection-closed-before-the-tool-call-was-answered) |
from line 1030
10291030 
10301031### The prompt to confirm went unanswered
10311032 
1032When the [Fable usage-credits consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) closes with nobody answering it, Claude Code ends the turn with one of these messages:
1033When you dismiss the mid-session [Fable usage-credits consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) or it closes unanswered, Claude Code can end the turn with one of these messages:
10331034 
10341035```text theme={null}
10351036Fable limit reached · continuing on Fable 5.1 uses usage credits, and the prompt to confirm went unanswered · nothing was sent · answer it where this session is running, or /model to change
10361037Fable 5.1 now uses usage credits · the prompt to confirm went unanswered · nothing was sent · answer it where this session is running, or /model to change
1038Claude stopped here because Fable 5.1 now requires usage credits.
10371039```
10381040 
1039The messages name the session's Fable model, so on Fable 5.2 they read `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. With [Remote Control](https://code.claude.com/docs/en/remote-control.md) connected, each message can instead end `Claude stopped here · send a message to be asked again, or switch models`. Before v2.1.257, the first message began `Fable 5 limit reached`.
1041The messages name the session's Fable model, so on Fable 5.2 you see text such as `continuing on Fable 5.2` and `Fable 5.2 now uses usage credits`. With [Remote Control](https://code.claude.com/docs/en/remote-control.md) connected, the first two messages can instead end with `Claude stopped here · send a message to be asked again, or switch models`. Before v2.1.257, the first message began `Fable 5 limit reached`.
10401042 
1041This happens in [Remote Control](https://code.claude.com/docs/en/remote-control.md) sessions, [background sessions](https://code.claude.com/docs/en/agent-view.md), [agent team](https://code.claude.com/docs/en/agent-teams.md) teammate sessions, and sessions that another application hosts through the Agent SDK. For when Claude Code closes the prompt, see [Fable and usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits).
1043For when Claude Code closes the prompt, see [Fable and usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits).
10421044 
10431045**What to do:**
10441046 
1045* Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](https://code.claude.com/docs/en/agent-view.md) first. If the message says `Claude stopped here`, you can also reply from your connected device and answer the consent prompt there.
1047* Where the session runs, at the terminal or in the application hosting it, send another prompt and answer the consent prompt when it reappears. For a background session, attach to it from the [agents view](https://code.claude.com/docs/en/agent-view.md) first.
1048* With Remote Control connected to a terminal session, you can also reply from your device and answer the prompt if it appears there
10461049* Run `/model` to switch to a model that doesn't bill usage credits
10471050* To give yourself more time, set [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) to a longer value or `"never"`
10481051 
1049Before v2.1.236, this message didn't appear: while a Remote Control client was connected, Claude Code waited 60 seconds for an answer and then continued the turn on your default model.
1052Before v2.1.236, these messages didn't appear. While a Remote Control client was connected, Claude Code waited 60 seconds for an answer and then continued the turn on your default model.
10501053 
10511054### Server is temporarily limiting requests
10521055 
from line 2374
23712374 
23722375**What to do:**
23732376 
2374* Check the address and credentials in the proxy variable, as [Proxy configuration](https://code.claude.com/docs/en/network-config.md#proxy-configuration) describes, then run `curl -x http://proxy.example.com:8080 -I https://api.anthropic.com` from the shell you start Claude Code in, using your own proxy URL. On Windows PowerShell, run `curl.exe`. If this probe fails the same way, fix the proxy setup first. If it succeeds, the refusal is spec
2377* Check the address and credentials in the proxy variable, as [Proxy configuration](https://code.claude.com/docs/en/network-config.md#proxy-configuration) describes, then run `curl -x http://proxy.example.com:8080 -I https://api.anthropic.com` from the shell you start Claude Code in, using your own proxy URL. On Windows PowerShell, run `curl.exe`. If this probe fails the same way, fix the proxy setup first. If it succeeds, the refusal is specific to the artifact host.
2378* If your network lets Claude Code reach t

model-config Changed · +10 / -14 lines

from line 98
9898In interactive sessions, Claude Code can show a Fable usage-credits consent prompt. You can continue on Fable using usage credits or switch to your default model. You can also dismiss the prompt:
9999 
100100* When you select a Fable model with `/model`, you keep your current model.
101* Mid-session, Claude Code continues the turn on your default model.
101* Mid-session, Claude Code either [ends the turn](https://code.claude.com/docs/en/errors.md#the-prompt-to-confirm-went-unanswered) or continues it on your default model.
102102 
103After you choose to continue on Fable using usage credits, Claude Code doesn't show the prompt again.
103When you're signed in with `/login` and continue on Fable at the terminal or in VS Code, Claude Code saves that choice for later sessions. With [Remote Control](https://code.claude.com/docs/en/remote-control.md) connected in an interactive terminal session, you can also answer the mid-session prompt on your device, and that answer lasts for that session. Answering on your device requires Claude Code v2.1.323 or later.
104104 
105In a session with [Remote Control](https://code.claude.com/docs/en/remote-control.md) connected, a [background session](https://code.claude.com/docs/en/agent-view.md), or an [agent team](https://code.claude.com/docs/en/agent-teams.md) teammate's session, nobody may be at the terminal, so Claude Code holds the mid-session consent prompt for the [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) deadline, five minutes by default. If nobody has answered by the deadline, Claude Code ends the turn without sending the request and adds a notice to the transcript, which the Remote Control client also shows. Your model selection is unchanged, and Claude Code asks for consent again on your next message.
105The mid-session prompt waits until you answer. It can instead close at the [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) deadline, five minutes by default, in these sessions:
106106 
107What you can do while the prompt is waiting depends on the session:
107* **Remote Control connected, or a [split-pane teammate](https://code.claude.com/docs/en/agent-teams.md#choose-a-display-mode)**: press the right arrow key at the terminal to cancel the deadline.
108* **[Background session](https://code.claude.com/docs/en/agent-view.md), or an [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md) application such as VS Code**: answer before the deadline, even with Remote Control connected.
108109 
109* With Remote Control connected or in a teammate's session, press any key at the terminal to cancel the deadline, and Claude Code waits for your answer.
110* With Remote Control connected in an interactive terminal session, you can also answer on your connected device, and that answer lasts for that session. Requires Claude Code v2.1.323 or later.
111* In a background session, answer before the deadline.
112* If you send a new message from the remote client before anyone has typed at the terminal, Claude Code ends the turn the same way, and your new message starts the next turn. After someone types at the terminal, Claude Code keeps waiting for the answer and queues your new message behind it.
113 
114In a session another application hosts through the [Agent SDK](https://code.claude.com/docs/en/agent-sdk/overview.md), whether the prompt appears is up to that application. If it appears and nobody answers before the same [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) deadline, Claude Code ends the turn without sending the request.
110If the deadline passes, Claude Code ends the turn without sending the request and keeps your model. The prompt returns with your next message on Fable. If you send a message while the prompt is open, the turn can end the same way.
115111 
116112In [non-interactive mode](https://code.claude.com/docs/en/headless.md) with the `-p` flag, and in an Agent SDK application that doesn't show the prompt, Claude Code never asks for consent. When a Fable request there would bill to usage credits, Claude Code bills it without asking.
117113 

plugins/mods/events Changed · +17 / -7 lines

#### Stop a prompt #### Change command arguments #### Change system prompt, context, or skill text

from line 282
282282 
283283When you send a prompt such as `open a PR for this change`, your message looks the same in the transcript, and Claude also reads a line such as `Current branch: feature/auth` after it. A prompt that doesn't mention a pull request goes through unchanged, and `git` doesn't run.
284284 
285To change a `/command`'s arguments, return `next({ ...e, args: newArgs })` from a [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook. After you add the `command.run` hook, have any `prompt.submit` hook that rewrites `text` skip the rewrite when `e.command` is set. `e.command` requires Claude Code v2.1.299 or later.
285#### Stop a prompt
286286 
287To stop a prompt, return `{ drop: 'the reason' }` without calling `next`. The text goes back into the user's prompt input, and they see `Prompt dropped by a hook:` followed by your reason, so address the reason to them. Don't rely on `drop` to stop every prompt. For example, a prompt goes through in these cases:
287To stop a prompt, return `{ drop: 'the reason' }` from your `prompt.submit` hook without calling `next`. The user gets the text back in the prompt input and sees `Prompt dropped by a hook:` followed by your reason.
288288 
289* **Your hook returns a `drop` after its `next(e)` call let the prompt through**: the turn still runs, and the hook [fails](#handle-a-hook-that-fails) with a message that includes `a drop after its next() was answered`
290* **Your hook throws or times out**: Claude Code skips it and sends the prompt. [Add a `.catch` handler](#handle-a-hook-that-fails) so that a failure doesn't send a prompt the hook would have stopped.
291* **The prompt is the `/command` for a [skill with `context: fork`](https://code.claude.com/docs/en/skills#run-skills-in-a-subagent)**: your hook doesn't run. To stop the command, return `{ text: 'the reason' }` from a [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook without calling `next`.
289Some prompts still go through, for example:
290 
291* **Late drop**: if you return `drop` after `next(e)` has let the prompt through, the hook [fails](#handle-a-hook-that-fails) with a message that includes `a drop after its next() was answered`. Decide whether to drop before you call `next`.
292* **Failed hook**: if your hook throws or times out before it calls `next`, Claude Code skips the hook. To stop the prompt instead, [add a `.catch` handler](#handle-a-hook-that-fails).
293* **Forked skill**: your hook doesn't run for the `/command` of a [skill with `context: fork`](https://code.claude.com/docs/en/skills#run-skills-in-a-subagent). To stop the command, return `{ text: 'the reason' }` from a [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook without calling `next`.
294 
295#### Change command arguments
296 
297To change a `/command`'s arguments, return `next({ ...e, args: newArgs })` from a [`command.run`](https://code.claude.com/docs/en/plugins/mods/api#add-a-command) hook.
298 
299Then, in any `prompt.submit` hook that rewrites `text`, skip the rewrite for commands, when `e.command` is set. `e.command` requires Claude Code v2.1.299 or later.
300 
301#### Change system prompt, context, or skill text
292302 
293303[Other events](https://code.claude.com/docs/en/plugins/mods/reference.md#prompts-and-what-claude-reads) cover the rest of what Claude reads: `prompt.section` for each section of the system prompt, `prompt.context` for the context sent with the first message, and `skill.prompt` for a skill's text. To change a section after a conversation has started, see [Send a changed system prompt section or tool description](https://code.claude.com/docs/en/plugins/mods/reference.md#break-prompt-cache). In a `skill.prompt` hook, you can also read [which plugin or file the skill came from](https://code.claude.com/docs/en/plugins/mods/reference.md#skill-prompt-fields).
294304 

remote-control Changed · +3 / -3 lines

from line 298
298298* **Day to day**: members with an enrolled device and a recent sign-in see no prompts. When the sign-in ages past 18 hours, the next Remote Control interaction shows a single Face ID, Touch ID, Windows Hello, or passkey prompt.
299299* **Unenrolled devices**: Remote Control sessions cannot be viewed or steered until the device is enrolled. Regular Claude chat on that device is unaffected.
300300* **No platform authenticator**: members on a machine without Face ID, Touch ID, or Windows Hello can use a hardware security key, or sign in again instead of stepping up.
301* **In the terminal**: the machine running Claude Code receives its own credential automatically when the developer signs in to the CLI. There is no separate enrollment step in the terminal.
301* **In the terminal**: the machine running Claude Code receives its own credential automatically when the developer signs in to the CLI.
302302 
303303### Manage enrolled devices
304304 
from line 368
368368* **Attachments that don't download**: if a file you attach from your phone or browser can't be downloaded to your machine, Claude still receives your message and the files that were downloaded. In place of the missing files, Claude Code adds a note such as `[1 of 3 attachments did not arrive]` to the message.
369369* **Presence heartbeats failing**: if an interactive session disconnects with `could not reach the Remote Control server for about 30 minutes`, run `/remote-control` to reconnect.
370370* **Forwarded dialogs expire**: Claude Code keeps permission prompts and `AskUserQuestion` questions open until you answer them. When Claude Code forwards another kind of dialog to the remote session, such as the model-choice prompt shown after a safety refusal, it waits five minutes by default, then closes the dialog and continues with the dialog's no-action default. Set [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) to adjust or disable the deadline. Requires Claude Code v2.1.224 or later.
371* **Unanswered Fable usage-credits prompts end the turn**: if nobody answers the [Fable usage-credits consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) by the [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) deadline, the turn ends and nothing is sent; see [The prompt to confirm went unanswered](https://code.claude.com/docs/en/errors.md#the-prompt-to-confirm-went-unanswered). In an interactive session in a terminal, the prompt can also appear on your connected device, and you can answer it there. Requires Claude Code v2.1.323 or later.
371* **Unanswered Fable usage-credits prompts can end the turn**: the [consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) can close at the [`dialogExpiry`](https://code.claude.com/docs/en/settings-reference#dialogexpiry) deadline. Claude Code then [ends the turn](https://code.claude.com/docs/en/errors.md#the-prompt-to-confirm-went-unanswered) without sending the request. In an interactive session in a terminal, the prompt can also appear on your connected device, and you can answer it there. Requires Claude Code v2.1.323 or later.
372372* **Some commands are local-only**: commands that only run in the terminal interface, such as `/plugin` or `/resume`, work only from the local CLI, whether or not you pass an argument. `/claude-api` is also unavailable when you type it from mobile or web. Claude can still [load that skill on its own](https://code.claude.com/docs/en/skills.md#work-on-claude-api-projects) there. The following work from mobile and web:
373373 * Text-output commands: `/compact`, `/clear`, `/context`, `/usage`, `/exit`, `/usage-credits`, `/recap`, and `/reload-plugins`. `/usage-credits` replies in text, such as where to manage usage credits. `/reload-plugins` works only when the session runs in an interactive terminal; a session without one declines it.
374374 * `/model`, `/effort`, `/fast`, `/color`, and `/rename`: pass the value as an argument, for example `/model sonnet` or `/effort high`. From mobile and web, `/model` and `/effort` take the argument in place of the terminal picker or slider.
from line 553
553553 
554554### "Your organization requires Trusted Devices for Remote Control, but this device is not enrolled"
555555 
556Your organization has [Trusted Devices](#trusted-devices) enabled and this machine has not enrolled yet. Run `/login` in Claude Code. Enrollment happens as part of sign-in, and there is no separate enrollment command.
556Your organization has [Trusted Devices](#trusted-devices) enabled and this machine has not enrolled yet. Run `/login` in Claude Code. Enrollment happens as part of sign-in.
557557 
558558### "session expired for trusted-device check"
559559 

routines Changed · +9 / -1 lines

### A scheduled task turned off with a usage credits notice

from line 69
6969* If a menu opens with **Create with Claude** and **Set up manually**, select **Set up manually** to open the dialog. **Create with Claude** lets you describe the task in a chat and have Claude create it instead.
7070* If a full page opens in place of the dialog, go to [Full-page form](#full-page-form).
7171 
72If **Repositories** and **Environment** are already showing when the dialog opens, see [how that dialog differs](#dialog-with-repositories-and-environment-in-the-main-view). Otherwise, this dialog also creates scheduled tasks for claude.ai chat. To make yours what the dialog calls a Claude Code task, select a repository or add a GitHub event or API trigger in the steps that follow. That kind of task runs Claude Code in a cloud session.
72If **Repositories** and **Environment** are already showing when the dialog opens, see [how that dialog differs](#dialog-with-repositories-and-environment-in-the-main-view).
7373 
7474**2. Name the task and write the prompt**
7575 
from line 97
9797 
9898In the **Repository** row below **Trigger**, select one or more GitHub repositories for Claude to work in. If the row isn't there, expand **Advanced settings** and find **Repository** on the **General** tab.
9999 
100> [!NOTE]
101>
102> If the row says **Picking a repository makes this a Claude Code task**, select a repository so the task runs Claude Code in a [cloud session](https://code.claude.com/docs/en/claude-code-on-the-web.md). If you skip the repository in that case and add only a schedule trigger, you create a scheduled task for claude.ai chat.
103 
100104Each repository is cloned at the start of a run. Claude creates `claude/`-prefixed branches for its changes.
101105 
102106**5. Select an environment**
from line 509
505509### Scheduled tasks are off for your organization
506510 
507511Cloud scheduled tasks are off for your organization, and you can't change that from your local configuration. Ask your Team or Enterprise Owner whether they can turn on the **Scheduled tasks (Was Routines)** or **Routines** toggle at [**Organization settings > Capabilities > Remote sessions**](https://claude.ai/admin-settings/capabilities).
512 
513### A scheduled task turned off with a usage credits notice
514 
515If a task's model [requires usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) on your plan, claude.ai can skip the next run and turn the task off. On the task's [detail page](#edit-and-control-scheduled-tasks), turn the task back on to use usage credits, or change its model before you turn it on.
508516 
509517### Warnings under History
510518 

settings-reference Changed · +4 / -4 lines

This page is larger than the 256 KiB this site keeps, so one side of the diff below stops where the stored text does.

from line 500
500500 
501501Cap the [effort level](https://code.claude.com/docs/en/model-config.md#adjust-effort-level) a session can use, leaving lower levels available. Any higher level runs at the cap instead, including one from `/effort`, the `/model` picker, `--effort`, [`CLAUDE_CODE_EFFORT_LEVEL`](https://code.claude.com/docs/en/env-vars), a skill's or subagent's `effort` frontmatter, or the model's own default. Claude Code applies the cap itself before each request, so it holds on every provider, including Amazon Bedrock, Google Cloud's Agent Platform, and Microsoft Foundry. Requires Claude Code v2.1.267 or later.
502502 
503* **Scope**: [`Any file`](#scopes). Deploy it in managed settings to enforce it for an organization. When several scopes set a cap, the lowest applies, so a cap set in one scope can't be raised from another
503* **Scope**: [`Any file`](#scopes). Deploy it in managed settings to enforce it for an organization. When several scopes set a cap, the lowest applies
504504* **Type**: string, one of `"low"`, `"medium"`, `"high"`, `"xhigh"`, or `"max"`. A `"max"` value sets no cap
505505* **Default**: unset, so no cap applies
506506* **Per-model caps**: add `maxEffortLevel` to a model's [`modelSettings`](#modelsettings) entry. That entry replaces this key for the model only within the settings source that sets both, such as your user settings or one [managed source](https://code.claude.com/docs/en/managed-settings.md#how-claude-code-combines-managed-sources). Set `"max"` there to exempt the model from that source's cap; Claude Code still applies caps from other sources
from line 2776
27762776 
27772777### `dialogExpiry`
27782778 
2779Set the deadline for dialogs Claude Code [forwards to a remote client](https://code.claude.com/docs/en/remote-control.md#limitations), such as a Remote Control or SDK host, and for the approval dialog for a [held cross-session message](https://code.claude.com/docs/en/cross-session-messaging.md#control-inbound-messages). On Claude Code v2.1.236 or later, the same deadline bounds the mid-session [Fable usage-credits consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) in a session that may have nobody at the terminal. When no answer arrives before the deadline, Claude Code cancels the dialog and continues with its no-action default. Requires Claude Code v2.1.224 or later.
2779Set the deadline for dialogs Claude Code [forwards to a remote client](https://code.claude.com/docs/en/remote-control.md#limitations), such as a Remote Control or SDK host, and for the approval dialog for a [held cross-session message](https://code.claude.com/docs/en/cross-session-messaging.md#control-inbound-messages). Requires Claude Code v2.1.224 or later. On Claude Code v2.1.236 or later, the same deadline applies to the mid-session [Fable usage-credits consent prompt](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) in some sessions.
27802780 
2781When no answer arrives before the deadline, Claude Code cancels the dialog and continues with its no-action default, or ends the turn for the Fable prompt.
2782 
27812783* **Scope**: [`User or managed`](#scopes)
27822784* **Type**: string, one of `"60s"`, `"5m"`, `"10m"`, or `"never"`, which disables the deadline
27832785* **Default**: `"5m"`
from line 3314
33123314 * `"default"`: the classic main-screen renderer
33133315 * `"fullscreen"`: the flicker-free alt-screen renderer with virtualized scrollback
33143316* **Default**: unset, so Claude Code [picks the renderer for you](https://code.claude.com/docs/en/fullscreen.md#fullscreen-by-default)
3315* **Per-session overrides**: [`CLAUDE_CODE_NO_FLICKER`](https://code.claude.com/docs/en/env-vars) and [`CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN`](https://code.claude.com/docs/en/env-vars) take precedence over this key for one session: `CLAUDE_CODE_NO_FLICKER=1` turns fullscreen on, and `CLAUDE_CODE_NO_FLICKER=0` or
3317* **Per-session overrides**: [`CLAUDE_CODE_NO_FLICKER`](https://code.claude.com/docs/en/env-vars) and [`CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN`](https://code.claude.com/docs/en/env-vars) take precedence over this key for one session: `CLAUDE_CODE_NO_FLICKER=1` turns fullscreen on, and `CLAUDE_CODE_NO_FLICKER=0` or `CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN=1` turn

tools-reference Changed · +3 / -3 lines

from line 158
158158 
159159### Timeout and output limits
160160 
161Each command runs under a timeout, and Claude manages it: when it wants longer than the default for a command, it passes the `timeout` parameter with that call. You never set a per-command timeout.
161Each command runs under a timeout, and Claude manages it: when it wants longer than the default for a command, it passes the `timeout` parameter with that call.
162162 
163163Two [environment variables](https://code.claude.com/docs/en/env-vars.md) control what Claude gets for a command that runs in the foreground:
164164 
from line 253
253253 
254254## Edit tool behavior
255255 
256The Edit tool performs exact string replacement. It takes an `old_string` and a `new_string` and replaces the first with the second. It doesn't use regex or fuzzy matching.
256The Edit tool performs exact string replacement. It takes an `old_string` and a `new_string` and replaces the first with the second.
257257 
258258These checks must pass for an edit to apply. Before any of them, a path matched by a [`Read` deny rule](https://code.claude.com/docs/en/permissions#tool-specific-permission-rules) is refused, including creating a new file there.
259259 
from line 443
443443 
444444## NotebookEdit tool behavior
445445 
446NotebookEdit modifies a Jupyter notebook one cell at a time, targeting cells by their `cell_id`. It doesn't perform string replacement across the notebook the way [Edit](#edit-tool-behavior) does on plain files.
446NotebookEdit modifies a Jupyter notebook one cell at a time, targeting cells by their `cell_id`.
447447 
448448Three edit modes control what happens to the target cell:
449449 

agent-sdk/claude-code-features Changed · +1 / -1 lines

from line 4
44 
55The Agent SDK is built on the same foundation as Claude Code, which means your SDK agents have access to the same filesystem-based features: project instructions (`CLAUDE.md` and rules), skills, hooks, and more.
66 
7When you omit `settingSources`, `query()` reads the same filesystem settings as the Claude Code CLI: user, project, and local settings, CLAUDE.md files, and `.claude/` skills, agents, and commands. To run without these, pass `settingSources: []`, which limits the agent to what you configure programmatically. Managed policy settings and the global `~/.claude.json` config are read regardless of this option. For more information, see [What settingSources does not control](#what-settingsources-does-not-control).
7When you omit `settingSources`, `query()` reads the same filesystem settings as the Claude Code CLI: user, project, and local settings, CLAUDE.md files, and `.claude/` skills, agents, and commands. To run without these, pass `settingSources: []`. Inputs such as managed policy settings and the global `~/.claude.json` config are still read. For more information, see [What settingSources does not control](#what-settingsources-does-not-control).
88 
99## Control filesystem settings with settingSources
1010 

agent-view Changed · +2 / -2 lines

from line 426
426426* Open `claude agents` in a parent directory and mention a child repository with `@<repo>` in the prompt. Typing `@` lists these targets:
427427 
428428 * Git repositories one level below the launch directory
429 * The registered [git worktrees](https://code.claude.com/docs/en/worktrees.md) of the repository you launched from that live inside its directory tree, such as the ones Claude creates under `.claude/worktrees/`, labeled with their checked-out branch. Worktrees added outside the repository, such as with `git worktree add ../feature`, aren't listed
429 * The registered [git worktrees](https://code.claude.com/docs/en/worktrees.md) of the repository you launched from that live inside its directory tree, such as the ones Claude creates under `.claude/worktrees/`, labeled with their checked-out branch
430430 * Any directory that already has a session in the list
431431 
432432 A directory whose name contains a space isn't listed.
from line 588
588588Claude skips the worktree when:
589589 
590590* You [moved a session you already had open to the background](#from-inside-a-session) with `←` or `/background`. That session keeps editing files where it was already working
591* The session is already inside a linked git worktree, whether Claude created it under `.claude/worktrees/` or you created it with `git worktree add` somewhere else
591* The session is already inside a linked git worktree
592592* The file that Claude is editing is inside a linked git worktree, such as one that the session or its subagent created with `git worktree add`
593593* The working directory isn't a git repository and no [`WorktreeCreate` hook](https://code.claude.com/docs/en/hooks#worktreecreate) is configured
594594* The write is outside the working directory

amazon-bedrock Changed · +1 / -1 lines

from line 129
129129export AWS_BEARER_TOKEN_BEDROCK=your-bedrock-api-key
130130```
131131 
132When `AWS_BEARER_TOKEN_BEDROCK` is set, Claude Code authenticates with the key and doesn't resolve the credential chain, even if other AWS credentials are present. [Learn more about Amazon Bedrock API keys](https://aws.amazon.com/blogs/machine-learning/accelerate-ai-development-with-amazon-bedrock-api-keys/).
132When `AWS_BEARER_TOKEN_BEDROCK` is set, Claude Code authenticates with the key. [Learn more about Amazon Bedrock API keys](https://aws.amazon.com/blogs/machine-learning/accelerate-ai-development-with-amazon-bedrock-api-keys/).
133133 
134134#### Credential caching and resolution timeout
135135 

auto-mode-config Changed · +1 / -0 lines

from line 415
415415If a denial shows one of these names, the [server-side classifier](https://code.claude.com/docs/en/permission-modes.md#server-side-classifier-review) blocked the call and gave a broad policy as its reason:
416416 
417417* `[Destructive or Unwanted Actions]`
418* `[Sensitive Information Leakage]`
418419* `[Unauthorized Access]`
419420* `[Undermining Oversight]`
420421* `[Unsanctioned Communication]`

claude-apps-gateway Changed · +2 / -2 lines

from line 476
476476 
477477[Claude Desktop](https://code.claude.com/docs/en/desktop.md) connects to the same gateway through a different MDM key: set `bootstrapUrl` in Claude Desktop's [managed configuration](https://claude.com/docs/third-party/claude-desktop/configuration) to `<listen.public_url>/user/bootstrap`, and opt the user's policy in with a `desktop` key. [Claude Desktop overlay](https://code.claude.com/docs/en/claude-apps-gateway-config.md#claude-desktop-overlay) covers both halves. Requires Claude Code v2.1.203 or later on the gateway server. Once connected, Claude Desktop sends model requests from every enabled tab through the gateway.
478478 
479Claude Desktop signs the developer in through the gateway's identity provider with the same browser SSO step, then fetches its configuration from the gateway instead of from Anthropic. Model access and policy follow the same per-group rules as the CLI. A developer who uses both the CLI and Claude Desktop signs in to each separately; the gateway session isn't shared between them.
479Claude Desktop signs the developer in through the gateway's identity provider with the same browser SSO step, then fetches its configuration from the gateway instead of from Anthropic. Model access and policy follow the same per-group rules as the CLI. A developer who uses both the CLI and Claude Desktop signs in to each separately.
480480 
481481### CI pipelines and remote machines
482482 
from line 495
495495 * In the embedded sessions [Claude Desktop launches](#connect-claude-desktop), the CLI sends its exports to the configured `OTEL_EXPORTER_OTLP_ENDPOINT`. The CLI attaches the gateway session token to those exports only when that endpoint points at the gateway itself.
496496 * With no destination configured for a signal, the gateway accepts and discards it.
497497 * If you already collect Claude Code telemetry directly, add your collector as a `forward_to` destination, or name it in a policy to skip the relay.
498* **Credentials**: the gateway token is the session's only credential. [Anthropic profiles](https://code.claude.com/docs/en/authentication.md#anthropic-profiles-and-federation-credentials) and any earlier claude.ai login are ignored while signed in, so developers don't need to log out of claude.ai first. For a configured `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` credential, or an API key saved by an earlier Claude Console login, see [Administrator policy requires a Cloud gateway sign-in](https://code.claude.com/docs/en/errors.md#administrator-policy-requires-a-cloud-gateway-sign-in).
498* **Credentials**: the gateway token is the session's only credential. [Anthropic profiles](https://code.claude.com/docs/en/authentication.md#anthropic-profiles-and-federation-credentials) and any earlier claude.ai login are ignored while signed in. For a configured `ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, or `apiKeyHelper` credential, or an API key saved by an earlier Claude Console login, see [Administrator policy requires a Cloud gateway sign-in](https://code.claude.com/docs/en/errors.md#administrator-policy-requires-a-cloud-gateway-sign-in).
499499* **Managed settings**: locked keys can't be overridden locally. The CLI applies the policy at startup and applies changes on each hourly poll, apart from the [changes that apply only at the next launch](https://code.claude.com/docs/en/server-managed-settings.md#fetch-and-caching-behavior).
500500* **Startup with the gateway unreachable**: signed-in sessions exit at startup with an error after about 10 seconds rather than starting without their settings.
501501* **Startup after the gateway ends the session**: see [Enforce fail-closed startup](https://code.claude.com/docs/en/server-managed-settings.md#enforce-fail-closed-startup) for the launches that open signed out of the gateway and the ones that exit when the gateway answers with a `401`.

cross-session-messaging Changed · +1 / -1 lines

from line 250
250250 
251251Alongside the socket's path, Claude Code exports a per-session token as [`CLAUDE_CODE_MESSAGING_TOKEN`](https://code.claude.com/docs/en/env-vars#variables). A script posting to its own session's socket can send `{"type":"auth","token":"<token>"}` as the first line of its connection, where `<token>` is the value of `CLAUDE_CODE_MESSAGING_TOKEN`. Whether Claude Code requires the line depends on the platform:
252252 
253* **macOS and Linux, including WSL 2**: the line is optional. Claude Code accepts a connection with or without it.
253* **macOS and Linux, including WSL 2**: the line is optional.
254254* **Native Windows**: the line is required. Claude Code closes any connection whose first line isn't a valid auth line and delivers nothing from that connection.
255255 
256256Open the connection only when the message you're posting is ready. Claude Code closes a connection that hasn't sent a complete line within 30 seconds, so capture a slow command's output first and then open the connection to send it.

desktop Changed · +1 / -1 lines

from line 520
520520 
521521Press **Cmd+;** on macOS or **Ctrl+;** on Windows to open a side chat, or type `/btw` in the prompt box. The side chat can read everything in the main thread up to that point. When you're done, close the side chat and return to the main session.
522522 
523Side chats are available in local, SSH, and WSL sessions.
523Side chats work in local, SSH, WSL, and cloud sessions.
524524 
525525### Watch background tasks
526526 

desktop-scheduled-tasks Changed · +2 / -0 lines

from line 142
142142>
143143> For tasks that need to run even when your computer is off, or that should trigger on an API call or GitHub event, create a [cloud scheduled task](https://code.claude.com/docs/en/routines.md) instead.
144144 
145If a task's model [requires usage credits](https://code.claude.com/docs/en/model-config.md#fable-and-usage-credits) on your plan, Desktop can skip its runs, including **Run now**. To run the task again, open its [detail page](#manage-scheduled-tasks), then switch the model or choose to continue with usage credits.
146 
145147### Find a run's session
146148 
147149To open the session a run started, go to the task's [detail page](#manage-scheduled-tasks) and click that run's row in the **History** list.

headless Changed · +1 / -1 lines

from line 277
277277| Field | Type | Description |
278278| - | - | - |
279279| `plugins` | array | plugins that loaded successfully, each with `name` and `path` |
280| `plugin_errors` | array | plugin load-time errors, each with `plugin`, `type`, and `message`. Includes unsatisfied dependency versions and `--plugin-dir` load failures such as a missing path or invalid archive. A plugin that didn't load is absent from `plugins`. The key is omitted when there are no errors |
280| `plugin_errors` | array | plugin load-time errors, each with `plugin`, `type`, and `message`. Includes unsatisfied dependency versions and `--plugin-dir` load failures such as a missing path or invalid archive. The key is omitted when there are no errors |
281281 
282282When a `--plugin-dir` directory or archive itself fails to load, its `plugin_errors` entry includes the resolved absolute path as `path`. Use it to tell which of several `--plugin-dir` values failed. The `path` field requires Claude Code v2.1.283 or later.
283283 

mcp Changed · +2 / -2 lines

from line 162
162162 
163163### Add a server from setup instructions written for another client
164164 
165MCP servers aren't specific to Claude Code, so a server's setup instructions may be written for Claude Desktop, Cursor, or another MCP client and give no `claude mcp add` command. To add the server anyway, look in those instructions for a URL, a launch command, or a JSON block:
165MCP servers aren't specific to Claude Code, so a server's setup instructions may be written for Claude Desktop, Cursor, or another MCP client and give no `claude mcp add` command. To add the server, look in those instructions for a URL, a launch command, or a JSON block:
166166 
167167* **A URL** such as `https://mcp.example.com/mcp`: the server is remote.
168168* **A launch command** such as `npx -y <MCP_SERVER_PACKAGE>`: the server runs on your machine.
from line 1200
12001200> * You can set the client secret only when you add the server. When you authenticate with `claude mcp login` or from `/mcp`, Claude Code uses the stored secret and doesn't prompt for one or read `MCP_CLIENT_SECRET`
12011201> * To add or change the secret later, remove the server with `claude mcp remove <name>`, then add it again with `--client-secret` and the same `--scope`
12021202> * If the server uses a public OAuth client with no secret, use only `--client-id` without `--client-secret`
1203> * These flags only apply to HTTP and SSE transports. They have no effect on stdio servers
1203> * These flags only apply to HTTP and SSE transports
12041204> * Use `claude mcp get <name>` to verify that OAuth credentials are configured for a server
12051205 
12061206### Override OAuth metadata discovery

monitoring-usage Changed · +1 / -1 lines

from line 1431
14311431 
14321432#### Hook plugin metrics event
14331433 
1434Logged when an official-marketplace plugin hook emits per-invocation metrics. Only plugins installed from an official Anthropic marketplace can emit these. Third-party marketplace plugins and user-configured hooks don't emit to this event. Use this event to monitor plugin behavior such as finding rates, costs, and durations from your own observability stack.
1434Logged when an official-marketplace plugin hook emits per-invocation metrics. Only plugins installed from an official Anthropic marketplace can emit these. Use this event to monitor plugin behavior such as finding rates, costs, and durations from your own observability stack.
14351435 
14361436**Event Name**: `claude_code.hook_plugin_metrics`
14371437 

permissions Changed · +0 / -2 lines

from line 463
463463 
464464#### Special characters and `!` negation
465465 
466When you approve a file path with "Yes, and don't ask again", Claude Code escapes gitignore pattern characters in that path, such as `[`, `]`, and `*`, so the generated rule matches only the literal path you approved. Rules you write yourself aren't escaped.
467 
468466Claude Code reads the paths you write as gitignore patterns:
469467 
470468* **Parentheses**: `Edit(./Finance (2024)/**)` matches the `Finance (2024)` folder as spelled.

plugin-evals Changed · +1 / -1 lines

from line 237
237237Three settings change that exclusion:
238238 
239239* **Every grader excluded**: if every grader in a case is in the excluded set, they're scored normally instead, since there would be nothing left to score.
240* **`arm: both`**: set `arm: both` on a grader to score it in both arms regardless, which is what you want for a "must not invoke the skill" check with `min: 0` and `max: 0`.
240* **`arm: both`**: set `arm: both` on a grader to score it in both arms, which is what you want for a "must not invoke the skill" check with `min: 0` and `max: 0`.
241241* **`--ablation none`**: under `--ablation none` nothing is excluded, so the same suite can produce a different absolute score in the two modes.
242242 
243243### Use a different eval directory

plugins/cli-reference Changed · +2 / -2 lines

from line 30
3030 
3131### plugin init
3232 
33Scaffold a new plugin at `~/.claude/skills/<name>/`. Unless your administrator has [blocked skills-directory plugins](https://code.claude.com/docs/en/plugins/loading.md#skills-directory-plugins-blocked-by-managed-settings), it loads in your next session as `<name>@skills-dir` with no install step.
33Scaffold a new plugin at `~/.claude/skills/<name>/`. Unless your administrator has [blocked skills-directory plugins](https://code.claude.com/docs/en/plugins/loading.md#skills-directory-plugins-blocked-by-managed-settings), it loads in your next session as `<name>@skills-dir`.
3434 
3535`new` is an alias for `init`.
3636 
from line 690
690690 
691691#### Advice on the README
692692 
693An `Advice` block in the output of `claude plugin validate` means a plugin's README has no line that installs the plugin from a marketplace, and it gives you a line to add. Advice isn't an error or a warning. It doesn't change the verdict line or the exit code, with or without `--strict`. It requires Claude Code v2.1.295 or later.
693An `Advice` block in the output of `claude plugin validate` means a plugin's README has no line that installs the plugin from a marketplace, and it gives you a line to add. Advice isn't an error or a warning. It requires Claude Code v2.1.295 or later.
694694 
695695For example, validating the `acme-tools` marketplace's directory prints this advice for its `deploy-helper` plugin:
696696 

plugins/code-intelligence Changed · +2 / -2 lines

from line 16
1616 
1717## Install a code intelligence plugin
1818 
19A code intelligence plugin tells Claude Code which command starts the language server and which file extensions it handles. It doesn't include the language server. Install the language server binary first, then the plugin, then confirm the server starts.
19A code intelligence plugin tells Claude Code which command starts the language server and which file extensions it handles. Install the language server binary first, then the plugin, then confirm the server starts.
2020 
2121**1. Install the language server binary**
2222 
from line 93
9393 
9494* **Yes, install**: Claude Code installs the plugin for your user account and prints `<plugin> installed · restart to apply`. Start a new session to load the server.
9595* **Not now**: the dialog closes, and a later session can offer the plugin again. Pressing **Esc** does the same.
96* **Never for this plugin**: the dialog stops appearing for that plugin and still appears for others.
96* **Never for this plugin**: the dialog stops appearing for that plugin.
9797* **Disable all LSP recommendations**: the dialog stops appearing for every language.
9898 
9999If you don't choose an option, Claude Code closes it after 30 seconds and counts that as ignored. The count is kept across sessions. After five ignored dialogs, Claude Code stops recommending plugins, the same as if you'd chosen **Disable all LSP recommendations**.
Feedback