Changes on
23 changes detected
--- a/changelog.md
+++ b/changelog.md
@@ -1,4 +1,43 @@
This page is generated from the [CHANGELOG.md on GitHub](<https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md>). Run `claude --version` to check your installed version.
+
+
+
+2.1.109
+
+April 15, 2026
+
+ * Improved the extended-thinking indicator with a rotating progress hint
+
+
+
+2.1.108
+
+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.
+ * 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
+ * Improved `/resume` picker to default to sessions from the current directory; press `Ctrl+A` to show all projects
+ * Improved error messages: server rate limits are now distinguished from plan usage limits; 5xx/529 errors show a link to status.claude.com; unknown slash commands suggest the closest match
+ * Reduced memory footprint for file reads, edits, and syntax highlighting by loading language grammars on demand
+ * Added “verbose” indicator when viewing the detailed transcript (`Ctrl+O`)
+ * Added a warning at startup when prompt caching is disabled via `DISABLE_PROMPT_CACHING*` environment variables
+ * Fixed paste not working in the `/login` code prompt (regression in 2.1.105)
+ * Fixed subscribers who set `DISABLE_TELEMETRY` falling back to 5-minute prompt cache TTL instead of 1 hour
+ * Fixed Agent tool prompting for permission in auto mode when the safety classifier’s transcript exceeded its context window
+ * Fixed Bash tool producing no output when `CLAUDE_ENV_FILE` (e.g. `~/.zprofile`) ends with a `#` comment line
+ * Fixed `claude --resume <session-id>` losing the session’s custom name and color set via `/rename`
+ * Fixed session titles showing placeholder example text when the first message is a short greeting
+ * Fixed terminal escape codes appearing as garbage text in the prompt input after `--teleport`
+ * Fixed `/feedback` retry: pressing Enter to resubmit after a failure now works without first editing the description
+ * Fixed `--teleport` and `--resume <id>` precondition errors (e.g. dirty git tree, session not found) exiting silently instead of showing the error message
+ * Fixed Remote Control session titles set in the web UI being overwritten by auto-generated titles after the third message
+ * Fixed `--resume` truncating sessions when the transcript contained a self-referencing message
+ * Fixed transcript write failures (e.g., disk full) being silently dropped instead of being logged
+ * Fixed diacritical marks (accents, umlauts, cedillas) being dropped from responses when the `language` setting is configured
+ * Fixed policy-managed plugins never auto-updating when running from a different project than where they were first installed
--- a/claude-code-on-the-web.md
+++ b/claude-code-on-the-web.md
@@ -29,7 +29,7 @@
**GitHub App**| Install the Claude GitHub App on specific repositories during [web onboarding](</docs/en/web-quickstart>). Access is scoped per repository.| Teams that want explicit per-repo authorization
**`/web-setup`**| Run `/web-setup` in your terminal to sync your local `gh` CLI token to your Claude account. Access matches whatever your `gh` token can see.| Individual developers who already use `gh`
-Either method works. [`/schedule`](</docs/en/web-scheduled-tasks>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
+Either method works. [`/schedule`](</docs/en/routines>) checks for either form of access and prompts you to run `/web-setup` if neither is configured. See [Connect from your terminal](</docs/en/web-quickstart#connect-from-your-terminal>) for the `/web-setup` walkthrough. The GitHub App is required for Auto-fix, which uses the App to receive PR webhooks. If you connect with `/web-setup` and later want Auto-fix, install the App on those repositories. Team and Enterprise admins can disable `/web-setup` with the Quick web setup toggle at [claude.ai/admin-settings/claude-code](<https://claude.ai/admin-settings/claude-code>).
Organizations with [Zero Data Retention](</docs/en/zero-data-retention>) enabled cannot use `/web-setup` or other cloud session features.
@@ -802,7 +802,7 @@
Related resources
- * [Schedule tasks on the web](</docs/en/web-scheduled-tasks>): automate recurring work like daily PR reviews and dependency audits
+ * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [Hooks configuration](</docs/en/hooks>): run scripts at session lifecycle events
* [Settings reference](</docs/en/settings>): all configuration options
* [Security](</docs/en/security>): isolation guarantees and data handling
--- a/claude-directory.md
+++ b/claude-directory.md
@@ -124,7 +124,7 @@
Transcripts and history are not encrypted at rest. OS file permissions are the only protection. If a tool reads a `.env` file or a command prints a credential, that value is written to `projects/<project>/<session>.jsonl`. To reduce exposure:
* Lower `cleanupPeriodDays` to shorten how long transcripts are kept
- * In non-interactive mode, pass `--no-session-persistence` alongside `-p` to skip writing transcripts entirely. In the Agent SDK, set `persistSession: false`. There is no interactive-mode equivalent.
+ * Set the [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](</docs/en/env-vars>) environment variable to skip writing transcripts and prompt history in any mode. In non-interactive mode, you can instead pass `--no-session-persistence` alongside `-p`, or set `persistSession: false` in the Agent SDK.
* Use [permission rules](</docs/en/permissions>) to deny reads of credential files
###
--- a/commands.md
+++ b/commands.md
@@ -6,6 +6,7 @@
`/agents`| Manage [agent](</docs/en/sub-agents>) configurations
`/autofix-pr [prompt]`| Spawn a [Claude Code on the web](</docs/en/claude-code-on-the-web#auto-fix-pull-requests>) session that watches the current branch’s PR and pushes fixes when CI fails or reviewers leave comments. Detects the open PR from your checked-out branch with `gh pr view`; to watch a different PR, check out its branch first. By default the remote session is told to fix every CI failure and review comment; pass a prompt to give it different instructions, for example `/autofix-pr only fix lint and type errors`. Requires the `gh` CLI and access to [Claude Code on the web](</docs/en/claude-code-on-the-web#who-can-use-claude-code-on-the-web>)
`/batch <instruction>`| **[Skill](</docs/en/skills#bundled-skills>).** Orchestrate large-scale changes across a codebase in parallel. Researches the codebase, decomposes the work into 5 to 30 independent units, and presents a plan. Once approved, spawns one background agent per unit in an isolated [git worktree](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>). Each agent implements its unit, runs tests, and opens a pull request. Requires a git repository. Example: `/batch migrate src/ from Solid to React`
+`/branch [name]`| Create a branch of the current conversation at this point. Switches you into the branch and preserves the original, which you can return to with `/resume`. Alias: `/fork`
`/btw <question>`| Ask a quick [side question](</docs/en/interactive-mode#side-questions-with-btw>) without adding to the conversation
`/chrome`| Configure [Claude in Chrome](</docs/en/chrome>) settings
`/claude-api`| **[Skill](</docs/en/skills#bundled-skills>).** Load Claude API reference material for your project’s language (Python, TypeScript, Java, Go, Ruby, C#, PHP, or cURL) and Managed Agents reference. Covers tool use, streaming, batches, structured outputs, and common pitfalls. Also activates automatically when your code imports `anthropic` or `@anthropic-ai/sdk`
@@ -26,7 +27,6 @@
`/extra-usage`| Configure extra usage to keep working when rate limits are hit
`/fast [on|off]`| Toggle [fast mode](</docs/en/fast-mode>) on or off
`/feedback [report]`| Submit feedback about Claude Code. Alias: `/bug`
-`/branch [name]`| Create a branch of the current conversation at this point. Alias: `/fork`
`/help`| Show help and available commands
`/hooks`| View [hook](</docs/en/hooks>) configurations for tool events
`/ide`| Manage IDE integrations and show status
@@ -58,7 +58,7 @@
`/review`| Deprecated. Install the [`code-review` plugin](<https://github.com/anthropics/claude-plugins-official/tree/main/plugins/code-review>) instead: `claude plugin install code-review@claude-plugins-official`
`/rewind`| Rewind the conversation and/or code to a previous point, or summarize from a selected message. See [checkpointing](</docs/en/checkpointing>). Alias: `/checkpoint`
`/sandbox`| Toggle [sandbox mode](</docs/en/sandboxing>). Available on supported platforms only
-`/schedule [description]`| Create, update, list, or run [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>). Claude walks you through the setup conversationally
+`/schedule [description]`| Create, update, list, or run [routines](</docs/en/routines>). Claude walks you through the setup conversationally
`/security-review`| Analyze pending changes on the current branch for security vulnerabilities. Reviews the git diff and identifies risks like injection, auth issues, and data exposure
`/setup-bedrock`| Configure [Amazon Bedrock](</docs/en/amazon-bedrock>) authentication, region, and model pins through an interactive wizard. Only visible when `CLAUDE_CODE_USE_BEDROCK=1` is set. First-time Bedrock users can also access this wizard from the login screen
`/setup-vertex`| Configure [Google Vertex AI](</docs/en/google-vertex-ai>) authentication, project, region, and model pins through an interactive wizard. Only visible when `CLAUDE_CODE_USE_VERTEX=1` is set. First-time Vertex AI users can also access this wizard from the login screen
--- a/common-workflows.md
+++ b/common-workflows.md
@@ -488,7 +488,7 @@
Use extended thinking (thinking mode)
-[Extended thinking](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>) is enabled by default, giving Claude space to reason through complex problems step-by-step before responding. This reasoning is visible in verbose mode, which you can toggle on with `Ctrl+O`. Additionally, Opus 4.6 and Sonnet 4.6 support adaptive reasoning: instead of a fixed thinking token budget, the model dynamically allocates thinking based on your [effort level](</docs/en/model-config#adjust-effort-level>) setting. Extended thinking and adaptive reasoning work together to give you control over how deeply Claude reasons before responding. Extended thinking is particularly valuable for complex architectural decisions, challenging bugs, multi-step implementation planning, and evaluating tradeoffs between different approaches.
+[Extended thinking](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>) is enabled by default, giving Claude space to reason through complex problems step-by-step before responding. This reasoning is visible in verbose mode, which you can toggle on with `Ctrl+O`. During extended thinking, progress hints appear below the indicator to show that Claude is actively working. Additionally, Opus 4.6 and Sonnet 4.6 support adaptive reasoning: instead of a fixed thinking token budget, the model dynamically allocates thinking based on your [effort level](</docs/en/model-config#adjust-effort-level>) setting. Extended thinking and adaptive reasoning work together to give you control over how deeply Claude reasons before responding. Extended thinking is particularly valuable for complex architectural decisions, challenging bugs, multi-step implementation planning, and evaluating tradeoffs between different approaches.
Phrases like “think”, “think hard”, and “think more” are interpreted as regular prompt instructions and don’t allocate thinking tokens.
@@ -907,7 +907,7 @@
Option| Where it runs| Best for
---|---|---
-[Cloud scheduled tasks](</docs/en/web-scheduled-tasks>)| Anthropic-managed infrastructure| Tasks that should run even when your computer is off. Configure at [claude.ai/code](<https://claude.ai/code>).
+[Routines](</docs/en/routines>)| Anthropic-managed infrastructure| Tasks that should run even when your computer is off. Can also trigger on API calls or GitHub events in addition to a schedule. Configure at [claude.ai/code/routines](<https://claude.ai/code/routines>).
[Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>)| Your machine, via the desktop app| Tasks that need direct access to local files, tools, or uncommitted changes.
[GitHub Actions](</docs/en/github-actions>)| Your CI pipeline| Tasks tied to repo events like opened PRs, or cron schedules that should live alongside your workflow config.
[`/loop`](</docs/en/scheduled-tasks>)| The current CLI session| Quick polling while a session is open. Tasks are cancelled when you exit.
Show diff (267 lines)
--- a/desktop.md
+++ b/desktop.md
@@ -1,10 +1,12 @@
The Code tab within the Claude Desktop app lets you use Claude Code through a graphical interface instead of the terminal. Desktop adds these capabilities on top of the standard Claude Code experience:
+ * Parallel sessions with automatic Git worktree isolation
+ * Drag-and-drop layout with an integrated terminal, file editor, and preview pane
+ * Side chats that branch off without affecting the main thread
* Visual diff review with inline comments
- * Live app preview with dev servers
+ * Live app preview with dev servers, HTML files, and PDFs
* Computer use to open apps and control your screen on macOS and Windows
- * GitHub PR monitoring with auto-fix and auto-merge
- * Parallel sessions with automatic Git worktree isolation
+ * GitHub PR monitoring with auto-fix, auto-merge, and auto-archive
* Dispatch integration: send a task from your phone, get a session here
* [Scheduled tasks](</docs/en/desktop-scheduled-tasks>) that run Claude on a recurring schedule
* Connectors for GitHub, Slack, Linear, and more
@@ -12,7 +14,9 @@
New to Desktop? Start with [Get started](</docs/en/desktop-quickstart>) to install the app and make your first edit.
-This page covers working with code, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
+The workspace layout, terminal, file editor, side chats, and view modes described on this page require Claude Desktop v1.2581.0 or later. Open **Claude → Check for Updates** on macOS or **Help → Check for Updates** on Windows to update.
+
+This page covers working with code, arranging your workspace, computer use, managing sessions, extending Claude Code, and configuration. It also includes a CLI comparison and troubleshooting.
##
@@ -24,7 +28,7 @@
* **Environment** : choose where Claude runs. Select **Local** for your machine, **Remote** for Anthropic-hosted cloud sessions, or an **SSH connection** for a remote machine you manage. See environment configuration.
* **Project folder** : select the folder or repository Claude works in. For remote sessions, you can add multiple repositories.
- * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. The model is locked once the session starts.
+ * **Model** : pick a [model](</docs/en/model-config#available-models>) from the dropdown next to the send button. You can change this during the session.
* **Permission mode** : choose how much autonomy Claude has from the mode selector. You can change this during the session.
Type your task and press **Enter** to start. Each session tracks its own context and changes independently.
@@ -84,7 +88,7 @@
Preview your app
-Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. From the preview panel, you can:
+Claude can start a dev server and open an embedded browser to verify its changes. This works for frontend web apps as well as backend servers: Claude can test API endpoints, view server logs, and iterate on issues it finds. In most cases, Claude starts the server automatically after editing project files. You can also ask Claude to preview at any time. By default, Claude auto-verifies changes after every edit. The preview pane can also open static HTML files, PDFs, and images from your project. Click an HTML, PDF, or image path in the chat to open it in preview. From the preview pane, you can:
* Interact with your running app directly in the embedded browser
* Watch Claude verify its own changes automatically: it takes screenshots, inspects the DOM, clicks elements, fills forms, and fixes issues it finds
@@ -126,9 +130,100 @@
* **Auto-fix** : when enabled, Claude automatically attempts to fix failing CI checks by reading the failure output and iterating.
* **Auto-merge** : when enabled, Claude merges the PR once all checks pass. The merge method is squash. Auto-merge must be [enabled in your GitHub repository settings](<https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository>) for this to work.
-Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes.
+Use the **Auto-fix** and **Auto-merge** toggles in the CI status bar to enable either option. Claude Code also sends a desktop notification when CI finishes. To archive the session automatically once the PR merges or closes, turn on auto-archive in Settings → Claude Code.
PR monitoring requires the [GitHub CLI (`gh`)](<https://cli.github.com/>) to be installed and authenticated on your machine. If `gh` is not installed, Desktop prompts you to install it the first time you try to create a PR.
+
+##
+
+
+
+Arrange your workspace
+
+The desktop app is built around panes you can arrange in any layout: chat, diff, preview, terminal, file, plan, tasks, and subagent. Drag a pane by its header to reposition it, or drag a pane edge to resize it. Press **Cmd+\** on macOS or **Ctrl+\** on Windows to close the focused pane. Open additional panes from the **Views** menu in the session toolbar.
+
+###
+
+
+
+Run commands in the terminal
+
+The integrated terminal lets you run commands alongside your session without switching to another app. Open it from the **Views** menu or press **Ctrl+`** on macOS or Windows. The terminal opens in your session’s working directory and shares the same environment as Claude, so commands like `npm test` or `git status` see the same files Claude is editing. The terminal is available in local sessions only.
+
+###
+
+
+
+Open and edit files
+
+Click a file path in the chat or diff viewer to open it in the file pane. HTML, PDF, and image paths open in the preview pane instead. Make spot edits and click **Save** to write them back. If the file changed on disk since you opened it, the pane warns you and lets you override or discard. Click **Discard** to revert your edits, or click the path in the pane header to copy the absolute path. The file pane is available in local and SSH sessions. For remote sessions, ask Claude to make the change.
+
+###
+
+
+
+Open files in other apps
+
+Right-click any file path in the chat, diff viewer, or file pane to open a context menu:
+
+ * **Attach as context** : add the file to your next prompt
+ * **Open in** : open the file in an installed editor such as VS Code, Cursor, or Zed
+ * **Show in Finder** on macOS, **Show in Explorer** on Windows: open the containing folder
+ * **Copy path** : copy the absolute path to your clipboard
+
+###
+
+
+
+Switch view modes
+
+View modes control how much detail appears in the chat transcript. Switch modes from the **Transcript view** dropdown next to the send button, or press **Ctrl+O** on macOS or Windows to cycle through them.
+
+Mode| What it shows
+---|---
+**Normal**| Tool calls collapsed into summaries, with full text responses
+**Verbose**| Every tool call, file read, and intermediate step Claude takes
+**Summary**| Only Claude’s final responses and the changes it made
+
+Use Verbose when debugging why Claude took a particular action. Use Summary when you’re running multiple sessions and want to scan results quickly.
+
+###
+
+
+
+Keyboard shortcuts
+
+Press **Cmd+/** on macOS or **Ctrl+/** on Windows to see all shortcuts available in the Code tab. On Windows, use **Ctrl** in place of **Cmd** for the shortcuts below. Session cycling, the terminal toggle, and the view-mode toggle use **Ctrl** on every platform.
+
+Shortcut| Action
+---|---
+`Cmd` `/`| Show keyboard shortcuts
+`Cmd` `N`| New session
+`Cmd` `W`| Close session
+`Ctrl` `Tab` / `Ctrl` `Shift` `Tab`| Next or previous session
+`Cmd` `Shift` `]` / `Cmd` `Shift` `[`| Next or previous session
+`Esc`| Stop Claude’s response
+`Cmd` `Shift` `D`| Toggle diff pane
+`Cmd` `Shift` `P`| Toggle preview pane
+`Cmd` `Shift` `S`| Select an element in preview
+`Ctrl` ```| Toggle terminal pane
+`Cmd` `\`| Close focused pane
+`Cmd` `;`| Open side chat
+`Ctrl` `O`| Cycle view modes
+`Cmd` `Shift` `M`| Open permission mode menu
+`Cmd` `Shift` `I`| Open model menu
+`Cmd` `Shift` `E`| Open effort menu
+`1`–`9`| Select item in an open menu
+
+These shortcuts apply only to the Code tab. The terminal-based [interactive mode shortcuts](</docs/en/interactive-mode#keyboard-shortcuts>), such as `Shift+Tab` to cycle modes, do not apply in Desktop.
+
+###
+
+
+
+Check usage
+
+Click the usage ring next to the model picker to see your current context window usage and your plan usage for the period. Context usage is per session; plan usage is shared across all your Claude Code surfaces.
##
@@ -215,7 +310,7 @@
Manage sessions
-Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, send work to the cloud, or let Dispatch start sessions for you from your phone.
+Each session is an independent conversation with its own context and changes. You can run multiple sessions in parallel, branch off side chats, send work to the cloud, or let Dispatch start sessions for you from your phone.
###
@@ -223,11 +318,27 @@
Work in parallel with sessions
-Click **\+ New session** in the sidebar to work on multiple tasks in parallel. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
+Click **\+ New session** in the sidebar, or press **Cmd+N** on macOS or **Ctrl+N** on Windows, to work on multiple tasks in parallel. Press **Ctrl+Tab** and **Ctrl+Shift+Tab** to cycle through sessions in the sidebar. For Git repositories, each session gets its own isolated copy of your project using [Git worktrees](</docs/en/common-workflows#run-parallel-claude-code-sessions-with-git-worktrees>), so changes in one session don’t affect other sessions until you commit them. Worktrees are stored in `<project-root>/.claude/worktrees/` by default. You can change this to a custom directory in Settings → Claude Code under “Worktree location”. You can also set a branch prefix that gets prepended to every worktree branch name, which is useful for keeping Claude-created branches organized. To remove a worktree when you’re done, hover over the session in the sidebar and click the archive icon. To have sessions archive themselves when their pull request merges or closes, turn on **Auto-archive after PR merge or close** in Settings → Claude Code. Auto-archive only applies to local sessions that have finished running. To include gitignored files like `.env` in new worktrees, create a [`.worktreeinclude` file](</docs/en/common-workflows#copy-gitignored-files-to-worktrees>) in your project root.
Session isolation requires [Git](<https://git-scm.com/downloads>). Most Macs include Git by default. Run `git --version` in Terminal to check. On Windows, Git is required for the Code tab to work: [download Git for Windows](<https://git-scm.com/downloads/win>), install it, and restart the app. If you run into Git errors, try a Cowork session to help troubleshoot your setup.
-Use the filter icon at the top of the sidebar to filter sessions by status (Active, Archived) and environment (Local, Cloud). To rename a session or check context usage, click the session title in the toolbar at the top of the active session. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+Use the controls at the top of the sidebar to filter sessions by status, project, or environment, and to group sessions by project. To rename a session, click the session title in the toolbar at the top of the active session. To check context usage, see Check usage. When context fills up, Claude automatically summarizes the conversation and continues working. You can also type `/compact` to trigger summarization earlier and free up context space. See [the context window](</docs/en/how-claude-code-works#the-context-window>) for details on how compaction works.
+
+###
+
+
+
+Ask a side question without derailing the session
+
+A side chat lets you ask Claude a question that uses your session’s context but doesn’t add anything back to the main conversation. Use it when you want to understand a piece of code, check an assumption, or explore an idea without steering the session off course. Press **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 continue the main session where you left off. Side chats are available in local and SSH sessions.
+
+###
+
+
+
+Watch background tasks
+
+The tasks pane shows the background work running inside the current session: subagents, background shell commands, and workflows. Open it from the **Views** menu or drag it into your layout. Click any entry to see its output in the subagent pane or stop it. To see what other sessions are doing, use the sidebar.
###
@@ -270,7 +381,7 @@
Connect external tools
-For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [scheduled tasks](</docs/en/web-scheduled-tasks>) configure connectors at task creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
+For local and SSH sessions, click the **+** button next to the prompt box and select **Connectors** to add integrations like Google Calendar, Slack, GitHub, Linear, Notion, and more. You can add connectors before or during a session. The **+** button is not available in remote sessions, but [routines](</docs/en/routines>) configure connectors at routine creation time. To manage or disconnect connectors, go to Settings → Connectors in the desktop app, or select **Manage connectors** from the Connectors menu in the prompt box. Once connected, Claude can read your calendar, send messages, create issues, and interact with your tools directly. You can ask Claude what connectors are configured in your session. Connectors are [MCP servers](</docs/en/mcp>) with a graphical setup flow. Use them for quick integration with supported services. For integrations not listed in Connectors, add MCP servers manually via [settings files](</docs/en/mcp#installing-mcp-servers>). You can also [create custom connectors](<https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp>).
###
@@ -286,7 +397,7 @@
Install plugins
-[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
+[Plugins](</docs/en/plugins>) are reusable packages that add skills, agents, hooks, MCP servers, and LSP configurations to Claude Code. You can install plugins from the desktop app without using the terminal. For local and SSH sessions, click the **+** button next to the prompt box and select **Plugins** to see your installed plugins and their skills. To add a plugin, select **Add plugin** from the submenu to open the plugin browser, which shows available plugins from your configured [marketplaces](</docs/en/plugin-marketplaces>) including the official Anthropic marketplace. Select **Manage plugins** to enable, disable, or uninstall plugins. Plugins can be scoped to your user account, a specific project, or local-only. If your organization manages plugins centrally, those plugins are available in desktop sessions the same way they are in the CLI. Plugins are not available for remote sessions. For the full plugin reference including creating your own plugins, see [plugins](</docs/en/plugins>).
###
@@ -472,7 +583,7 @@
* **SSH Port** : defaults to 22 if left empty, or uses the port from your SSH config
* **Identity File** : path to your private key, such as `~/.ssh/id_rsa`. Leave empty to use the default key or your SSH config.
-Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. Claude Code must be installed on the remote machine. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
+Once added, the connection appears in the environment dropdown. Select it to start a session on that machine. Claude runs on the remote machine with access to its files and tools. The remote machine must run Linux or macOS, and Claude Code must be installed on it. Once connected, SSH sessions support permission modes, connectors, plugins, and MCP servers.
##
@@ -559,7 +670,7 @@
If you already use the Claude Code CLI, Desktop runs the same underlying engine with a graphical interface. You can run both simultaneously on the same machine, even on the same project. Each maintains separate session history, but they share configuration and project memory via CLAUDE.md files. To move a CLI session into Desktop, run `/desktop` in the terminal. Claude saves your session and opens it in the desktop app, then exits the CLI. This command is available on macOS and Windows only.
-When to use Desktop vs CLI: use Desktop when you want visual diff review, file attachments, or session management in a sidebar. Use the CLI when you need scripting, automation, third-party providers, or prefer a terminal workflow.
+When to use Desktop vs CLI: use Desktop when you want to manage parallel sessions in one window, arrange panes side by side, or review changes visually. Use the CLI when you need scripting, automation, or prefer a terminal workflow.
###
@@ -571,13 +682,13 @@
CLI| Desktop equivalent
---|---
-`--model sonnet`| Model dropdown next to the send button, before starting a session
+`--model sonnet`| Model dropdown next to the send button
`--resume`, `--continue`| Click a session in the sidebar
`--permission-mode`| Mode selector next to the send button
`--dangerously-skip-permissions`| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”. Enterprise admins can disable this setting.
`--add-dir`| Add multiple repos with the **+** button in remote sessions
`--allowedTools`, `--disallowedTools`| Not available in Desktop
-`--verbose`| Not available. Check system logs: Console.app on macOS, Event Viewer → Windows Logs → Application on Windows
+`--verbose`| Verbose view mode in the Transcript view dropdown
`--print`, `--output-format`| Not available. Desktop is interactive only.
`ANTHROPIC_MODEL` env var| Model dropdown next to the send button
`MAX_THINKING_TOKENS` env var| Set in the local environment editor. See environment configuration.
@@ -594,7 +705,7 @@
* **[MCP servers](</docs/en/mcp>)** configured in `~/.claude.json` or `.mcp.json` work in both
* **[Hooks](</docs/en/hooks>)** and **[skills](</docs/en/skills>)** defined in settings apply to both
* **[Settings](</docs/en/settings>)** in `~/.claude.json` and `~/.claude/settings.json` are shared. Permission rules, allowed tools, and other settings in `settings.json` apply to Desktop sessions.
- * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button before starting a session. You cannot change the model during an active session.
+ * **Models** : Sonnet, Opus, and Haiku are available in both. In Desktop, select the model from the dropdown next to the send button. You can change the model mid-session from the same dropdown.
**MCP servers: desktop chat app vs Claude Code** : MCP servers configured for the Claude Desktop chat app in `claude_desktop_config.json` are separate from Claude Code and will not appear in the Code tab. To use MCP servers in Claude Code, configure them in `~/.claude.json` or your project’s `.mcp.json` file. See [MCP configuration](</docs/en/mcp#installing-mcp-servers>) for details.
@@ -610,7 +721,7 @@
---|---|---
Permission modes| All modes including `dontAsk`| Ask permissions, Auto accept edits, Plan mode, Auto, and Bypass permissions via Settings
`--dangerously-skip-permissions`| CLI flag| Bypass permissions mode. Enable in Settings → Claude Code → “Allow bypass permissions mode”
-[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Not available. Desktop connects to Anthropic’s API directly.
+[Third-party providers](</docs/en/third-party-integrations>)| Bedrock, Vertex, Foundry| Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers. See the [enterprise configuration guide](<https://support.claude.com/en/articles/12622667-enterprise-configuration>).
[MCP servers](</docs/en/mcp>)| Configure in settings files| Connectors UI for local and SSH sessions, or settings files
[Plugins](</docs/en/plugins>)| `/plugin` command| Plugin manager UI
@mention files| Text-based| With autocomplete; local and SSH sessions only
@@ -630,7 +741,7 @@
The following features are only available in the CLI or VS Code extension:
- * **Third-party providers** : Desktop connects to Anthropic’s API directly. Use the [CLI](</docs/en/quickstart>) with Bedrock, Vertex, or Foundry instead.
+ * **Third-party providers** : Desktop connects to Anthropic’s API by default. Enterprise deployments can configure Vertex AI and gateway providers via [managed settings](<https://support.claude.com/en/articles/12622667-enterprise-configuration>). For Bedrock or Foundry, use the [CLI](</docs/en/quickstart>).
* **Linux** : the desktop app is available on macOS and Windows only.
* **Inline code suggestions** : Desktop does not provide autocomplete-style suggestions. It works through conversational prompts and explicit code changes.
* **Agent teams** : multi-agent orchestration is available via the [CLI](</docs/en/agent-teams>) and [Agent SDK](</docs/en/headless>), not in Desktop.
--- a/desktop-quickstart.md
+++ b/desktop-quickstart.md
@@ -1,4 +1,4 @@
-The desktop app gives you Claude Code with a graphical interface: visual diff review, live app preview, GitHub PR monitoring with auto-merge, parallel sessions with Git worktree isolation, scheduled tasks, and the ability to run tasks remotely. No terminal required. Download Claude for your platform:
+The desktop app gives you Claude Code with a graphical interface built for running multiple sessions side by side: a sidebar for managing parallel work, a drag-and-drop layout with an integrated terminal and file editor, visual diff review, live app preview, GitHub PR monitoring with auto-merge, and scheduled tasks. No terminal required. Download Claude for your platform:
## macOS
@@ -71,7 +71,7 @@
Choose a model
-Select a model from the dropdown next to the send button. See [models](</docs/en/model-config#available-models>) for a comparison of Opus, Sonnet, and Haiku. You cannot change the model after the session starts.
+Select a model from the dropdown next to the send button. See [models](</docs/en/model-config#available-models>) for a comparison of Opus, Sonnet, and Haiku. You can change the model later from the same dropdown.
3
@@ -103,7 +103,7 @@
Now what?
-You’ve made your first edit. For the full reference on everything Desktop can do, see [Use Claude Code Desktop](</docs/en/desktop>). Here are some things to try next. **Interrupt and steer.** You can interrupt Claude at any point. If it’s going down the wrong path, click the stop button or type your correction and press **Enter**. Claude stops what it’s doing and adjusts based on your input. You don’t have to wait for it to finish or start over. **Give Claude more context.** Type `@filename` in the prompt box to pull a specific file into the conversation, attach images and PDFs using the attachment button, or drag and drop files directly into the prompt. The more context Claude has, the better the results. See [Add files and context](</docs/en/desktop#add-files-and-context-to-prompts>). **Use skills for repeatable tasks.** Type `/` or click **+** → **Slash commands** to browse [built-in commands](</docs/en/commands>), [custom skills](</docs/en/skills>), and plugin skills. Skills are reusable prompts you can invoke whenever you need them, like code review checklists or deployment steps. **Review changes before committing.** After Claude edits files, a `+12 -1` indicator appears. Click it to open the [diff view](</docs/en/desktop#review-changes-with-diff-view>), review modifications file by file, and comment on specific lines. Claude reads your comments and revises. Click **Review code** to have Claude evaluate the diffs itself and leave inline suggestions. **Adjust how much control you have.** Your [permission mode](</docs/en/desktop#choose-a-permission-mode>) controls the balance. Ask permissions (default) requires approval before every edit. Auto accept edits auto-accepts file edits for faster iteration. Plan mode lets Claude map out an approach without touching any files, which is useful before a large refactor. **Add plugins for more capabilities.** Click the **+** button next to the prompt box and select **Plugins** to browse and install [plugins](</docs/en/desktop#install-plugins>) that add skills, agents, MCP servers, and more. **Preview your app.** Click the **Preview** dropdown to run your dev server directly in the desktop. Claude can view the running app, test endpoints, inspect logs, and iterate on what it sees. See [Preview your app](</docs/en/desktop#preview-your-app>). **Track your pull request.** After opening a PR, Claude Code monitors CI check results and can automatically fix failures or merge the PR once all checks pass. See [Monitor pull request status](</docs/en/desktop#monitor-pull-request-status>). **Put Claude on a schedule.** Set up [scheduled tasks](</docs/en/desktop-scheduled-tasks>) to run Claude automatically on a recurring basis: a daily code review every morning, a weekly dependency audit, or a briefing that pulls from your connected tools. **Scale up when you’re ready.** Open [parallel sessions](</docs/en/desktop#work-in-parallel-with-sessions>) from the sidebar to work on multiple tasks at once, each in its own Git worktree. Send [long-running work to the cloud](</docs/en/desktop#run-long-running-tasks-remotely>) so it continues even if you close the app, or [continue a session on the web or in your IDE](</docs/en/desktop#continue-in-another-surface>) if a task takes longer than expected. [Connect external tools](</docs/en/desktop#extend-claude-code>) like GitHub, Slack, and Linear to bring your workflow together.
+You’ve made your first edit. For the full reference on everything Desktop can do, see [Use Claude Code Desktop](</docs/en/desktop>). Here are some things to try next. **Interrupt and steer.** You can interrupt Claude at any point. If it’s going down the wrong path, click the stop button or type your correction and press **Enter**. Claude stops what it’s doing and adjusts based on your input. You don’t have to wait for it to finish or start over. **Give Claude more context.** Type `@filename` in the prompt box to pull a specific file into the conversation, attach images and PDFs using the attachment button, or drag and drop files directly into the prompt. The more context Claude has, the better the results. See [Add files and context](</docs/en/desktop#add-files-and-context-to-prompts>). **Use skills for repeatable tasks.** Type `/` or click **+** → **Slash commands** to browse [built-in commands](</docs/en/commands>), [custom skills](</docs/en/skills>), and plugin skills. Skills are reusable prompts you can invoke whenever you need them, like code review checklists or deployment steps. **Review changes before committing.** After Claude edits files, a `+12 -1` indicator appears. Click it to open the [diff view](</docs/en/desktop#review-changes-with-diff-view>), review modifications file by file, and comment on specific lines. Claude reads your comments and revises. Click **Review code** to have Claude evaluate the diffs itself and leave inline suggestions. **Adjust how much control you have.** Your [permission mode](</docs/en/desktop#choose-a-permission-mode>) controls the balance. Ask permissions (default) requires approval before every edit. Auto accept edits auto-accepts file edits for faster iteration. Plan mode lets Claude map out an approach without touching any files, which is useful before a large refactor. **Add plugins for more capabilities.** Click the **+** button next to the prompt box and select **Plugins** to browse and install [plugins](</docs/en/desktop#install-plugins>) that add skills, agents, MCP servers, and more. **Arrange your workspace.** Drag the chat, diff, terminal, file, and preview panes into whatever layout you want. Open the terminal with **Ctrl+`** to run commands alongside your session, or click a file path to open it in the file pane. See [Arrange your workspace](</docs/en/desktop#arrange-your-workspace>). **Preview your app.** Click the **Preview** dropdown to run your dev server directly in the desktop. Claude can view the running app, test endpoints, inspect logs, and iterate on what it sees. See [Preview your app](</docs/en/desktop#preview-your-app>). **Track your pull request.** After opening a PR, Claude Code monitors CI check results and can automatically fix failures or merge the PR once all checks pass. See [Monitor pull request status](</docs/en/desktop#monitor-pull-request-status>). **Put Claude on a schedule.** Set up [scheduled tasks](</docs/en/desktop-scheduled-tasks>) to run Claude automatically on a recurring basis: a daily code review every morning, a weekly dependency audit, or a briefing that pulls from your connected tools. **Scale up when you’re ready.** Open [parallel sessions](</docs/en/desktop#work-in-parallel-with-sessions>) from the sidebar to work on multiple tasks at once, each in its own Git worktree, and open the [tasks pane](</docs/en/desktop#watch-background-tasks>) to watch the subagents and background commands a session has running. Open a [side chat](</docs/en/desktop#ask-a-side-question-without-derailing-the-session>) to ask a question without derailing the main thread. Send [long-running work to the cloud](</docs/en/desktop#run-long-running-tasks-remotely>) so it continues even if you close the app, or [continue a session on the web or in your IDE](</docs/en/desktop#continue-in-another-surface>) if a task takes longer than expected. [Connect external tools](</docs/en/desktop#extend-claude-code>) like GitHub, Slack, and Linear to bring your workflow together.
##
--- a/desktop-scheduled-tasks.md
+++ b/desktop-scheduled-tasks.md
@@ -8,7 +8,7 @@
Claude Code offers three ways to schedule recurring work:
-| [Cloud](</docs/en/web-scheduled-tasks>)| [Desktop](</docs/en/desktop-scheduled-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
+| [Cloud](</docs/en/routines>)| [Desktop](</docs/en/desktop-scheduled-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
---|---|---|---
Runs on| Anthropic cloud| Your machine| Your machine
Requires machine on| No| Yes| Yes
@@ -27,7 +27,7 @@
* **Local tasks** : run on your machine. They have direct access to your local files and tools, but the desktop app must be open and your computer awake for them to run.
* **Remote tasks** : run on Anthropic-managed cloud infrastructure. They keep running even when your computer is off, but work against a fresh clone of your repository rather than your local checkout.
-Both kinds appear in the same task grid. Click **New task** to pick which kind to create. The rest of this page covers local tasks; for remote tasks, see [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>). See How scheduled tasks run for details on missed runs and catch-up behavior for local tasks.
+Both kinds appear in the same task grid. Click **New task** to pick which kind to create. The rest of this page covers local tasks; for remote tasks, see [Routines](</docs/en/routines>). See How scheduled tasks run for details on missed runs and catch-up behavior for local tasks.
By default, local scheduled tasks run against whatever state your working directory is in, including uncommitted changes. Enable the worktree toggle in the prompt input to give each run its own isolated Git worktree, the same way [parallel sessions](</docs/en/desktop#work-in-parallel-with-sessions>) work.
@@ -70,7 +70,7 @@
How scheduled tasks run
-Local scheduled tasks run on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep. For tasks that need to run even when your computer is off, use a [remote task](</docs/en/web-scheduled-tasks>) instead.
+Local scheduled tasks run on your machine. Desktop checks the schedule every minute while the app is open and starts a fresh session when a task is due, independent of any manual sessions you have open. Each task gets a fixed delay of up to 10 minutes after the scheduled time to stagger API traffic. The delay is deterministic: the same task always starts at the same offset. When a task fires, you get a desktop notification and a new session appears under a **Scheduled** section in the sidebar. Open it to see what Claude did, review changes, or respond to permission prompts. The session works like any other: Claude can edit files, run commands, create commits, and open pull requests. Tasks only run while the desktop app is running and your computer is awake. If your computer sleeps through a scheduled time, the run is skipped. To prevent idle-sleep, enable **Keep computer awake** in Settings under **Desktop app → General**. Closing the laptop lid still puts it to sleep. For tasks that need to run even when your computer is off, or that should trigger automatically on an API call or GitHub event, use a [routine](</docs/en/routines>) instead.
##
@@ -111,7 +111,7 @@
Related resources
- * [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>): schedule tasks that run on Anthropic-managed infrastructure even when your computer is off
+ * [Routines](</docs/en/routines>): run tasks on Anthropic-managed infrastructure on a schedule, via API call, or in response to GitHub events, even when your computer is off
* [Run prompts on a schedule](</docs/en/scheduled-tasks>): session-scoped scheduling with `/loop` in the CLI
* [Claude Code GitHub Actions](</docs/en/github-actions>): run Claude on a schedule in CI instead of on your machine
* [Use Claude Code Desktop](</docs/en/desktop>): the full Desktop app guide
--- a/env-vars.md
+++ b/env-vars.md
@@ -75,6 +75,7 @@
`CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL`| Set to `1` to skip automatic addition of the official plugin marketplace on first run
`CLAUDE_CODE_DISABLE_TERMINAL_TITLE`| Set to `1` to disable automatic terminal title updates based on conversation context
`CLAUDE_CODE_DISABLE_THINKING`| Set to `1` to force-disable [extended thinking](<https://platform.claude.com/docs/en/build-with-claude/extended-thinking>) regardless of model support or other settings. More direct than `MAX_THINKING_TOKENS=0`
+`CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL`| Set to `1` to disable virtual scrolling in [fullscreen rendering](</docs/en/fullscreen>) and render every message in the transcript. Use this if scrolling in fullscreen mode shows blank regions where messages should appear
`CLAUDE_CODE_EFFORT_LEVEL`| Set the effort level for supported models. Values: `low`, `medium`, `high`, `max` (Opus 4.6 only), or `auto` to use the model default. Takes precedence over `/effort` and the `effortLevel` setting. See [Adjust effort level](</docs/en/model-config#adjust-effort-level>)
`CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING`| Set to `1` to force-enable fine-grained tool input streaming. Without this, the API buffers tool input parameters fully before sending delta events, which can delay display on large tool inputs. Anthropic API only: has no effect on Bedrock, Vertex, or Foundry
`CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION`| Set to `false` to disable prompt suggestions (the “Prompt suggestions” toggle in `/config`). These are the grayed-out predictions that appear in your prompt input after Claude responds. See [Prompt suggestions](</docs/en/interactive-mode#prompt-suggestions>)
@@ -90,6 +91,7 @@
`CLAUDE_CODE_IDE_HOST_OVERRIDE`| Override the host address used to connect to the IDE extension. By default Claude Code auto-detects the correct address, including WSL-to-Windows routing
`CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL`| Skip auto-installation of IDE extensions. Equivalent to setting [`autoInstallIdeExtension`](</docs/en/settings#global-config-settings>) to `false`
`CLAUDE_CODE_IDE_SKIP_VALID_CHECK`| Set to `1` to skip validation of IDE lockfile entries during connection. Use when auto-connect fails to find your IDE despite it running
+`CLAUDE_CODE_MAX_CONTEXT_TOKENS`| Override the context window size Claude Code assumes for the active model. Only takes effect when `DISABLE_COMPACT` is also set. Use this when routing to a model through `ANTHROPIC_BASE_URL` whose context window does not match the built-in size for its name
`CLAUDE_CODE_MAX_OUTPUT_TOKENS`| Set the maximum number of output tokens for most requests. Defaults and caps vary by model; see [max output tokens](<https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison>). Increasing this value reduces the effective context window available before [auto-compaction](</docs/en/costs#reduce-token-usage>) triggers.
`CLAUDE_CODE_MAX_RETRIES`| Override the number of times to retry failed API requests (default: 10)
`CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY`| Maximum number of read-only tools and subagents that can execute in parallel (default: 10). Higher values increase parallelism but consume more resources
@@ -117,6 +119,7 @@
`CLAUDE_CODE_SKIP_BEDROCK_AUTH`| Skip AWS authentication for Bedrock (for example, when using an LLM gateway)
`CLAUDE_CODE_SKIP_FOUNDRY_AUTH`| Skip Azure authentication for Microsoft Foundry (for example, when using an LLM gateway)
`CLAUDE_CODE_SKIP_MANTLE_AUTH`| Skip AWS authentication for Bedrock Mantle (for example, when using an LLM gateway)
+`CLAUDE_CODE_SKIP_PROMPT_HISTORY`| Set to `1` to skip writing prompt history and session transcripts to disk. Sessions started with this variable set do not appear in `--resume`, `--continue`, or up-arrow history. Useful for ephemeral scripted sessions
`CLAUDE_CODE_SKIP_VERTEX_AUTH`| Skip Google authentication for Vertex (for example, when using an LLM gateway)
`CLAUDE_CODE_SUBAGENT_MODEL`| See [Model configuration](</docs/en/model-config>)
`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`| Set to `1` to strip Anthropic and cloud provider credentials from subprocess environments (Bash tool, hooks, MCP stdio servers). The parent Claude process keeps these credentials for API calls, but child processes cannot read them, reducing exposure to prompt injection attacks that attempt to exfiltrate secrets via shell expansion. On Linux, this also runs Bash subprocesses in an isolated PID namespace so they cannot read host process environments via `/proc`; as a side effect, `ps`, `pgrep`, and `kill` cannot see or signal host processes. `claude-code-action` sets this automatically when `allowed_non_write_users` is configured
--- a/github-enterprise-server.md
+++ b/github-enterprise-server.md
@@ -109,7 +109,7 @@
claude --remote "Add retry logic to the payment webhook handler"
-The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and scheduled tasks.
+The session runs on Anthropic infrastructure, clones your repository from GHES, and pushes changes back to a branch. Monitor progress with `/tasks` or at [claude.ai/code](<https://claude.ai/code>). See [Claude Code on the web](</docs/en/claude-code-on-the-web>) for the full remote session workflow including diff review, auto-fix, and routines.
###
--- a/overview.md
+++ b/overview.md
@@ -38,7 +38,7 @@
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
-If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
+If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
Native installations automatically update in the background to keep you on the latest version.
@@ -137,7 +137,7 @@
Run Claude on a schedule to automate work that repeats: morning PR reviews, overnight CI failure analysis, weekly dependency audits, or syncing docs after PRs merge.
- * [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>) run on Anthropic-managed infrastructure, so they keep running even when your computer is off. Create them from the web, the Desktop app, or by running `/schedule` in the CLI.
+ * [Routines](</docs/en/routines>) run on Anthropic-managed infrastructure, so they keep running even when your computer is off. They can also trigger on API calls or GitHub events. Create them from the web, the Desktop app, or by running `/schedule` in the CLI.
* [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>) run on your machine, with direct access to your local files and tools
* [`/loop`](</docs/en/scheduled-tasks>) repeats a prompt within a CLI session for quick polling
@@ -164,7 +164,7 @@
Continue a local session from my phone or another device| [Remote Control](</docs/en/remote-control>)
Push events from Telegram, Discord, iMessage, or my own webhooks into a session| [Channels](</docs/en/channels>)
Start a task locally, continue on mobile| [Web](</docs/en/claude-code-on-the-web>) or [Claude iOS app](<https://apps.apple.com/app/claude-by-anthropic/id6473753684>)
-Run Claude on a recurring schedule| [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>) or [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>)
+Run Claude on a recurring schedule| [Routines](</docs/en/routines>) or [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>)
Automate PR reviews and issue triage| [GitHub Actions](</docs/en/github-actions>) or [GitLab CI/CD](</docs/en/gitlab-ci-cd>)
Get automatic code review on every PR| [GitHub Code Review](</docs/en/code-review>)
Route bug reports from Slack to pull requests| [Slack](</docs/en/slack>)
--- a/platforms.md
+++ b/platforms.md
@@ -51,7 +51,7 @@
[Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI or VS Code)| Run `claude remote-control`| Steering in-progress work from another device
[Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages
[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled| PRs and reviews from team chat
-[Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/web-scheduled-tasks>)| Pick a frequency| Recurring automation like daily reviews
+[Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/routines>)| Pick a frequency| Recurring automation like daily reviews
If you’re not sure where to start, [install the CLI](</docs/en/quickstart>) and run it in a project directory. If you’d rather not use a terminal, [Desktop](</docs/en/desktop-quickstart>) gives you the same engine with a graphical interface.
--- a/plugins.md
+++ b/plugins.md
@@ -204,10 +204,9 @@
└── code-review/
└── SKILL.md
-Each `SKILL.md` needs frontmatter with `name` and `description` fields, followed by instructions:
-
- ---
- name: code-review
+Each `SKILL.md` contains YAML frontmatter and instructions. Include a `description` so Claude knows when to use the skill:
+
+ ---
description: Reviews code for best practices and potential issues. Use when reviewing code, checking PRs, or analyzing code quality.
---
--- a/plugins-reference.md
+++ b/plugins-reference.md
@@ -483,7 +483,7 @@
* Through `claude --plugin-dir`, for the duration of a session.
* Through a marketplace, installed for future sessions.
-For security and verification purposes, Claude Code copies _marketplace_ plugins to the user’s local **plugin cache** (`~/.claude/plugins/cache`) rather than using them in-place. Understanding this behavior is important when developing plugins that reference external files. Each installed version is a separate directory in the cache. When you update or uninstall a plugin, the previous version directory is marked as orphaned and removed automatically 7 days later. The grace period lets concurrent Claude Code sessions that already loaded the old version keep running without errors.
+For security and verification purposes, Claude Code copies _marketplace_ plugins to the user’s local **plugin cache** (`~/.claude/plugins/cache`) rather than using them in-place. Understanding this behavior is important when developing plugins that reference external files. Each installed version is a separate directory in the cache. When you update or uninstall a plugin, the previous version directory is marked as orphaned and removed automatically 7 days later. The grace period lets concurrent Claude Code sessions that already loaded the old version keep running without errors. Claude’s Glob and Grep tools skip orphaned version directories during searches, so file results don’t include outdated plugin code.
###
--- a/quickstart.md
+++ b/quickstart.md
@@ -41,7 +41,7 @@
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
-If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
+If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
Native installations automatically update in the background to keep you on the latest version.
--- a/remote-control.md
+++ b/remote-control.md
@@ -226,7 +226,7 @@
[Remote Control](</docs/en/remote-control>)| Drive a running session from [claude.ai/code](<https://claude.ai/code>) or the Claude mobile app| Your machine (CLI or VS Code)| Run `claude remote-control`| Steering in-progress work from another device
[Channels](</docs/en/channels>)| Push events from a chat app like Telegram or Discord, or your own server| Your machine (CLI)| [Install a channel plugin](</docs/en/channels#quickstart>) or [build your own](</docs/en/channels-reference>)| Reacting to external events like CI failures or chat messages
[Slack](</docs/en/slack>)| Mention `@Claude` in a team channel| Anthropic cloud| [Install the Slack app](</docs/en/slack#setting-up-claude-code-in-slack>) with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled| PRs and reviews from team chat
-[Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/web-scheduled-tasks>)| Pick a frequency| Recurring automation like daily reviews
+[Scheduled tasks](</docs/en/scheduled-tasks>)| Set a schedule| [CLI](</docs/en/scheduled-tasks>), [Desktop](</docs/en/desktop-scheduled-tasks>), or [cloud](</docs/en/routines>)| Pick a frequency| Recurring automation like daily reviews
##
Show diff (354 lines)
--- a/routines.md
+++ b/routines.md
@@ -0,0 +1,351 @@
+Routines are in research preview. Behavior, limits, and the API surface may change.
+
+A routine is a saved Claude Code configuration: a prompt, one or more repositories, and a set of [connectors](</docs/en/mcp>), packaged once and run automatically. Routines execute on Anthropic-managed cloud infrastructure, so they keep working when your laptop is closed. Each routine can have one or more triggers attached to it:
+
+ * **Scheduled** : run on a recurring cadence like hourly, nightly, or weekly
+ * **API** : trigger on demand by sending an HTTP POST to a per-routine endpoint with a bearer token
+ * **GitHub** : run automatically in response to repository events such as pull requests or releases
+
+A single routine can combine triggers. For example, a PR review routine can run nightly, trigger from a deploy script, and also react to every new PR. Routines are available on Pro, Max, Team, and Enterprise plans with [Claude Code on the web](</docs/en/claude-code-on-the-web>) enabled. Create and manage them at [claude.ai/code/routines](<https://claude.ai/code/routines>), or from the CLI with `/schedule`. This page covers creating a routine, configuring each trigger type, managing runs, and how usage limits apply.
+
+##
+
+
+
+Example use cases
+
+Each example pairs a trigger type with the kind of work routines are suited to: unattended, repeatable, and tied to a clear outcome. **Backlog maintenance.** A schedule trigger runs every weeknight against your issue tracker via a connector. The routine reads issues opened since the last run, applies labels, assigns owners based on the area of code referenced, and posts a summary to Slack so the team starts the day with a groomed queue. **Alert triage.** Your monitoring tool calls the routine’s API endpoint when an error threshold is crossed, passing the alert body as `text`. The routine pulls the stack trace, correlates it with recent commits in the repository, and opens a draft pull request with a proposed fix and a link back to the alert. On-call reviews the PR instead of starting from a blank terminal. **Bespoke code review.** A GitHub trigger runs on `pull_request.opened`. The routine applies your team’s own review checklist, leaves inline comments for security, performance, and style issues, and adds a summary comment so human reviewers can focus on design instead of mechanical checks. **Deploy verification.** Your CD pipeline calls the routine’s API endpoint after each production deploy. The routine runs smoke checks against the new build, scans error logs for regressions, and posts a go or no-go to the release channel before the deploy window closes. **Docs drift.** A schedule trigger runs weekly. The routine scans merged PRs since the last run, flags documentation that references changed APIs, and opens update PRs against the docs repository for an editor to review. **Library port.** A GitHub trigger runs on `pull_request.closed` filtered to merged PRs in one SDK repository. The routine ports the change to a parallel SDK in another language and opens a matching PR, keeping the two libraries in step without a human re-implementing each change. The sections below walk through creating a routine and configuring each of these trigger types.
+
+##
+
+
+
+Create a routine
+
+Create a routine from the web, the Desktop app, or the CLI. All three surfaces write to the same cloud account, so a routine you create in the CLI shows up at claude.ai/code/routines immediately. In the Desktop app, click **New task** and choose **New remote task** ; choosing **New local task** instead creates a [local Desktop scheduled task](</docs/en/desktop-scheduled-tasks>), which runs on your machine and is not a routine. The creation form sets up the routine’s prompt, repositories, environment, connectors, and triggers. Routines run autonomously as full Claude Code cloud sessions: there is no permission-mode picker and no approval prompts during a run. The session can run shell commands, use [skills](</docs/en/skills>) committed to the cloned repository, and call any connectors you include. What a routine can reach is determined by the repositories you select and their branch-push setting, the [environment’s](</docs/en/claude-code-on-the-web#the-cloud-environment>) network access and variables, and the connectors you include. Scope each of those to what the routine actually needs. Routines belong to your individual claude.ai account. They are not shared with teammates, and they count against your account’s daily run allowance. Anything a routine does through your connected GitHub identity or connectors appears as you: commits and pull requests carry your GitHub user, and Slack messages, Linear tickets, or other connector actions use your linked accounts for those services.
+
+###
+
+
+
+Create from the web
+
+1
+
+Open the creation form
+
+Visit [claude.ai/code/routines](<https://claude.ai/code/routines>) and click **New routine**.
+
+2
+
+Name the routine and write the prompt
+
+Give the routine a descriptive name and write the prompt Claude runs each time. The prompt is the most important part: the routine runs autonomously, so the prompt must be self-contained and explicit about what to do and what success looks like.The prompt input includes a model selector. Claude uses the selected model on every run.
+
+3
+
+Select repositories
+
+Add one or more GitHub repositories for Claude to work in. Each repository is cloned at the start of a run, starting from the default branch. Claude creates `claude/`-prefixed branches for its changes. To allow pushes to any branch, enable **Allow unrestricted branch pushes** for that repository.
+
+4
+
+Select an environment
+
+Pick a [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for the routine. Environments control what the cloud session has access to:
+
+ * **Network access** : set the level of internet access available during each run
+ * **Environment variables** : provide API keys, tokens, or other secrets Claude can use
+ * **Setup script** : run install commands before each session starts, like installing dependencies or configuring tools
+
+A **Default** environment is provided. To use a custom environment, [create one](</docs/en/claude-code-on-the-web#the-cloud-environment>) before creating the routine.
+
+5
+
+Select a trigger
+
+Under **Select a trigger** , choose how the routine starts. You can pick one trigger type or combine several.
+
+ * Schedule
+
+ * GitHub event
+
+ * API
+
+Pick a preset frequency: hourly, daily, weekdays, or weekly. See Add a schedule trigger for timezone handling, stagger, and custom cron intervals.
+
+Select the repository, the event to react to, and optional filters. See Add a GitHub trigger for the full list of supported events and filter fields.
+
+Select **API** here, then save the routine. The URL and token are generated after the routine is saved, since they depend on the routine ID. See Add an API trigger to copy the URL and generate a token.
+
+6
+
+Review connectors
+
+All of your connected [MCP connectors](</docs/en/mcp>) are included by default. Remove any that the routine doesn’t need. Connectors give Claude access to external services like Slack, Linear, or Google Drive during each run.
+
+7
+
+Create the routine
+
+Click **Create**. The routine appears in the list and runs the next time one of its triggers matches. To start a run immediately, click **Run now** on the routine’s detail page.Each run creates a new session alongside your other sessions, where you can see what Claude did, review changes, and create a pull request.
+
+###
+
+
+
+Create from the CLI
+
+Run `/schedule` in any session to create a scheduled routine conversationally. You can also pass a description directly, as in `/schedule daily PR review at 9am`. Claude walks through the same information the web form collects, then saves the routine to your account. `/schedule` in the CLI creates scheduled routines only. To add an API or GitHub trigger, edit the routine on the web at [claude.ai/code/routines](<https://claude.ai/code/routines>). The CLI also supports managing existing routines. Run `/schedule list` to see all routines, `/schedule update` to change one, or `/schedule run` to trigger it immediately.
+
+###
+
+
+
+Create from the Desktop app
+
+Open the **Schedule** page in the Desktop app, click **New task** , and choose **New remote task**. The Desktop app shows both local scheduled tasks and routines in the same grid. See [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>) for details on the local option.
+
+##
+
+
+
+Configure triggers
+
+A routine starts when one of its triggers matches. You can attach any combination of schedule, API, and GitHub triggers to the same routine, and add or remove them at any time from the **Select a trigger** section of the routine’s edit form.
+
+###
+
+
+
+Add a schedule trigger
+
+A schedule trigger runs the routine on a recurring cadence. Pick a preset frequency in the **Select a trigger** section: hourly, daily, weekdays, or weekly. Times are entered in your local zone and converted automatically, so the routine runs at that wall-clock time regardless of where the cloud infrastructure is located. Runs may start a few minutes after the scheduled time due to stagger. The offset is consistent for each routine. For a custom interval such as every two hours or the first of each month, pick the closest preset in the form, then run `/schedule update` in the CLI to set a specific cron expression. The minimum interval is one hour; expressions that run more frequently are rejected.
+
+###
+
+
+
+Add an API trigger
+
+An API trigger gives a routine a dedicated HTTP endpoint. POSTing to the endpoint with the routine’s bearer token starts a new session and returns a session URL. Use this to wire Claude Code into alerting systems, deploy pipelines, internal tools, or anywhere you can make an authenticated HTTP request. API triggers are added to an existing routine from the web. The CLI cannot currently create or revoke tokens.
+
+1
+
+Open the routine for editing
+
+Go to [claude.ai/code/routines](<https://claude.ai/code/routines>), click the routine you want to trigger via API, then click the pencil icon to open **Edit routine**.
+
+2
+
+Add an API trigger
+
+Scroll to the **Select a trigger** section below the prompt, click **Add another trigger** , and choose **API**.
+
+3
+
+Copy the URL and generate a token
+
+The modal shows the URL for this routine along with a sample curl command. Copy the URL, then click **Generate token** and copy the token immediately. The token is shown once and cannot be retrieved later, so store it somewhere secure such as your alerting tool’s secret store.
+
+4
+
+Call the endpoint
+
+Send the token in the `Authorization: Bearer` header when you POST to the URL. The Trigger a routine section below shows a complete example.
+
+Each routine has its own token, scoped to triggering that routine only. To rotate or revoke it, return to the same modal and click **Regenerate** or **Revoke**.
+
+####
+
+
+
+Trigger a routine
+
+Send a POST request to the `/fire` endpoint with the bearer token in the `Authorization` header. The request body accepts an optional `text` field for run-specific context such as an alert body or a failing log, passed to the routine alongside its saved prompt. The value is freeform text and is not parsed: if you send JSON or another structured payload, the routine receives it as a literal string. The example below triggers a routine from a shell:
+
+ curl -X POST https://api.anthropic.com/v1/claude_code/routines/trig_01ABCDEFGHJKLMNOPQRSTUVW/fire \
+ -H "Authorization: Bearer sk-ant-oat01-xxxxx" \
+ -H "anthropic-beta: experimental-cc-routine-2026-04-01" \
+ -H "anthropic-version: 2023-06-01" \
+ -H "Content-Type: application/json" \
+ -d '{"text": "Sentry alert SEN-4521 fired in prod. Stack trace attached."}'
+
+A successful request returns a JSON body with the new session ID and URL:
+
+ {
+ "type": "routine_fire",
+ "claude_code_session_id": "session_01HJKLMNOPQRSTUVWXYZ",
+ "claude_code_session_url": "https://claude.ai/code/session_01HJKLMNOPQRSTUVWXYZ"
+ }
+
+Open the session URL in a browser to watch the run in real time, review changes, or continue the conversation manually.
+
+The `/fire` endpoint ships under the `experimental-cc-routine-2026-04-01` beta header. Request and response shapes, rate limits, and token semantics may change while the feature is in research preview. Breaking changes ship behind new dated beta header versions, and the two most recent previous header versions continue to work so that callers have time to migrate.
+
+####
+
+
+
+API reference
+
+For the full API reference, including all error responses, validation rules, and field limits, see [Trigger a routine via API](<https://platform.claude.com/docs/en/api/claude-code/routines-fire>) in the Claude Platform documentation. The `/fire` endpoint is available to claude.ai users only and is not part of the Claude Platform API surface.
+
+###
+
+
+
+Add a GitHub trigger
+
+A GitHub trigger starts a new session automatically when a matching event occurs on a connected repository. Each matching event starts its own session.
+
+During the research preview, GitHub webhook events are subject to per-routine and per-account hourly caps. Events beyond the limit are dropped until the window resets. See your current limits at [claude.ai/code/routines](<https://claude.ai/code/routines>).
+
+GitHub triggers are configured from the web UI only.
+
+1
+
+Open the routine for editing
+
+Go to [claude.ai/code/routines](<https://claude.ai/code/routines>), click the routine, then click the pencil icon to open **Edit routine**.
+
+2
+
+Add a GitHub event trigger
+
+Scroll to the **Select a trigger** section, click **Add another trigger** , and choose **GitHub event**.
+
+3
+
+Install the Claude GitHub App
+
+The Claude GitHub App must be installed on the repository you want to subscribe to. The trigger setup prompts you to install it if it isn’t already.
+
+Running `/web-setup` in the CLI grants repository access for cloning, but it does not install the Claude GitHub App and does not enable webhook delivery. GitHub triggers require installing the Claude GitHub App, which the trigger setup prompts you to do.
+
+4
+
+Configure the trigger
+
+Select the repository, choose an event from the supported events list, and optionally add filters. Save the trigger.
+
+####
+
+
+
+Supported events
+
+GitHub triggers can subscribe to either of the following event categories. Within each category you can pick a specific action, such as `pull_request.opened`, or react to all actions in the category.
+
+Event| Triggers when
+---|---
+Pull request| A PR is opened, closed, assigned, labeled, synchronized, or otherwise updated
+Release| A release is created, published, edited, or deleted
+
+####
+
+
+
+Filter pull requests
+
+Use filters to narrow which pull requests start a new session. All filter conditions must match for the routine to trigger. The available filter fields are:
+
+Filter| Matches
+---|---
+Author| PR author’s GitHub username
+Title| PR title text
+Body| PR description text
+Base branch| Branch the PR targets
+Head branch| Branch the PR comes from
+Labels| Labels applied to the PR
+Is draft| Whether the PR is in draft state
+Is merged| Whether the PR has been merged
+From fork| Whether the PR comes from a fork
+
+Each filter pairs a field with an operator: equals, contains, starts with, is one of, is not one of, or matches regex. The `matches regex` operator tests the entire field value, not a substring within it. To match any title containing `hotfix`, write `.*hotfix.*`. Without the surrounding `.*`, the filter matches only a title that is exactly `hotfix` with nothing before or after. For literal substring matching without regex syntax, use the `contains` operator instead. A few example filter combinations:
+
+ * **Auth module review** : base branch `main`, head branch contains `auth-provider`. Sends any PR that touches authentication to a focused reviewer.
+ * **External contributor triage** : from fork is `true`. Routes every fork-based PR through an extra security and style review before a human looks at it.
+ * **Ready-for-review only** : is draft is `false`. Skips drafts so the routine only runs when the PR is ready for review.
+ * **Label-gated backport** : labels include `needs-backport`. Triggers a port-to-another-branch routine only when a maintainer tags the PR.
+
+####
+
+
+
+How sessions map to events
+
+Each matching GitHub event starts a new session. Session reuse across events is not available for GitHub-triggered routines, so two PR updates produce two independent sessions.
+
+##
+
+
+
+Manage routines
+
+Click a routine in the list to open its detail page. The detail page shows the routine’s repositories, connectors, prompt, schedule, API tokens, GitHub triggers, and a list of past runs.
+
+###
+
+
+
+View and interact with runs
+
+Click any run to open it as a full session. From there you can see what Claude did, review changes, create a pull request, or continue the conversation. Each run session works like any other session: use the dropdown menu next to the session title to rename, archive, or delete it.
+
+###
+
+
+
+Edit and control routines
+
+From the routine detail page you can:
+
+ * Click **Run now** to start a run immediately without waiting for the next scheduled time.
+ * Use the toggle in the **Repeats** section to pause or resume the schedule. Paused routines keep their configuration but don’t run until you re-enable them.
+ * Click the pencil icon to open **Edit routine** and change the name, prompt, repositories, environment, connectors, or any of the routine’s triggers. The **Select a trigger** section is where you add or remove schedules, API tokens, and GitHub event triggers.
+ * Click the delete icon to remove the routine. Past sessions created by the routine remain in your session list.
+
+###
+
+
+
+Repositories and branch permissions
+
+Routines need GitHub access to clone repositories. When you create a routine from the CLI with `/schedule`, Claude checks whether your account has GitHub connected and prompts you to run `/web-setup` if it doesn’t. See [GitHub authentication options](</docs/en/claude-code-on-the-web#github-authentication-options>) for the two ways to grant access. Each repository you add is cloned on every run. Claude starts from the repository’s default branch unless your prompt specifies otherwise. By default, Claude can only push to branches prefixed with `claude/`. This prevents routines from accidentally modifying protected or long-lived branches. To remove this restriction for a specific repository, enable **Allow unrestricted branch pushes** for that repository when creating or editing the routine.
+
+###
+
+
+
+Connectors
+
+Routines can use your connected MCP connectors to read from and write to external services during each run. For example, a routine that triages support requests might read from a Slack channel and create issues in Linear. When you create a routine, all of your currently connected connectors are included by default. Remove any that aren’t needed to limit which tools Claude has access to during the run. You can also add connectors directly from the routine form. To manage or add connectors outside of the routine form, visit **Settings > Connectors** on claude.ai or use `/schedule update` in the CLI.
+
+###
+
+
+
+Environments
+
+Each routine runs in a [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) that controls network access, environment variables, and setup scripts. Configure environments before creating a routine to give Claude access to APIs, install dependencies, or restrict network scope. See [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for the full setup guide.
+
+##
+
+
+
+Usage and limits
+
+Routines draw down subscription usage the same way interactive sessions do. In addition to the standard subscription limits, routines have a daily cap on how many runs can start per account. See your current consumption and remaining daily routine runs at [claude.ai/code/routines](<https://claude.ai/code/routines>) or [claude.ai/settings/usage](<https://claude.ai/settings/usage>). When a routine hits the daily cap or your subscription usage limit, organizations with extra usage enabled can keep running routines on metered overage. Without extra usage, additional runs are rejected until the window resets. Enable extra usage from **Settings > Billing** on claude.ai.
+
+##
+
+
+
+Related resources
+
+ * [`/loop` and in-session scheduling](</docs/en/scheduled-tasks>): schedule local tasks within an open CLI session
+ * [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>): local scheduled tasks that run on your machine with access to local files
+ * [Cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>): configure the runtime environment for cloud sessions
+ * [MCP connectors](</docs/en/mcp>): connect external services like Slack, Linear, and Google Drive
+ * [GitHub Actions](</docs/en/github-actions>): run Claude in your CI pipeline on repository events
--- a/scheduled-tasks.md
+++ b/scheduled-tasks.md
@@ -1,6 +1,6 @@
Scheduled tasks require Claude Code v2.1.72 or later. Check your version with `claude --version`.
-Scheduled tasks let Claude re-run a prompt automatically on an interval. Use them to poll a deployment, babysit a PR, check back on a long-running build, or remind yourself to do something later in the session. To react to events as they happen instead of polling, see [Channels](</docs/en/channels>): your CI can push the failure into the session directly. Tasks are session-scoped: they live in the current Claude Code process and are gone when you exit. For durable scheduling that survives restarts, use [Cloud](</docs/en/web-scheduled-tasks>) or [Desktop](</docs/en/desktop-scheduled-tasks>) scheduled tasks, or [GitHub Actions](</docs/en/github-actions>).
+Scheduled tasks let Claude re-run a prompt automatically on an interval. Use them to poll a deployment, babysit a PR, check back on a long-running build, or remind yourself to do something later in the session. To react to events as they happen instead of polling, see [Channels](</docs/en/channels>): your CI can push the failure into the session directly. Tasks are session-scoped: they live in the current Claude Code process and are gone when you exit. For durable scheduling that survives restarts, use [Routines](</docs/en/routines>), [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>), or [GitHub Actions](</docs/en/github-actions>).
##
@@ -10,7 +10,7 @@
Claude Code offers three ways to schedule recurring work:
-| [Cloud](</docs/en/web-scheduled-tasks>)| [Desktop](</docs/en/desktop-scheduled-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
+| [Cloud](</docs/en/routines>)| [Desktop](</docs/en/desktop-scheduled-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
---|---|---|---
Runs on| Anthropic cloud| Your machine| Your machine
Requires machine on| No| Yes| Yes
@@ -173,7 +173,7 @@
Seven-day expiry
-Recurring tasks automatically expire 7 days after creation. The task fires one final time, then deletes itself. This bounds how long a forgotten loop can run. If you need a recurring task to last longer, cancel and recreate it before it expires, or use [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>) or [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>) for durable scheduling.
+Recurring tasks automatically expire 7 days after creation. The task fires one final time, then deletes itself. This bounds how long a forgotten loop can run. If you need a recurring task to last longer, cancel and recreate it before it expires, or use [Routines](</docs/en/routines>) or [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>) for durable scheduling.
##
@@ -216,6 +216,6 @@
For cron-driven automation that needs to run unattended:
- * [Cloud scheduled tasks](</docs/en/web-scheduled-tasks>): run on Anthropic-managed infrastructure
+ * [Routines](</docs/en/routines>): run on Anthropic-managed infrastructure on a schedule, via API call, or on GitHub events
* [GitHub Actions](</docs/en/github-actions>): use a `schedule` trigger in CI
* [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>): run locally on your machine
--- a/settings.md
+++ b/settings.md
@@ -177,7 +177,7 @@
`awsCredentialExport`| Custom script that outputs JSON with AWS credentials (see [advanced credential configuration](</docs/en/amazon-bedrock#advanced-credential-configuration>))| `/bin/generate_aws_grant.sh`
`blockedMarketplaces`| (Managed settings only) Blocklist of marketplace sources. Blocked sources are checked before downloading, so they never touch the filesystem. See [Managed marketplace restrictions](</docs/en/plugin-marketplaces#managed-marketplace-restrictions>)| `[{ "source": "github", "repo": "untrusted/plugins" }]`
`channelsEnabled`| (Managed settings only) Allow [channels](</docs/en/channels>) for Team and Enterprise users. Unset or `false` blocks channel message delivery regardless of what users pass to `--channels`| `true`
-`cleanupPeriodDays`| Session files older than this period are deleted at startup (default: 30 days, minimum 1). Setting to `0` is rejected with a validation error. Also controls the age cutoff for automatic removal of [orphaned subagent worktrees](</docs/en/common-workflows#worktree-cleanup>) at startup. To disable transcript writes entirely in non-interactive mode (`-p`), use the `--no-session-persistence` flag or the `persistSession: false` SDK option; there is no interactive-mode equivalent.| `20`
+`cleanupPeriodDays`| Session files older than this period are deleted at startup (default: 30 days, minimum 1). Setting to `0` is rejected with a validation error. Also controls the age cutoff for automatic removal of [orphaned subagent worktrees](</docs/en/common-workflows#worktree-cleanup>) at startup. To disable transcript writes entirely, set the [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](</docs/en/env-vars>) environment variable, or in non-interactive mode (`-p`) use the `--no-session-persistence` flag or the `persistSession: false` SDK option.| `20`
`companyAnnouncements`| Announcement to display to users at startup. If multiple announcements are provided, they will be cycled through at random.| `["Welcome to Acme Corp! Review our code guidelines at docs.acme.com"]`
`defaultShell`| Default shell for input-box `!` commands. Accepts `"bash"` (default) or `"powershell"`. Setting `"powershell"` routes interactive `!` commands through PowerShell on Windows. Requires `CLAUDE_CODE_USE_POWERSHELL_TOOL=1`. See [PowerShell tool](</docs/en/tools-reference#powershell-tool>)| `"powershell"`
`deniedMcpServers`| When set in managed-settings.json, denylist of MCP servers that are explicitly blocked. Applies to all scopes including managed servers. Denylist takes precedence over allowlist. See [Managed MCP configuration](</docs/en/mcp#managed-mcp-configuration>)| `[{ "serverName": "filesystem" }]`
@@ -201,6 +201,7 @@
`includeCoAuthoredBy`| **Deprecated** : Use `attribution` instead. Whether to include the `co-authored-by Claude` byline in git commits and pull requests (default: `true`)| `false`
`includeGitInstructions`| Include built-in commit and PR workflow instructions and the git status snapshot in Claude’s system prompt (default: `true`). Set to `false` to remove both, for example when using your own git workflow skills. The `CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS` environment variable takes precedence over this setting when set| `false`
`language`| Configure Claude’s preferred response language (e.g., `"japanese"`, `"spanish"`, `"french"`). Claude will respond in this language by default. Also sets the [voice dictation](</docs/en/voice-dictation#change-the-dictation-language>) language| `"japanese"`
+`minimumVersion`| Prevent the auto-updater from downgrading below a specific version. Automatically set when switching to the stable channel and choosing to stay on the current version until stable catches up. Used with `autoUpdatesChannel`| `"2.1.85"`
`model`| Override the default model to use for Claude Code| `"claude-sonnet-4-6"`
`modelOverrides`| Map Anthropic model IDs to provider-specific model IDs such as Bedrock inference profile ARNs. Each model picker entry uses its mapped value when calling the provider API. See [Override model IDs per version](</docs/en/model-config#override-model-ids-per-version>)| `{"claude-opus-4-6": "arn:aws:bedrock:..."}`
`otelHeadersHelper`| Script to generate dynamic OpenTelemetry headers. Runs at startup and periodically (see [Dynamic headers](</docs/en/monitoring-usage#dynamic-headers>))| `/bin/generate_otel_headers.sh`
--- a/setup.md
+++ b/setup.md
@@ -55,7 +55,7 @@
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
-If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. Use the PowerShell command above instead. Your prompt shows `PS C:\` when you’re in PowerShell.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
+If you see `The token '&&' is not a valid statement separator`, you’re in PowerShell, not CMD. If you see `'irm' is not recognized as an internal or external command`, you’re in CMD, not PowerShell. Your prompt shows `PS C:\` when you’re in PowerShell and `C:\` without the `PS` when you’re in CMD.**Native Windows setups require[Git for Windows](<https://git-scm.com/downloads/win>).** Install it first if you don’t have it. WSL setups do not need it.
Native installations automatically update in the background to keep you on the latest version.
--- a/typescript.md
+++ b/typescript.md
@@ -2343,7 +2343,7 @@
message: string;
};
-Returns information about the created git worktree.
+Returns information about the git worktree.
##
--- a/web-quickstart.md
+++ b/web-quickstart.md
@@ -109,7 +109,7 @@
/web-setup
-This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/web-scheduled-tasks>).
+This syncs your `gh` token to your Claude account. If you don’t have a cloud environment yet, `/web-setup` creates one with Trusted network access and no setup script. You can [edit the environment or add variables](</docs/en/claude-code-on-the-web#configure-your-environment>) afterward. Once `/web-setup` completes, you can start cloud sessions from your terminal with [`--remote`](</docs/en/claude-code-on-the-web#from-terminal-to-web>) or set up recurring tasks with [`/schedule`](</docs/en/routines>).
##
@@ -252,6 +252,6 @@
Now that you can submit and review tasks, these pages cover what comes next: starting cloud sessions from your terminal, scheduling recurring work, and giving Claude standing instructions.
* [Use Claude Code on the web](</docs/en/claude-code-on-the-web>): the full reference, including teleporting sessions to your terminal, setup scripts, environment variables, and network config
- * [Schedule tasks on the web](</docs/en/web-scheduled-tasks>): automate recurring work like daily PR reviews and dependency audits
+ * [Routines](</docs/en/routines>): automate work on a schedule, via API call, or in response to GitHub events
* [CLAUDE.md](</docs/en/memory>): give Claude persistent instructions and context that load at the start of every session
* Install the Claude mobile app for [iOS](<https://apps.apple.com/us/app/claude-by-anthropic/id6473753684>) or [Android](<https://play.google.com/store/apps/details?id=com.anthropic.claude>) to monitor sessions from your phone. From the Claude Code CLI, `/mobile` shows a QR code.
Show diff (181 lines)
--- a/web-scheduled-tasks.md
+++ b/web-scheduled-tasks.md
@@ -1,178 +0,0 @@
-A scheduled task runs a prompt on a recurring cadence using Anthropic-managed infrastructure. Tasks keep working even when your computer is off. A few examples of recurring work you can automate:
-
- * Reviewing open pull requests each morning
- * Analyzing CI failures overnight and surfacing summaries
- * Syncing documentation after PRs merge
- * Running dependency audits every week
-
-Scheduled tasks are available to all Claude Code on the web users, including Pro, Max, Team, and Enterprise.
-
-##
-
-
-
-Compare scheduling options
-
-Claude Code offers three ways to schedule recurring work:
-
-| [Cloud](</docs/en/web-scheduled-tasks>)| [Desktop](</docs/en/desktop-scheduled-tasks>)| [`/loop`](</docs/en/scheduled-tasks>)
----|---|---|---
-Runs on| Anthropic cloud| Your machine| Your machine
-Requires machine on| No| Yes| Yes
-Requires open session| No| No| Yes
-Persistent across restarts| Yes| Yes| No (session-scoped)
-Access to local files| No (fresh clone)| Yes| Yes
-MCP servers| Connectors configured per task| [Config files](</docs/en/mcp>) and connectors| Inherits from session
-Permission prompts| No (runs autonomously)| Configurable per task| Inherits from session
-Customizable schedule| Via `/schedule` in the CLI| Yes| Yes
-Minimum interval| 1 hour| 1 minute| 1 minute
-
-Use **cloud tasks** for work that should run reliably without your machine. Use **Desktop tasks** when you need access to local files and tools. Use **`/loop`** for quick polling during a session.
-
-##
-
-
-
-Create a scheduled task
-
-You can create a scheduled task from three places:
-
- * **Web** : visit [claude.ai/code/scheduled](<https://claude.ai/code/scheduled>) and click **New scheduled task**
- * **Desktop app** : open the **Schedule** page, click **New task** , and choose **New remote task**. See [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>) for details.
- * **CLI** : run `/schedule` in any session. Claude walks you through the setup conversationally. You can also pass a description directly, like `/schedule daily PR review at 9am`.
-
-The web and Desktop entry points open a form. The CLI collects the same information through a guided conversation. The steps below walk through the web interface.
-
-1
-
-Open the creation form
-
-Visit [claude.ai/code/scheduled](<https://claude.ai/code/scheduled>) and click **New scheduled task**.
-
-2
-
-Name the task and write the prompt
-
-Give the task a descriptive name and write the prompt Claude runs each time. The prompt is the most important part: the task runs autonomously, so the prompt must be self-contained and explicit about what to do and what success looks like.The prompt input includes a model selector. Claude uses this model for each run of the task.
-
-3
-
-Select repositories
-
-Add one or more GitHub repositories for Claude to work in. Each repository is cloned at the start of a run, starting from the default branch. Claude creates `claude/`-prefixed branches for its changes. To allow pushes to any branch, enable **Allow unrestricted branch pushes** for that repository.
-
-4
-
-Select an environment
-
-Select a [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for the task. Environments control what the cloud session has access to:
-
- * **Network access** : set the level of internet access available during each run
- * **Environment variables** : provide API keys, tokens, or other secrets Claude can use
- * **Setup script** : run install commands before each session starts, like installing dependencies or configuring tools
-
-A **Default** environment is available out of the box. To use a custom environment, [create one](</docs/en/claude-code-on-the-web#the-cloud-environment>) before creating the task.
-
-5
-
-Choose a schedule
-
-Pick how often the task runs from the frequency options. The default is daily at 9:00 AM in your local time zone. Tasks may run a few minutes after their scheduled time due to stagger.If the preset options don’t fit your needs, pick the closest one and update the schedule from the CLI with `/schedule update` to set a specific schedule.
-
-6
-
-Review connectors
-
-All of your connected [MCP connectors](</docs/en/mcp>) are included by default. Remove any that the task doesn’t need. Connectors give Claude access to external services like Slack, Linear, or Google Drive during each run.
-
-7
-
-Create the task
-
-Click **Create**. The task appears in the scheduled tasks list and runs automatically at the next scheduled time. Each run creates a new session alongside your other sessions, where you can see what Claude did, review changes, and create a pull request. To trigger a run immediately, click **Run now** from the task’s detail page.
-
-###
-
-
-
-Frequency options
-
-The schedule picker offers preset frequencies that handle time zone conversion for you. Pick a time in your local zone and the task runs at that wall-clock time regardless of where the cloud infrastructure is located.
-
-Tasks may run a few minutes after their scheduled time. The offset is consistent for each task.
-
-Frequency| Description
----|---
-Hourly| Runs every hour.
-Daily| Runs once per day at the time you specify. Defaults to 9:00 AM local time.
-Weekdays| Same as Daily but skips Saturday and Sunday.
-Weekly| Runs once per week on the day and time you specify.
-
-For custom intervals like every 2 hours or first of each month, pick the closest preset and update the schedule from the CLI with `/schedule update` to set a specific cron expression. The minimum interval is 1 hour. Expressions that fire more frequently, such as `*/30 * * * *`, are rejected.
-
-###
-
-
-
-Repositories and branch permissions
-
-Scheduled tasks need GitHub access to clone repositories. When you create a task from the CLI with `/schedule`, Claude checks whether your account has GitHub connected and prompts you to run `/web-setup` if it doesn’t. See [GitHub authentication options](</docs/en/claude-code-on-the-web#github-authentication-options>) for the two ways to grant access. Each repository you add is cloned on every run. Claude starts from the repository’s default branch unless your prompt specifies otherwise. By default, Claude can only push to branches prefixed with `claude/`. This prevents scheduled tasks from accidentally modifying protected or long-lived branches. To remove this restriction for a specific repository, enable **Allow unrestricted branch pushes** for that repository when creating or editing the task.
-
-###
-
-
-
-Connectors
-
-Scheduled tasks can use your connected MCP connectors to read from and write to external services during each run. For example, a task that triages support requests might read from a Slack channel and create issues in Linear. When you create a task, all of your currently connected connectors are included by default. Remove any that aren’t needed to limit which tools Claude has access to during the run. You can also add connectors directly from the task form. To manage or add connectors outside of the task form, visit **Settings > Connectors** on claude.ai or use `/schedule update` in the CLI.
-
-###
-
-
-
-Environments
-
-Each task runs in a [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) that controls network access, environment variables, and setup scripts. Configure environments before creating a task to give Claude access to APIs, install dependencies, or restrict network scope. See [cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>) for the full setup guide.
-
-##
-
-
-
-Manage scheduled tasks
-
-Click a task in the **Scheduled** list to open its detail page. The detail page shows the task’s repositories, connectors, prompt, schedule, and a list of past runs.
-
-###
-
-
-
-View and interact with runs
-
-Click any run to open it as a full session. From there you can see what Claude did, review changes, create a pull request, or continue the conversation. Each run session works like any other session: use the dropdown menu next to the session title to rename, archive, or delete it.
-
-###
-
-
-
-Edit and control tasks
-
-From the task detail page you can:
-
- * Click **Run now** to start a run immediately without waiting for the next scheduled time.
- * Use the toggle in the **Repeats** section to pause or resume the schedule. Paused tasks keep their configuration but don’t run until you re-enable them.
- * Click the edit icon to change the name, prompt, schedule, repositories, environment, or connectors.
- * Click the delete icon to remove the task. Past sessions created by the task remain in your session list.
-
-You can also manage tasks from the CLI with `/schedule`. Run `/schedule list` to see all tasks, `/schedule update` to change a task, or `/schedule run` to trigger one immediately.
-
-##
-
-
-
-Related resources
-
- * [Desktop scheduled tasks](</docs/en/desktop-scheduled-tasks>): schedule tasks that run on your machine with access to local files. The Desktop app’s **Schedule** page shows both local and remote tasks in the same grid.
- * [`/loop` and CLI scheduled tasks](</docs/en/scheduled-tasks>): lightweight scheduling within a CLI session
- * [Cloud environment](</docs/en/claude-code-on-the-web#the-cloud-environment>): configure the runtime environment for cloud tasks
- * [MCP connectors](</docs/en/mcp>): connect external services like Slack, Linear, and Google Drive
- * [GitHub Actions](</docs/en/github-actions>): run Claude in your CI pipeline on repo events