Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

264 pages for commit.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Deploy managed settings Claude Code CLI · in the page managed-settings …source can raise the cap. Requires Claude Code v2.1.267 or later * A commit-trailer opt-out in `attribution`, or in the deprecated `includeCoAuthoredBy`, from any tier * [`forceRemoteSettingsRefresh`… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …the entry under `mcpServers` in `.mcp.json` at your project root and commit it. [Project scope](#project-scope) covers how Claude Code loads and approves that file. Each `claude mcp add` and `claude… Connect to MCP servers Claude Code CLI · in the page mcp-quickstart …transport http claude-code-docs https://code.claude.com/docs/mcp ``` Commit `.mcp.json` to version control. Teammates who clone the repository and start Claude Code see a prompt to approve the server… How Claude remembers your project Claude Code CLI · in the page memory …dentation" instead of "Format code properly" * "Run `npm test` before committing" instead of "Test your changes" * "API handlers live in `src/api/handlers/`" instead of "Keep files organized" Keep yo… Monitoring Claude Code CLI · in the page monitoring-usage …uest.count` | Number of pull requests created | none | | `claude_code.commit.count` | Number of git commits created | none | | `claude_code.cost.usage` | Cost of the Claude Code session | USD | | `cla… Overview Claude Code CLI · in the page overview …rkflows](/docs/en/common-workflows.md) for more examples. > **Create commits and pull requests** > > Claude Code works directly with git. It stages changes, writes commit messages, creates branches,… Choose a permission mode Claude Code CLI · in the page permission-modes …sibly destroying files that existed before the session * Force push * Committing or pushing a change that would send secrets or sensitive data outside the repository when it runs, or widen what a depl… Configure permissions Claude Code CLI · in the page permissions …th `*`. With this configuration, Claude Code runs npm scripts and git commits without asking and refuses commands that begin with `git push`. A push written another way, such as `git -C . push`, isn't… Test plugins with evals Claude Code CLI · in the page plugin-evals …rather than naming the skill. This example is for a skill that drafts commit messages; use your own request: ```markdown theme={null} --- max_turns: 10 allowed_tools: [Read, Glob, Grep, Skill] --- W… Anthropic's marketplaces Claude Code CLI · in the page plugins/anthropic-marketplaces …on, you type the marketplace's name after `@`, as in `/plugin install commit-commands@claude-plugins-official`. Use this page to distinguish the three marketplaces and to find where to check whether… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …s. Requires Claude Code v2.1.259 or later | Validate a plugin before committing it: ```bash theme={null} claude plugin validate ./my-plugin --strict ``` #### Validate a directory The `<path>` is a… Plugin dependencies Claude Code CLI · in the page plugins/dependencies …>--v<version>`, where `<version>` matches the `version` field in that commit's `plugin.json`. The plugin-name prefix lets one marketplace repository host several plugins with independent version histo… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …-org/your-marketplace --scope project` there once from your shell and commit the `.claude/settings.json` it writes. Claude Code then registers the marketplace for each teammate who [trusts the folder]… Install and manage plugins Claude Code CLI · in the page plugins/install …) first. ## Install a plugin As an example, this section installs [`commit-commands`](https://github.com/anthropics/claude-plugins-official/tree/main/plugins/commit-commands) from [Anthropic's offic… Plugin loading reference Claude Code CLI · in the page plugins/loading …of a project in every environment, set the same key in the project's committed `.claude/settings.json` * **Every synced plugin on a machine**: set [`syncClaudeAiPlugins`](/docs/en/settings-reference#… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …pository's default branch. * **`sha`**: a full 40-character lowercase commit SHA. When you set both `ref` and `sha`, Claude Code checks out `sha`. On most git hosts, including GitHub, GitLab, and Bitb… Mods reference Claude Code CLI · in the page plugins/mods/reference …for Claude | `{ text }` | | `attribution.text` | Claude Code composes commit or pull request attribution text | `{ text }` | #### Source and frontmatter fields on `skill.prompt` In a `skill.prompt`… Plugins overview Claude Code CLI · in the page plugins/overview …dd a marketplace once, then install plugins from it by name, such as `commit-commands@claude-plugins-official`. > [!NOTE] > > A plugin marketplace isn't [Claude Marketplace](https://claude.com/market… Publish and distribute a plugin Claude Code CLI · in the page plugins/publish …ou'll version** If you set `version` in `plugin.json` and later push commits without changing it, `claude plugin update` prints `<name> is already at the latest version (1.0.0).` and users keep the o… Plugin security and trust Claude Code CLI · in the page plugins/security …arketplace | Where the `claude-community` catalog pins a plugin to a commit SHA, which it does for nearly every entry, Claude Code refuses to install a different commit. ### Official marketplace nam… Troubleshoot plugins Claude Code CLI · in the page plugins/troubleshooting …s-auto-update), Claude Code checks the marketplace's git host for new commits in the background. When that check can't reach the host, it tries to clone the marketplace again, and offline that clone f… How Claude Code uses prompt caching Claude Code CLI · in the page prompt-caching …p matches, since each conversation also carries the branch and recent commits from that snapshot. The underlying API cache is broader. Caches are isolated between organizations, and on some providers… Prompt library Claude Code CLI · in the page prompt-library …, cat: 'Understand', roles: [], prompt: 'look through the commit history of {path} and summarize how it evolved and why', slots: { path: 'internal/auth/session.go' }, src… Quickstart Claude Code CLI · in the page quickstart …heme={null} what files have I changed? ``` ```text wrap theme={null} commit my changes with a descriptive message ``` You can also prompt for more complex Git operations: ```text wrap theme={null}… Continue local sessions from any device with Remote Control Claude Code CLI · in the page remote-control …connected device's diff pane shows your changes. On a branch that has commits ahead of the repository's default branch, the pane shows the changes since the branch split from it, including your uncomm… Automate work with scheduled tasks Claude Code CLI · in the page routines …re payload, so it pulls the stack trace and correlates it with recent commits in the repository. It then opens a draft pull request with a proposed fix and a link back to the alert. On-call reviews th… Choose a sandbox environment Claude Code CLI · in the page sandbox-environments …ow to keep developers from widening the policy. * **Dev containers**: commit the [example dev container](/docs/en/devcontainer.md) to your repositories to standardize the environment across a team. Th… Configure the sandboxed Bash tool Claude Code CLI · in the page sandboxing …he main repository's shared `.git` directory so commands such as `git commit` can update refs and the index. Writes to `hooks/` and `config` inside that directory remain denied. To skip filesystem is… Catch security issues as Claude writes code Claude Code CLI · in the page security-guidance …## Prerequisites * Python 3.7 or later on your `PATH`. The agentic commit review needs Python 3.10 or later, as do all model-backed reviews when Claude Code uses a third-party provider such as Amaz… Customize sessions in self-hosted environments Claude Code CLI · in the page self-hosted-environments-configuration …claim without signature verification. Suitable for labelling, such as commit trailers. When the email gates credential issuance, verify the token and read the claim from it instead. See [Provision cre… Deploy self-hosted environments to production Claude Code CLI · in the page self-hosted-environments-deploy …sion, and `off` disables the scan. The runner scans each repository's committed settings for: * A grant that resolves outside that session's own workspace: an `additionalDirectories` entry, an `Edi… Verify session identity in self-hosted environments Claude Code CLI · in the page self-hosted-environments-identity …gnature verification. The variable is suitable for labelling, such as commit trailers, not for auth decisions. Use the plain variables for orchestrator-side decisions such as selecting a machine imag… Self-hosted environments reference Claude Code CLI · in the page self-hosted-environments-reference …IT=1` | off | At startup, write global git identity, enable Anthropic commit signing, turn on git push negotiation, and install commit hooks that append a `Co-authored-by:` trailer. Push negotiation r… Test self-hosted environments end to end Claude Code CLI · in the page self-hosted-environments-testing …to `$E2E_REPLY_DIR/<session_id>.txt`. Install it the same way as the [commit-nudge Stop hook](/docs/en/self-hosted-environments-configuration.md#prompt-sessions-to-push-their-work), on the runner host… Claude Code settings Claude Code CLI · in the page settings …| Yes (committed to git) | | **Local** | `.claude/settings.local.json` at the repository root… Example settings files Claude Code CLI · in the page settings-example …loper's `~/.claude/settings.json` * A team's `.claude/settings.json`, committed to the repository * An organization's `managed-settings.json` Each one is a plausible file for that reader, so you can… All settings Claude Code CLI · in the page settings-reference …ution`](#attribution) | Customize the attribution Claude Code adds to commits and pull requests | Git and attribution | Any file | | [`attribution.commit`](#attribution-commit) | Change or hide the tr… Extend Claude with skills Claude Code CLI · in the page skills …t worked (the install commands, the env vars, the launch script), and commits it as a per-project skill at `.claude/skills/run-<name>/`. After that, `/run`, `/verify`, and any other agent in the repo… Create custom subagents Claude Code CLI · in the page sub-agents …ository, the snapshot shows the worktree's branch, status, and recent commits. Absent outside a Git repository or whenever the snapshot is turned off; see [`includeGitInstructions`](/docs/en/settings-… Find bugs with ultrareview Claude Code CLI · in the page ultrareview …diff between your current branch and the default branch, including uncommitted and staged changes. For a branch review, Claude Code bundles the repository state and uploads it to a cloud sandbox und… Use Claude Code in VS Code Claude Code CLI · in the page vs-code …elp with version control workflows directly in VS Code. Ask Claude to commit changes, create pull requests, or work across branches. To start Claude in an isolated worktree with its own files and bran… Week 13 · March 23–27, 2026 Claude Code CLI · in the page whats-new/2026-w13 …can now declare an `if` field using permission rule syntax. Your pre-commit check only spawns for `Bash(git commit *)` instead of every bash call, cutting the process overhead on busy sessions. Scop… Week 19 · May 4–8, 2026 Claude Code CLI · in the page whats-new/2026-w19 …te default branch or local `HEAD`; the default `fresh` keeps unpushed commits out of new worktreesNew `settings.autoMode.hard_deny` rules block matching actions unconditionally in auto mode, regardles… Week 22 · May 25–29, 2026 Claude Code CLI · in the page whats-new/2026-w22 …model review at the end of each turn, and a deeper agentic review on commit or push. Add project rules in `.claude/claude-security-guidance.md`. <video autoPlay muted loop playsInline src="https://m… Week 23 · June 1–5, 2026 Claude Code CLI · in the page whats-new/2026-w23 …git/`, and build-tool configs such as `.npmrc`, `.bazelrc`, and `.pre-commit-config.yaml`. These writes are never auto-approved in any mode except `bypassPermissions`. Work in acceptEdits mode; Claud… Week 25 · June 15–19, 2026 Claude Code CLI · in the page whats-new/2026-w25 …essionUrl` setting to `false` to omit the claude.ai session link from commits and PRs in web and Remote Control sessionsIn the `/config` interface, Enter and Space both change the selected setting, an… Week 27 · June 29 – July 3, 2026 Claude Code CLI · in the page whats-new/2026-w27 …f running on HaikuBackground agents launched from `claude agents` now commit, push, and open a draft PR when they finish code work in a worktree, instead of stopping to askHook matchers with hyphenate… Week 28 · July 6–10, 2026 Claude Code CLI · in the page whats-new/2026-w28 …t`/cd` now suggests directory paths as you type, matching `/add-dir``/commit-push-pr` auto-allows `git push` to the repo's configured push remote in addition to `origin`Gateway: `/login` now supports… Week 30 · July 20–24, 2026 Claude Code CLI · in the page whats-new/2026-w30 …whole repository or only a branch's diff, a pull request, or a single commit, then turn the findings you choose into reviewed patches that you apply yourself. Install the plugin from the official Ant… Week 32 · August 3–7, 2026 Claude Code CLI · in the page whats-new/2026-w32 …w.md#how-file-edits-are-isolated) that changed code in a worktree now commit and push before finishing, open a draft pull request only when the task calls for one, and follow the git instructions in y…
Feedback