3 ファイル変更 +5 -1

この更新の概要

コードレビュー機能がアップデートされ、以前はsimplifyと呼ばれていたコマンドがcode-reviewに統合されました。サンドボックス環境においてGitワークツリーがサポートされ、メインリポジトリの共有.gitディレクトリへの書き込みが一部許可されるよう改善されています。また、シェルの起動ファイルで定義されたエイリアスや関数が、Claude Code内のBash実行環境でも利用可能になりました。これらの変更により、ローカルでの開発効率とコマンド実行の柔軟性が向上しています。

code-review +3 -1

コマンド名がsimplifyからcode-reviewに変更され、GitHub Appなしでローカルの差分をレビューする方法が明記されました。

@@ -24,6 +24,8 @@ This page covers:
- [Pricing](#pricing)
- [Troubleshooting](#troubleshooting) failed runs and missing comments
To review a diff locally in your terminal without installing the GitHub App, run the [`/code-review` command](/en/commands) in any Claude Code session. It reports correctness bugs in the current diff at a chosen effort level and can post findings as inline PR comments with `--comment`. The command was named `/simplify` before v2.1.147.
## How reviews work
Once an admin [enables Code Review](#set-up-code-review) for your organization, reviews trigger when a PR opens, on every push, or when manually requested, depending on the repository's configured behavior. Commenting `@claude review` [starts reviews on a PR](#manually-trigger-reviews) in any mode.
@@ -261,7 +263,7 @@ If the check run title says issues were found but you don't see inline review co
Code Review is designed to work alongside the rest of Claude Code. If you want to run reviews locally before opening a PR, need a self-hosted setup, or want to go deeper on how `CLAUDE.md` shapes Claude's behavior across tools, these pages are good next stops:
- [Plugins](/en/discover-plugins): browse the plugin marketplace, including a `code-review` plugin for running on-demand reviews locally before pushing
- [Commands](/en/commands): run `/code-review` in a local Claude Code session to check a diff before pushing
- [GitHub Actions](/en/github-actions): run Claude in your own GitHub Actions workflows for custom automation beyond code review
- [GitLab CI/CD](/en/gitlab-ci-cd): self-hosted Claude integration for GitLab pipelines
- [Memory](/en/memory): how `CLAUDE.md` files work across Claude Code
sandboxing +1 -0

Gitワークツリー使用時に共有.gitディレクトリへの一部書き込みを許可し、git commitなどのコマンド実行を可能にする設定が追加されました。

@@ -175,6 +175,7 @@ The sandboxed Bash tool restricts file system access to specific directories:
- **Default write behavior**: read and write access to the current working directory and its subdirectories
- **Default read behavior**: read access to the entire computer, except certain denied directories. Note that this default still allows reading credential files such as `~/.aws/credentials` and `~/.ssh/`. Add them to `denyRead` to block them.
- **Blocked access**: cannot modify files outside the current working directory without explicit permission, including shell configuration files such as `~/.bashrc` and system binaries in `/bin/`
- **Git worktrees**: when the working directory is a [linked git worktree](/en/worktrees), the sandbox also allows writes to the 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.
- **Configurable**: define custom allowed and denied paths through settings
You can grant write access to additional paths using `sandbox.filesystem.allowWrite` in your settings. These restrictions are enforced at the OS level, so they apply to all subprocess commands, including tools like `kubectl`, `terraform`, and `npm`, not just Claude's file tools.
tools-reference +1 -0

シェルの起動ファイルからエイリアスや関数を自動的に読み込み、すべてのBashコマンドで利用可能にする仕組みが解説されています。

@@ -112,6 +112,7 @@ The Bash tool runs each command in a separate process with the following persist
- If `cd` lands outside those directories, Claude Code resets to the project directory and appends `Shell cwd was reset to <dir>` to the tool result.
- To disable this carry-over so every Bash command starts in the project directory, set `CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR=1`.
- Environment variables do not persist. An `export` in one command will not be available in the next.
- Aliases and shell functions defined in your shell startup file are available. At session start, Claude Code sources `~/.zshrc`, `~/.bashrc`, or `~/.profile` depending on your shell, captures the resulting aliases, functions, and shell options, and applies them to every Bash command.
Activate your virtualenv or conda environment before launching Claude Code. To make environment variables persist across Bash commands, set [`CLAUDE_ENV_FILE`](/en/env-vars) to a shell script before launching Claude Code, or use a [SessionStart hook](/en/hooks#persist-environment-variables) to populate it dynamically.