modified Week 13 · March 23–27, 2026 View current →
--- a/2026-w13.md +++ b/2026-w13.md @@ -1,4 +1,4 @@ -Releases [v2.1.83 → v2.1.85](</en/changelog#2-1-83>)6 features · March 23–27 +Releases [v2.1.83 → v2.1.85](</docs/en/changelog#2-1-83>)6 features · March 23–27 Auto moderesearch preview @@ -14,7 +14,7 @@ } } -[Permission modes guide](</en/permission-modes>) +[Permission modes guide](</docs/en/permission-modes>) Computer useDesktop @@ -26,7 +26,7 @@ > Open the iOS simulator, tap through the onboarding flow, and screenshot each step -[Computer use guide](</en/desktop#let-claude-use-your-computer>) +[Computer use guide](</docs/en/desktop#let-claude-use-your-computer>) PR auto-fixWeb @@ -34,7 +34,7 @@ After creating a PR on Claude Code web, toggle Auto fix in the CI panel. -[Auto-fix pull requests](</en/claude-code-on-the-web#auto-fix-pull-requests>) +[Auto-fix pull requests](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) Transcript searchv2.1.83 @@ -49,7 +49,7 @@ n # next match N # previous match -[Fullscreen guide](</en/fullscreen#search-and-review-the-conversation>) +[Fullscreen guide](</docs/en/fullscreen#search-and-review-the-conversation>) PowerShell toolpreviewv2.1.84 @@ -65,7 +65,7 @@ } } -[PowerShell tool docs](</en/tools-reference#powershell-tool>) +[PowerShell tool docs](</docs/en/tools-reference#powershell-tool>) Conditional hooksv2.1.85 @@ -87,7 +87,7 @@ } } -[Hooks reference](</en/hooks>) +[Hooks reference](</docs/en/hooks>) Other wins
modified Week 14 · March 30 – April 3, 2026 View current →
--- a/2026-w14.md +++ b/2026-w14.md @@ -1,4 +1,4 @@ -Releases [v2.1.86 → v2.1.91](</en/changelog#2-1-86>)5 features · March 30 – April 3 +Releases [v2.1.86 → v2.1.91](</docs/en/changelog#2-1-86>)5 features · March 30 – April 3 Computer use in the CLIresearch preview @@ -10,7 +10,7 @@ > Open the iOS simulator, tap through onboarding, and screenshot each step -[Computer use guide](</en/computer-use>) +[Computer use guide](</docs/en/computer-use>) /powerupv2.1.90 @@ -22,7 +22,7 @@ > /powerup -[Commands reference](</en/commands>) +[Commands reference](</docs/en/commands>) Flicker-free renderingv2.1.89 @@ -33,7 +33,7 @@ export CLAUDE_CODE_NO_FLICKER=1 claude -[Fullscreen rendering](</en/fullscreen>) +[Fullscreen rendering](</docs/en/fullscreen>) MCP result-size overridev2.1.91 @@ -49,7 +49,7 @@ } } -[MCP reference](</en/mcp#raise-the-limit-for-a-specific-tool>) +[MCP reference](</docs/en/mcp#raise-the-limit-for-a-specific-tool>) Plugin executables on PATHv2.1.91 @@ -63,7 +63,7 @@ └── bin/ └── my-tool -[Plugins reference](</en/plugins-reference#file-locations-reference>) +[Plugins reference](</docs/en/plugins-reference#file-locations-reference>) Other wins
modified Week 15 · April 6–10, 2026 View current →
--- a/2026-w15.md +++ b/2026-w15.md @@ -1,4 +1,4 @@ -Releases [v2.1.92 → v2.1.101](</en/changelog#2-1-92>)4 features · April 6–10 +Releases [v2.1.92 → v2.1.101](</docs/en/changelog#2-1-92>)4 features · April 6–10 Ultraplanresearch preview @@ -10,7 +10,7 @@ > /ultraplan migrate the auth service from sessions to JWTs -[Ultraplan guide](</en/ultraplan>) +[Ultraplan guide](</docs/en/ultraplan>) Monitor toolv2.1.98 @@ -28,7 +28,7 @@ > /loop check CI on my PR -[Monitor tool reference](</en/tools-reference#monitor-tool>) +[Monitor tool reference](</docs/en/tools-reference#monitor-tool>) /autofix-prCLI @@ -40,7 +40,7 @@ > /autofix-pr -[Auto-fix pull requests](</en/claude-code-on-the-web#auto-fix-pull-requests>) +[Auto-fix pull requests](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) /team-onboardingv2.1.101 @@ -52,13 +52,13 @@ > /team-onboarding -[Commands reference](</en/commands>) +[Commands reference](</docs/en/commands>) Other wins Focus view: press `Ctrl+O` in flicker-free mode to collapse the view to your last prompt, a one-line tool summary with diffstats, and Claude’s final response -Guided [Bedrock](</en/amazon-bedrock>) and [Vertex AI](</en/google-vertex-ai>) setup wizards on the login screen: pick “3rd-party platform” for step-by-step auth, region, credential check, and model pinning +Guided [Bedrock](</docs/en/amazon-bedrock>) and [Vertex AI](</docs/en/google-vertex-ai>) setup wizards on the login screen: pick “3rd-party platform” for step-by-step auth, region, credential check, and model pinning `/agents` gets a tabbed layout: a Running tab shows live subagents with a `● N running` count, plus Run agent and View running instance actions in the Library tab
modified Best Practices for Claude Code View current →
--- a/best-practices.md +++ b/best-practices.md @@ -18,7 +18,7 @@ Strategy| Before| After ---|---|--- -**Provide verification criteria**| _”implement a function that validates email addresses"_| _"write a validateEmail function. example test cases:[[email protected]](email-protected) is true, invalid is false, [[email protected]](email-protected) is false. run the tests after implementing”_ +**Provide verification criteria**| _”implement a function that validates email addresses"_| _"write a validateEmail function. example test cases:[user@example.com](<mailto:user@example.com>) is true, invalid is false, [user@.com](<mailto:user@.com>) is false. run the tests after implementing”_ **Verify UI changes visually**| _”make the dashboard look better"_| _"[paste screenshot] implement this design. take a screenshot of the result and compare it to the original. list differences and fix them”_ **Address root causes, not symptoms**| _”the build is failing"_| _"the build fails with this error: [paste error]. fix it and verify the build succeeds. address the root cause, don’t suppress the error”_
modified Changelog View current →
--- a/changelog.md +++ b/changelog.md @@ -2,6 +2,46 @@ ​ +2.1.110 + +April 15, 2026 + + * Added `/tui` command and `tui` setting — run `/tui fullscreen` to switch to flicker-free rendering in the same conversation + * Added push notification tool — Claude can send mobile push notifications when Remote Control and “Push when Claude decides” config are enabled + * Changed `Ctrl+O` to toggle between normal and verbose transcript only; focus view is now toggled separately with the new `/focus` command + * Added `autoScrollEnabled` config to disable conversation auto-scroll in fullscreen mode + * Added option to show Claude’s last response as commented context in the `Ctrl+G` external editor (enable via `/config`) + * Improved `/plugin` Installed tab — items needing attention and favorites appear at the top, disabled items are hidden behind a fold, and `f` favorites the selected item + * Improved `/doctor` to warn when an MCP server is defined in multiple config scopes with different endpoints + * `--resume`/`--continue` now resurrects unexpired scheduled tasks + * `/autocompact`, `/context`, `/exit`, and `/reload-plugins` now work from Remote Control (mobile/web) clients + * Write tool now informs the model when you edit the proposed content in the IDE diff before accepting + * Bash tool now enforces the documented maximum timeout instead of accepting arbitrarily large values + * SDK/headless sessions now read `TRACEPARENT`/`TRACESTATE` from the environment for distributed trace linking + * Session recap is now enabled for users with telemetry disabled (Bedrock, Vertex, Foundry, `DISABLE_TELEMETRY`). Opt out via `/config` or `CLAUDE_CODE_ENABLE_AWAY_SUMMARY=0`. + * Fixed MCP tool calls hanging indefinitely when the server connection drops mid-response on SSE/HTTP transports + * Fixed non-streaming fallback retries causing multi-minute hangs when the API is unreachable + * Fixed session recap, local slash-command output, and other system status lines not appearing in focus mode + * Fixed high CPU usage in fullscreen when text is selected while a tool is running + * Fixed plugin install not honoring dependencies declared in `plugin.json` when the marketplace entry omits them; `/plugin` install now lists auto-installed dependencies + * Fixed skills with `disable-model-invocation: true` failing when invoked via `/<skill>` mid-message + * Fixed `--resume` sometimes showing the first prompt instead of the `/rename` name for sessions still running or exited uncleanly + * Fixed queued messages briefly appearing twice during multi-tool-call turns + * Fixed session cleanup not removing the full session directory including subagent transcripts + * Fixed dropped keystrokes after the CLI relaunches (e.g. `/tui`, provider setup wizards) + * Fixed garbled startup rendering in macOS Terminal.app and other terminals that don’t support synchronized output + * Hardened “Open in editor” actions against command injection from untrusted filenames + * Fixed `PermissionRequest` hooks returning `updatedInput` not being re-checked against `permissions.deny` rules; `setMode:'bypassPermissions'` updates now respect `disableBypassPermissionsMode` + * Fixed `PreToolUse` hook `additionalContext` being dropped when the tool call fails + * Fixed stdio MCP servers that print stray non-JSON lines to stdout being disconnected on the first stray line (regression in 2.1.105) + * Fixed headless/SDK session auto-title firing an extra Haiku request when `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` or `CLAUDE_CODE_DISABLE_TERMINAL_TITLE` is set + * Fixed potential excessive memory allocation when piped (non-TTY) Ink output contains a single very wide line + * Fixed `/skills` menu not scrolling when the list overflows the modal in fullscreen mode + * Fixed Remote Control sessions showing a generic error instead of prompting for re-login when the session is too old + * Fixed Remote Control session renames from claude.ai not persisting the title to the local CLI session + +​ + 2.1.109 April 15, 2026 @@ -15,7 +55,7 @@ April 14, 2026 * Added `ENABLE_PROMPT_CACHING_1H` env var to opt into 1-hour prompt cache TTL on API key, Bedrock, Vertex, and Foundry (`ENABLE_PROMPT_CACHING_1H_BEDROCK` is deprecated but still honored), and `FORCE_PROMPT_CACHING_5M` to force 5-minute TTL - * Added recap feature to provide context when returning to a session, configurable in /config and manually invocable with /recap; force with `CLAUDE_CODE_ENABLE_AWAY_SUMMARY` if telemetry disabled. + * Added recap feature to provide context when returning to a session, configurable in `/config` and manually invocable with `/recap`; force with `CLAUDE_CODE_ENABLE_AWAY_SUMMARY` if telemetry disabled. * The model can now discover and invoke built-in slash commands like `/init`, `/review`, and `/security-review` via the Skill tool * `/undo` is now an alias for `/rewind` * Improved `/model` to warn before switching models mid-conversation, since the next response re-reads the full history uncached
modified Push events into a running session with channels View current →
--- a/channels.md +++ b/channels.md @@ -191,7 +191,7 @@ /imessage:access allow +15551234567 -Handles are phone numbers in `+country` format or Apple ID emails like `[[email protected]](</cdn-cgi/l/email-protection>)`. +Handles are phone numbers in `+country` format or Apple ID emails like `user@example.com`. You can also [build your own channel](</docs/en/channels-reference>) for systems that don’t have a plugin yet.
modified Use Claude Code on the web View current →
--- a/claude-code-on-the-web.md +++ b/claude-code-on-the-web.md @@ -108,6 +108,16 @@ Provide a token Add a `GH_TOKEN` environment variable to your environment settings with a GitHub personal access token. `gh` reads `GH_TOKEN` automatically, so no `gh auth login` step is needed. + +### + +​ + +Link artifacts back to the session + +Each cloud session has a transcript URL on claude.ai, and the session can read its own ID from the `CLAUDE_CODE_REMOTE_SESSION_ID` environment variable. Use this to put a traceable link in PR bodies, commit messages, Slack posts, or generated reports so a reviewer can open the run that produced them. Ask Claude to construct the link from the environment variable. The following command prints the URL: + + echo "https://claude.ai/code/${CLAUDE_CODE_REMOTE_SESSION_ID}" ###
modified Code Review View current →
Show diff (143 lines)
--- a/code-review.md +++ b/code-review.md @@ -15,7 +15,7 @@ How reviews work -Once an admin enables Code Review for your organization, reviews trigger when a PR opens, on every push, or when manually requested, depending on the repository’s configured behavior. Commenting `@claude review` starts reviews on a PR in any mode. When a review runs, multiple agents analyze the diff and surrounding code in parallel on Anthropic infrastructure. Each agent looks for a different class of issue, then a verification step checks candidates against actual code behavior to filter out false positives. The results are deduplicated, ranked by severity, and posted as inline comments on the specific lines where issues were found. If no issues are found, Claude posts a short confirmation comment on the PR. Reviews scale in cost with PR size and complexity, completing in 20 minutes on average. Admins can monitor review activity and spend via the analytics dashboard. +Once an admin enables Code Review for your organization, reviews trigger when a PR opens, on every push, or when manually requested, depending on the repository’s configured behavior. Commenting `@claude review` starts reviews on a PR in any mode. When a review runs, multiple agents analyze the diff and surrounding code in parallel on Anthropic infrastructure. Each agent looks for a different class of issue, then a verification step checks candidates against actual code behavior to filter out false positives. The results are deduplicated, ranked by severity, and posted as inline comments on the specific lines where issues were found, with a summary in the review body. If no issues are found, Claude posts a short confirmation comment on the PR. Reviews scale in cost with PR size and complexity, completing in 20 minutes on average. Admins can monitor review activity and spend via the analytics dashboard. ### @@ -149,10 +149,10 @@ Customize reviews -Code Review reads two files from your repository to guide what it flags. Both are additive on top of the default correctness checks: - - * **`CLAUDE.md`** : shared project instructions that Claude Code uses for all tasks, not just reviews. Use it when guidance also applies to interactive Claude Code sessions. - * **`REVIEW.md`** : review-only guidance, read exclusively during code reviews. Use it for rules that are strictly about what to flag or skip during review and would clutter your general `CLAUDE.md`. +Code Review reads two files from your repository to guide what it flags. They differ in how strongly they influence the review: + + * **`CLAUDE.md`** : shared project instructions that Claude Code uses for all tasks, not just reviews. Code Review reads it as project context and flags newly introduced violations as nits. + * **`REVIEW.md`** : review-only instructions, injected directly into every agent in the review pipeline as highest priority. Use it to change what gets flagged, at what severity, and how findings are reported. ### @@ -160,7 +160,7 @@ CLAUDE.md -Code Review reads your repository’s `CLAUDE.md` files and treats newly-introduced violations as nit-level findings. This works bidirectionally: if your PR changes code in a way that makes a `CLAUDE.md` statement outdated, Claude flags that the docs need updating too. Claude reads `CLAUDE.md` files at every level of your directory hierarchy, so rules in a subdirectory’s `CLAUDE.md` apply only to files under that path. See the [memory documentation](</docs/en/memory>) for more on how `CLAUDE.md` works. For review-specific guidance that you don’t want applied to general Claude Code sessions, use `REVIEW.md` instead. +Code Review reads your repository’s `CLAUDE.md` files and treats newly introduced violations as nit-level findings. This works bidirectionally: if your PR changes code in a way that makes a `CLAUDE.md` statement outdated, Claude flags that the docs need updating too. Claude reads `CLAUDE.md` files at every level of your directory hierarchy, so rules in a subdirectory’s `CLAUDE.md` apply only to files under that path. See the [memory documentation](</docs/en/memory>) for more on how `CLAUDE.md` works. For review-specific guidance that you don’t want applied to general Claude Code sessions, use `REVIEW.md` instead. ### @@ -168,31 +168,60 @@ REVIEW.md -Add a `REVIEW.md` file to your repository root for review-specific rules. Use it to encode: - - * Company or team style guidelines: “prefer early returns over nested conditionals” - * Language- or framework-specific conventions not covered by linters - * Things Claude should always flag: “any new API route must have an integration test” - * Things Claude should skip: “don’t comment on formatting in generated code under `/gen/`” - -Example `REVIEW.md`: - - # Code Review Guidelines +`REVIEW.md` is a file at your repository root that overrides how Code Review behaves on your repo. Its contents are injected into the system prompt of every agent in the review pipeline as the highest-priority instruction block, taking precedence over the default review guidance. Because it’s pasted verbatim, `REVIEW.md` is plain instructions: [`@` import syntax](</docs/en/memory#import-additional-files>) is not expanded, and referenced files are not read into the prompt. Put the rules you want enforced directly in the file. + +#### + +​ + +What you can tune + +`REVIEW.md` is freeform markdown, so anything you can express as a review instruction is in scope. The patterns below have the most impact in practice. **Severity** : redefine what 🔴 Important means for your repo. The default calibration targets production code; a docs repo, a config repo, or a prototype might want a much narrower definition. State explicitly which classes of finding are Important and which are Nit at most. You can also escalate in the other direction, for example treating any `CLAUDE.md` violation as Important rather than the default nit. **Nit volume** : cap how many 🟡 Nit comments a single review posts. Prose and config files can be polished forever. A cap like “report at most five nits, mention the rest as a count in the summary” keeps reviews actionable. **Skip rules** : list paths, branch patterns, and finding categories where Claude should post no findings. Common candidates are generated code, lockfiles, vendored dependencies, and machine-authored branches, along with anything your CI already enforces like linting or spellcheck. For paths that warrant some review but not full scrutiny, set a higher bar instead of skipping entirely: “in `scripts/`, only report if near-certain and severe.” **Repo-specific checks** : add rules you want flagged on every PR, like “new API routes must have an integration test.” Because `REVIEW.md` is injected as highest priority, these land more reliably than the same rules in a long `CLAUDE.md`. **Verification bar** : require evidence before a class of finding is posted. For example, “behavior claims need a `file:line` citation in the source, not an inference from naming” cuts false positives that would otherwise cost the author a round trip. **Re-review convergence** : tell Claude how to behave when a PR has already been reviewed. A rule like “after the first review, suppress new nits and post Important findings only” stops a one-line fix from reaching round seven on style alone. **Summary shape** : ask for the review body to open with a one-line tally such as `2 factual, 4 style`, and to lead with “no factual issues” when that’s the case. The author wants to know the shape of the work before the details. + +#### + +​ + +Example + +This `REVIEW.md` recalibrates severity for a backend service, caps nits, skips generated files, and adds repo-specific checks. + + # Review instructions + + ## What Important means here + + Reserve Important for findings that would break behavior, leak data, + or block a rollback: incorrect logic, unscoped database queries, PII + in logs or error messages, and migrations that aren't backward + compatible. Style, naming, and refactoring suggestions are Nit at + most. + + ## Cap the nits + + Report at most five Nits per review. If you found more, say "plus N + similar items" in the summary instead of posting them inline. If + everything you found is a Nit, lead the summary with "No blocking + issues." + + ## Do not report + + - Anything CI already enforces: lint, formatting, type errors + - Generated files under `src/gen/` and any `*.lock` file + - Test-only code that intentionally violates production rules ## Always check - - New API endpoints have corresponding integration tests - - Database migrations are backward-compatible - - Error messages don't leak internal details to users - - ## Style - - Prefer `match` statements over chained `isinstance` checks - - Use structured logging, not f-string interpolation in log calls - - ## Skip - - Generated files under `src/gen/` - - Formatting-only changes in `*.lock` files - -Claude auto-discovers `REVIEW.md` at the repository root. No configuration needed. + + - New API routes have an integration test + - Log lines don't include email addresses, user IDs, or request bodies + - Database queries are scoped to the caller's tenant + +#### + +​ + +Keep it focused + +Length has a cost: a long `REVIEW.md` dilutes the rules that matter most. Keep it to instructions that change review behavior, and leave general project context in `CLAUDE.md`. ## @@ -209,7 +238,7 @@ Feedback| Count of review comments that were auto-resolved because a developer addressed the issue Repository breakdown| Per-repo counts of PRs reviewed and comments resolved -The repositories table in admin settings also shows average cost per review for each repo. +The repositories table in admin settings also shows average cost per review for each repo. Dashboard cost figures are estimates for monitoring activity; for invoice-accurate spend, refer to your Anthropic bill. ## @@ -240,6 +269,14 @@ Retrigger a failed or timed-out review When the review infrastructure hits an internal error or exceeds its time limit, the check run completes with a title of **Code review encountered an error** or **Code review timed out**. The conclusion is still neutral, so nothing blocks your merge, but no findings are posted. To run the review again, comment `@claude review once` on the PR. This starts a fresh review without subscribing the PR to future pushes. If the PR is already subscribed to push-triggered reviews, pushing a new commit also starts a new review. The **Re-run** button in GitHub’s Checks tab does not retrigger Code Review. Use the comment command or a new push instead. + +### + +​ + +Review didn’t run and the PR shows a spend-cap message + +When your organization’s monthly spend cap is reached, Code Review posts a single comment on the PR explaining that the review was skipped. Reviews resume automatically at the start of the next billing period, or immediately when an admin raises the cap at [claude.ai/admin-settings/usage](<https://claude.ai/admin-settings/usage>). ###
modified Track cost and usage View current →
--- a/cost-tracking.md +++ b/cost-tracking.md @@ -1,4 +1,12 @@ -The Claude Agent SDK provides detailed token usage information for each interaction with Claude. This guide explains how to properly track costs and understand usage reporting, especially when dealing with parallel tool uses and multi-step conversations. For complete API documentation, see the [TypeScript SDK reference](</docs/en/agent-sdk/typescript>) and [Python SDK reference](</docs/en/agent-sdk/python>). +The Claude Agent SDK provides detailed token usage information for each interaction with Claude. This guide explains how to properly track usage and understand cost reporting, especially when dealing with parallel tool uses and multi-step conversations. For complete API documentation, see the [TypeScript SDK reference](</docs/en/agent-sdk/typescript>) and [Python SDK reference](</docs/en/agent-sdk/python>). + +The `total_cost_usd` and `costUSD` fields are client-side estimates, not authoritative billing data. The SDK computes them locally from a price table bundled at build time, so they can drift from what you are actually billed when: + + * pricing changes + * the installed SDK version does not recognize a model + * billing rules apply that the client cannot model + +Use these fields for development insight and approximate budgeting. For authoritative billing, use the [Usage and Cost API](<https://platform.claude.com/docs/en/build-with-claude/usage-cost-api>) or the Usage page in the [Claude Console](<https://platform.claude.com/usage>). Do not bill end users or trigger financial decisions from these fields. ## @@ -17,7 +25,7 @@ * **Step:** a single request/response cycle within a `query()` call. Each step produces assistant messages with token usage. * **Session:** a series of `query()` calls linked by a session ID (using the `resume` option). Each `query()` call within a session reports its own cost independently. -The following diagram shows the message stream from a single `query()` call, with token usage reported at each step and the authoritative total at the end: +The following diagram shows the message stream from a single `query()` call, with token usage reported at each step and the cumulative estimate at the end: 1 @@ -27,9 +35,9 @@ 2 -The result message provides the authoritative total - -When the `query()` call completes, the SDK emits a result message with `total_cost_usd` and cumulative `usage`. This is available in both TypeScript ([`SDKResultMessage`](</docs/en/agent-sdk/typescript#sdk-result-message>)) and Python ([`ResultMessage`](</docs/en/agent-sdk/python#result-message>)). If you make multiple `query()` calls (for example, in a multi-turn session), each result only reflects the cost of that individual call. If you only need the total cost, you can ignore the per-step usage and read this single value. +The result message provides the cumulative estimate + +When the `query()` call completes, the SDK emits a result message with `total_cost_usd` and cumulative `usage`. This is available in both TypeScript ([`SDKResultMessage`](</docs/en/agent-sdk/typescript#sdk-result-message>)) and Python ([`ResultMessage`](</docs/en/agent-sdk/python#result-message>)). If you make multiple `query()` calls (for example, in a multi-turn session), each result only reflects the cost of that individual call. If you only need the estimated total, you can ignore the per-step usage and read this single value. ## @@ -166,7 +174,7 @@ In rare cases, you might observe different `output_tokens` values for messages with the same ID. When this occurs: 1. **Use the highest value:** the final message in a group typically contains the accurate total. - 2. **Verify against total cost:** the `total_cost_usd` in the result message is authoritative. + 2. **Prefer the result message:** the `total_cost_usd` in the result message reflects the SDK’s accumulated estimate across all steps, so it is more reliable than summing per-step values yourself. It is still an estimate and may differ from your actual bill. 3. **Report inconsistencies:** file issues at the [Claude Code GitHub repository](<https://github.com/anthropics/claude-code/issues>). ###
modified Manage costs effectively View current →
--- a/costs.md +++ b/costs.md @@ -14,7 +14,7 @@ The `/cost` command shows API token usage and is intended for API users. Claude Max and Pro subscribers have usage included in their subscription, so `/cost` data isn’t relevant for billing purposes. Subscribers can use `/stats` to view usage patterns. -The `/cost` command provides detailed token usage statistics for your current session: +The `/cost` command provides detailed token usage statistics for your current session. The dollar figure is an estimate computed locally from token counts and may differ from your actual bill. For authoritative billing, see the Usage page in the [Claude Console](<https://platform.claude.com/usage>). Total cost: $0.55 Total duration (API): 6m 19.7s
modified Discover and install prebuilt plugins through marketplaces View current →
--- a/discover-plugins.md +++ b/discover-plugins.md @@ -217,7 +217,7 @@ Using SSH: - /plugin marketplace add [[email protected]](</cdn-cgi/l/email-protection>):company/plugins.git + /plugin marketplace add git@gitlab.com:company/plugins.git To add a specific branch or tag, append `#` followed by the ref:
modified Environment variables View current →
--- a/env-vars.md +++ b/env-vars.md @@ -109,6 +109,8 @@ `CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE`| Set to `1` to keep the existing marketplace cache when a `git pull` fails instead of wiping and re-cloning. Useful in offline or airgapped environments where re-cloning would fail the same way. See [Marketplace updates fail in offline environments](</docs/en/plugin-marketplaces#marketplace-updates-fail-in-offline-environments>) `CLAUDE_CODE_PLUGIN_SEED_DIR`| Path to one or more read-only plugin seed directories, separated by `:` on Unix or `;` on Windows. Use this to bundle a pre-populated plugins directory into a container image. Claude Code registers marketplaces from these directories at startup and uses pre-cached plugins without re-cloning. See [Pre-populate plugins for containers](</docs/en/plugin-marketplaces#pre-populate-plugins-for-containers>) `CLAUDE_CODE_PROXY_RESOLVES_HOSTS`| Set to `1` to allow the proxy to perform DNS resolution instead of the caller. Opt-in for environments where the proxy should handle hostname resolution +`CLAUDE_CODE_REMOTE`| Set automatically to `true` when Claude Code is running as a [cloud session](</docs/en/claude-code-on-the-web>). Read this from a hook or setup script to detect whether you are in a cloud environment +`CLAUDE_CODE_REMOTE_SESSION_ID`| Set automatically in [cloud sessions](</docs/en/claude-code-on-the-web>) to the current session’s ID. Read this to construct a link back to the session transcript. See [Link artifacts back to the session](</docs/en/claude-code-on-the-web#link-artifacts-back-to-the-session>) `CLAUDE_CODE_RESUME_INTERRUPTED_TURN`| Set to `1` to automatically resume if the previous session ended mid-turn. Used in SDK mode so the model continues without requiring the SDK to re-send the prompt `CLAUDE_CODE_SCRIPT_CAPS`| JSON object limiting how many times specific scripts may be invoked per session when `CLAUDE_CODE_SUBPROCESS_ENV_SCRUB` is set. Keys are substrings matched against the command text; values are integer call limits. For example, `{"deploy.sh": 2}` allows `deploy.sh` to be called at most twice. Matching is substring-based so shell-expansion tricks like `./scripts/deploy.sh $(evil)` still count against the cap. Runtime fan-out via `xargs` or `find -exec` is not detected; this is a defense-in-depth control `CLAUDE_CODE_SCROLL_SPEED`| Set the mouse wheel scroll multiplier in [fullscreen rendering](</docs/en/fullscreen#adjust-wheel-scroll-speed>). Accepts values from 1 to 20. Set to `3` to match `vim` if your terminal sends one wheel event per notch without amplification @@ -129,6 +131,7 @@ `CLAUDE_CODE_TASK_LIST_ID`| Share a task list across sessions. Set the same ID in multiple Claude Code instances to coordinate on a shared task list. See [Task list](</docs/en/interactive-mode#task-list>) `CLAUDE_CODE_TEAM_NAME`| Name of the agent team this teammate belongs to. Set automatically on [agent team](</docs/en/agent-teams>) members `CLAUDE_CODE_TMPDIR`| Override the temp directory used for internal temp files. Claude Code appends `/claude-{uid}/` (Unix) or `/claude/` (Windows) to this path. Default: `/tmp` on macOS, `os.tmpdir()` on Linux/Windows +`CLAUDE_CODE_TMUX_TRUECOLOR`| Set to `1` to allow 24-bit truecolor output inside tmux. By default, Claude Code clamps to 256 colors when `$TMUX` is set because tmux does not pass through truecolor escape sequences unless configured to. Set this after adding `set -ga terminal-overrides ',*:Tc'` to your `~/.tmux.conf`. See [Terminal configuration](</docs/en/terminal-config>) for other tmux settings `CLAUDE_CODE_USE_BEDROCK`| Use [Bedrock](</docs/en/amazon-bedrock>) `CLAUDE_CODE_USE_FOUNDRY`| Use [Microsoft Foundry](</docs/en/microsoft-foundry>) `CLAUDE_CODE_USE_MANTLE`| Use the Bedrock [Mantle endpoint](</docs/en/amazon-bedrock#use-the-mantle-endpoint>)
modified Claude Code with GitHub Enterprise Server View current →
--- a/github-enterprise-server.md +++ b/github-enterprise-server.md @@ -102,7 +102,7 @@ Once your admin has connected the GHES instance, no developer-side configuration is needed. Claude Code detects your GHES hostname automatically from the git remote in your working directory. Clone a repository from your GHES instance as you normally would: - git clone [[email protected]](</cdn-cgi/l/email-protection>):platform/api-service.git + git clone git@github.example.com:platform/api-service.git cd api-service Then start a web session. Claude detects the GHES host from your git remote and routes the session through your organization’s configured instance: @@ -135,7 +135,7 @@ The `owner/repo` shorthand always resolves to github.com. For GHES-hosted marketplaces, use the full git URL: - /plugin marketplace add [[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git + /plugin marketplace add git@github.example.com:platform/claude-plugins.git HTTPS URLs work as well: @@ -167,7 +167,7 @@ "internal-tools": { "source": { "source": "git", - "url": "[[email protected]](</cdn-cgi/l/email-protection>):platform/claude-plugins.git" + "url": "git@github.example.com:platform/claude-plugins.git" } } }
modified How Claude Code works View current →
--- a/how-claude-code-works.md +++ b/how-claude-code-works.md @@ -241,8 +241,8 @@ Claude performs better when it can check its own work. Include test cases, paste screenshots of expected UI, or define the output you want. - Implement validateEmail. Test cases: '[[email protected]](</cdn-cgi/l/email-protection>)' → true, - 'invalid' → false, '[[email protected]](</cdn-cgi/l/email-protection>)' → false. Run the tests after. + Implement validateEmail. Test cases: 'user@example.com' → true, + 'invalid' → false, 'user@.com' → false. Run the tests after. For visual work, paste a screenshot of the design and ask Claude to compare its implementation against it.
modified JetBrains IDEs View current →
--- a/jetbrains.md +++ b/jetbrains.md @@ -87,7 +87,7 @@ 1. Run `claude` 2. Enter the `/config` command - 3. Set the diff tool to `auto` for automatic IDE detection + 3. Set the diff tool to `auto` to show diffs in the IDE, or `terminal` to keep them in the terminal ###
modified Connect Claude Code to tools via MCP View current →
--- a/mcp.md +++ b/mcp.md @@ -391,7 +391,7 @@ Example: Query your PostgreSQL database claude mcp add --transport stdio db -- npx -y @bytebase/dbhub \ - --dsn "postgresql://readonly:[[email protected]](</cdn-cgi/l/email-protection>):5432/analytics" + --dsn "postgresql://readonly:pass@prod.db.com:5432/analytics" Then query your database naturally:
modified Modifying system prompts View current →
--- a/modifying-system-prompts.md +++ b/modifying-system-prompts.md @@ -232,6 +232,40 @@ console.log(message.message.content); } } + +#### + +​ + +Improve prompt caching across users and machines + +By default, two sessions that use the same `claude_code` preset and `append` text still cannot share a prompt cache entry if they run from different working directories. This is because the preset embeds per-session context in the system prompt ahead of your `append` text: the working directory, platform and OS version, current date, git status, and auto-memory paths. Any difference in that context produces a different system prompt and a cache miss. To make the system prompt identical across sessions, set `excludeDynamicSections: true` in TypeScript or `"exclude_dynamic_sections": True` in Python. The per-session context moves into the first user message, leaving only the static preset and your `append` text in the system prompt so identical configurations share a cache entry across users and machines. + +`excludeDynamicSections` requires `@anthropic-ai/claude-agent-sdk` v0.2.98 or later, or `claude-agent-sdk` v0.1.58 or later for Python. It applies only to the preset object form and has no effect when `systemPrompt` is a string. + +The following example pairs a shared `append` block with `excludeDynamicSections` so a fleet of agents running from different directories can reuse the same cached system prompt: + +TypeScript + +Python + + import { query } from "@anthropic-ai/claude-agent-sdk"; + + for await (const message of query({ + prompt: "Triage the open issues in this repo", + options: { + systemPrompt: { + type: "preset", + preset: "claude_code", + append: "You operate Acme's internal triage workflow. Label issues by component and severity.", + excludeDynamicSections: true + } + } + })) { + // ... + } + +**Tradeoffs:** the working directory, git status, and memory location still reach Claude, but as part of the first user message rather than the system prompt. Instructions in the user message carry marginally less weight than the same text in the system prompt, so Claude may rely on them less strongly when reasoning about the current directory or auto-memory paths. Enable this option when cross-session cache reuse matters more than maximally authoritative environment context. For the equivalent flag in non-interactive CLI mode, see [`--exclude-dynamic-system-prompt-sections`](</docs/en/cli-reference>). ###
modified Create and distribute a plugin marketplace View current →
--- a/plugin-marketplaces.md +++ b/plugin-marketplaces.md @@ -121,7 +121,7 @@ "name": "company-tools", "owner": { "name": "DevTools Team", - "email": "[[email protected]](</cdn-cgi/l/email-protection>)" + "email": "devtools@example.com" }, "plugins": [ { @@ -372,7 +372,7 @@ } } -The `url` field also accepts a GitHub shorthand (`owner/repo`) or SSH URLs (`[[email protected]](</cdn-cgi/l/email-protection>):owner/repo.git`). +The `url` field also accepts a GitHub shorthand (`owner/repo`) or SSH URLs (`git@github.com:owner/repo.git`). Field| Type| Description ---|---|--- @@ -444,7 +444,7 @@ "version": "2.1.0", "author": { "name": "Enterprise Team", - "email": "[[email protected]](</cdn-cgi/l/email-protection>)" + "email": "enterprise@example.com" }, "homepage": "https://docs.example.com/plugins/enterprise-tools", "repository": "https://github.com/company/enterprise-plugin", @@ -848,7 +848,7 @@ Pin to a specific branch or tag with `@ref`: - claude plugin marketplace add acme-corp/[[email protected]](</cdn-cgi/l/email-protection>) + claude plugin marketplace add acme-corp/claude-plugins@v2.0 Add from a git URL on a non-GitHub host:
modified Plugins reference View current →
--- a/plugins-reference.md +++ b/plugins-reference.md @@ -270,7 +270,7 @@ "description": "Brief plugin description", "author": { "name": "Author Name", - "email": "[[email protected]](</cdn-cgi/l/email-protection>)", + "email": "author@example.com", "url": "https://github.com/author" }, "homepage": "https://docs.example.com/plugin", @@ -311,7 +311,7 @@ ---|---|---|--- `version`| string| Semantic version. If also set in the marketplace entry, `plugin.json` takes priority. You only need to set it in one place.| `"2.1.0"` `description`| string| Brief explanation of plugin purpose| `"Deployment automation tools"` -`author`| object| Author information| `{"name": "Dev Team", "email": "[[email protected]](</cdn-cgi/l/email-protection>)"}` +`author`| object| Author information| `{"name": "Dev Team", "email": "dev@company.com"}` `homepage`| string| Documentation URL| `"https://docs.example.com"` `repository`| string| Source code URL| `"https://github.com/user/plugin"` `license`| string| License identifier| `"MIT"`, `"Apache-2.0"`
modified Agent SDK reference - Python View current →
--- a/python.md +++ b/python.md @@ -974,12 +974,14 @@ type: Literal["preset"] preset: Literal["claude_code"] append: NotRequired[str] + exclude_dynamic_sections: NotRequired[bool] Field| Required| Description ---|---|--- `type`| Yes| Must be `"preset"` to use a preset system prompt `preset`| Yes| Must be `"claude_code"` to use Claude Code’s system prompt `append`| No| Additional instructions to append to the preset system prompt +`exclude_dynamic_sections`| No| Move per-session context such as working directory, git status, and memory paths from the system prompt into the first user message. Improves prompt-cache reuse across users and machines. See [Modify system prompts](</docs/en/agent-sdk/modifying-system-prompts#improve-prompt-caching-across-users-and-machines>) ### @@ -1620,7 +1622,7 @@ `cacheReadInputTokens`| `int`| Cache read tokens for this model. `cacheCreationInputTokens`| `int`| Cache creation tokens for this model. `webSearchRequests`| `int`| Web search requests made by this model. -`costUSD`| `float`| Cost in USD for this model. +`costUSD`| `float`| Estimated cost in USD for this model, computed client-side. See [Track cost and usage](</docs/en/agent-sdk/cost-tracking>) for billing caveats. `contextWindow`| `int`| Context window size for this model. `maxOutputTokens`| `int`| Maximum output token limit for this model. @@ -2466,7 +2468,7 @@ { "result": str, # Final result from the subagent "usage": dict | None, # Token usage statistics - "total_cost_usd": float | None, # Total cost in USD + "total_cost_usd": float | None, # Estimated total cost in USD "duration_ms": int | None, # Execution duration in milliseconds }
modified Claude Code settings View current →
--- a/settings.md +++ b/settings.md @@ -307,8 +307,8 @@ `filesystem.denyRead`| Paths where sandboxed commands cannot read. Arrays are merged across all settings scopes. Also merged with paths from `Read(...)` deny permission rules.| `["~/.aws/credentials"]` `filesystem.allowRead`| Paths to re-allow reading within `denyRead` regions. Takes precedence over `denyRead`. Arrays are merged across all settings scopes. Use this to create workspace-only read access patterns.| `["."]` `filesystem.allowManagedReadPathsOnly`| (Managed settings only) Only `filesystem.allowRead` paths from managed settings are respected. `denyRead` still merges from all sources. Default: false| `true` -`network.allowUnixSockets`| Unix socket paths accessible in sandbox (for SSH agents, etc.)| `["~/.ssh/agent-socket"]` -`network.allowAllUnixSockets`| Allow all Unix socket connections in sandbox. Default: false| `true` +`network.allowUnixSockets`| (macOS only) Unix socket paths accessible in sandbox. Ignored on Linux and WSL2, where the seccomp filter cannot inspect socket paths; use `allowAllUnixSockets` instead.| `["~/.ssh/agent-socket"]` +`network.allowAllUnixSockets`| Allow all Unix socket connections in sandbox. On Linux and WSL2 this is the only way to permit Unix sockets, since it skips the seccomp filter that otherwise blocks `socket(AF_UNIX, ...)` calls. Default: false| `true` `network.allowLocalBinding`| Allow binding to localhost ports (macOS only). Default: false| `true` `network.allowMachLookup`| Additional XPC/Mach service names the sandbox may look up (macOS only). Supports a single trailing `*` for prefix matching. Needed for tools that communicate via XPC such as the iOS Simulator or Playwright.| `["com.apple.coresimulator.*"]` `network.allowedDomains`| Array of domains to allow for outbound network traffic. Supports wildcards (e.g., `*.example.com`).| `["github.com", "*.npmjs.org"]` @@ -378,7 +378,7 @@ 🤖 Generated with [Claude Code](https://claude.com/claude-code) - Co-Authored-By: Claude Sonnet 4.6 <[[email protected]](</cdn-cgi/l/email-protection>)> + Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> **Default pull request attribution:** @@ -388,7 +388,7 @@ { "attribution": { - "commit": "Generated with AI\n\nCo-Authored-By: AI <[[email protected]](</cdn-cgi/l/email-protection>)>", + "commit": "Generated with AI\n\nCo-Authored-By: AI <ai@example.com>", "pr": "" } } @@ -693,7 +693,7 @@ { "source": "git", "url": "https://gitlab.example.com/tools/plugins.git" } { "source": "git", "url": "https://bitbucket.org/acme-corp/plugins.git", "ref": "production" } - { "source": "git", "url": "ssh://[[email protected]](</cdn-cgi/l/email-protection>)/plugins.git", "ref": "v3.1", "path": "approved" } + { "source": "git", "url": "ssh://git@git.example.com/plugins.git", "ref": "v3.1", "path": "approved" } Fields: `url` (required), `ref` (optional: branch/tag/SHA), `path` (optional: subdirectory)
modified Advanced setup View current →
--- a/setup.md +++ b/setup.md @@ -318,7 +318,7 @@ Display the fingerprint of the imported key. - gpg --fingerprint [[email protected]](</cdn-cgi/l/email-protection>) + gpg --fingerprint security@anthropic.com Confirm the output includes this fingerprint: @@ -343,7 +343,7 @@ gpg --verify manifest.json.sig manifest.json -A valid result reports `Good signature from "Anthropic Claude Code Release Signing <[[email protected]](</cdn-cgi/l/email-protection>)>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. +A valid result reports `Good signature from "Anthropic Claude Code Release Signing <security@anthropic.com>"`.`gpg` also prints `WARNING: This key is not certified with a trusted signature!` for any freshly imported key. This is expected. The `Good signature` line confirms the cryptographic check passed. The fingerprint comparison in Step 1 confirms the key itself is authentic. 4
modified Customize your status line View current →
--- a/statusline.md +++ b/statusline.md @@ -145,7 +145,7 @@ `workspace.project_dir`| Directory where Claude Code was launched, which may differ from `cwd` if the working directory changes during a session `workspace.added_dirs`| Additional directories added via `/add-dir` or `--add-dir`. Empty array if none have been added `workspace.git_worktree`| Git worktree name when the current directory is inside a linked worktree created with `git worktree add`. Absent in the main working tree. Populated for any git worktree, unlike `worktree.*` which applies only to `--worktree` sessions -`cost.total_cost_usd`| Total session cost in USD +`cost.total_cost_usd`| Estimated session cost in USD, computed client-side. May differ from your actual bill `cost.total_duration_ms`| Total wall-clock time since the session started, in milliseconds `cost.total_api_duration_ms`| Total time spent waiting for API responses in milliseconds `cost.total_lines_added`, `cost.total_lines_removed`| Lines of code changed @@ -368,7 +368,7 @@ Cost and duration tracking -Track your session’s API costs and elapsed time. The `cost.total_cost_usd` field accumulates the cost of all API calls in the current session. The `cost.total_duration_ms` field measures total elapsed time since the session started, while `cost.total_api_duration_ms` tracks only the time spent waiting for API responses. Each script formats cost as currency and converts milliseconds to minutes and seconds: +Track your session’s API costs and elapsed time. The `cost.total_cost_usd` field accumulates the estimated cost of all API calls in the current session. The `cost.total_duration_ms` field measures total elapsed time since the session started, while `cost.total_api_duration_ms` tracks only the time spent waiting for API responses. Each script formats cost as currency and converts milliseconds to minutes and seconds: Bash @@ -457,7 +457,7 @@ MODEL=$(echo "$input" | jq -r '.model.display_name') # Convert git SSH URL to HTTPS - REMOTE=$(git remote get-url origin 2>/dev/null | sed 's/[[email protected]](</cdn-cgi/l/email-protection>):/https:\/\/github.com\//' | sed 's/\.git$//') + REMOTE=$(git remote get-url origin 2>/dev/null | sed 's/git@github.com:/https:\/\/github.com\//' | sed 's/\.git$//') if [ -n "$REMOTE" ]; then REPO_NAME=$(basename "$REMOTE")
modified Agent SDK reference - TypeScript View current →
--- a/typescript.md +++ b/typescript.md @@ -389,7 +389,7 @@ `spawnClaudeCodeProcess`| `(options: SpawnOptions) => SpawnedProcess`| `undefined`| Custom function to spawn the Claude Code process. Use to run Claude Code in VMs, containers, or remote environments `stderr`| `(data: string) => void`| `undefined`| Callback for stderr output `strictMcpConfig`| `boolean`| `false`| Enforce strict MCP validation -`systemPrompt`| `string | { type: 'preset'; preset: 'claude_code'; append?: string }`| `undefined` (minimal prompt)| System prompt configuration. Pass a string for custom prompt, or `{ type: 'preset', preset: 'claude_code' }` to use Claude Code’s system prompt. When using the preset object form, add `append` to extend the system prompt with additional instructions +`systemPrompt`| `string | { type: 'preset'; preset: 'claude_code'; append?: string; excludeDynamicSections?: boolean }`| `undefined` (minimal prompt)| System prompt configuration. Pass a string for custom prompt, or `{ type: 'preset', preset: 'claude_code' }` to use Claude Code’s system prompt. When using the preset object form, add `append` to extend it with additional instructions, and set `excludeDynamicSections: true` to move per-session context into the first user message for [better prompt-cache reuse across machines](</docs/en/agent-sdk/modifying-system-prompts#improve-prompt-caching-across-users-and-machines>) `thinking`| `ThinkingConfig`| `{ type: 'adaptive' }` for supported models| Controls Claude’s thinking/reasoning behavior. See `ThinkingConfig` for options `toolConfig`| `ToolConfig`| `undefined`| Configuration for built-in tool behavior. See `ToolConfig` for details `tools`| `string[] | { type: 'preset'; preset: 'claude_code' }`| `undefined`| Tool configuration. Pass an array of tool names or use the preset to get Claude Code’s default tools @@ -2572,7 +2572,7 @@ `ModelUsage` -Per-model usage statistics returned in result messages. +Per-model usage statistics returned in result messages. The `costUSD` value is a client-side estimate. See [Track cost and usage](</docs/en/agent-sdk/cost-tracking>) for billing caveats. type ModelUsage = { inputTokens: number;
modified Get started with Claude Code on the web View current →
--- a/web-quickstart.md +++ b/web-quickstart.md @@ -147,6 +147,25 @@ ​ +Pre-fill sessions + +You can prefill the prompt, repositories, and environment for a new session by adding query parameters to the [claude.ai/code](<https://claude.ai/code>) URL. Use this to build integrations such as a button in your issue tracker that opens Claude Code with the issue description as the prompt. + +Parameter| Description +---|--- +`prompt`| Prompt text to prefill in the input box. The alias `q` is also accepted. +`prompt_url`| URL to fetch the prompt text from, for prompts too long to embed in a query string. The URL must allow cross-origin requests. Ignored when `prompt` is also set. +`repositories`| Comma-separated list of `owner/repo` slugs to preselect. The alias `repo` is also accepted. +`environment`| Name or ID of the environment to preselect. + +URL-encode each value. The example below opens the form with a prompt and a repository already selected: + + https://claude.ai/code?prompt=Fix%20the%20login%20bug&repositories=acme/webapp + +## + +​ + Review and iterate When Claude finishes, review the changes, leave feedback on specific lines, and keep going until the diff looks right.