sandbox.ripgrep

settings.json型object記述場所ユーザー設定または管理者設定

Claude Code のバンドルされた ripgrep サポート用のカスタム設定を上書きします。

含まれる設定

2件
  • argsstring[]ripgrepバイナリに渡す追加のコマンドライン引数を指定します。
  • commandstring使用するripgrepバイナリへのパスを指定し、同梱されているバイナリを上書きします。

記述例

{
  "sandbox": {
    "ripgrep": {
      "command": "/usr/local/bin/rg"
    }
  }
}

使い方・用途

  • sandbox.ripgrep.command でカスタムの ripgrep バイナリパスを指定する
  • sandbox.ripgrep.args で追加の引数を指定する
  • プロジェクト設定ファイル(.claude/settings.json)による上書きは無視され、ユーザー設定、管理ポリシー、または --settings フラグからのみ制御可能
英語原文

Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments.

関連ドキュメント

関連する変更履歴

v2.1.275(1件)

20MB の出力上限を超える検索で Grep、Glob、@ファイル候補がハングまたはメモリ不足になる問題と、大量の警告の後でシステムの ripgrep がエラーではなく「no matches」と報告する問題を修正した
英語原文を表示
Fixed Grep, Glob and @-file suggestions hanging or running out of memory on searches over the 20MB output cap, and system ripgrep reporting "no matches" instead of an error after a flood of warnings

v2.1.271(1件)

[VSCode] 拡張機能が git、ripgrep、サインイン状態チェックなどのバックグラウンドコマンドを実行する際に、Windows でコンソールウィンドウが点滅する問題を修正しました
英語原文を表示
[VSCode] Fixed console windows flashing on Windows when the extension runs background commands such as git, ripgrep, and the sign-in status check

関連ドキュメント

v2.1.267(1件)

[VSCode] 大規模なワークスペースやシンボリックリンクが多いワークスペースでファイルを表示した際に、ripgrep プロセスが暴走する問題を修正した
英語原文を表示
[VSCode] Fixed runaway ripgrep processes when viewing files in large or symlink-heavy workspaces

v2.1.257(1件)

managedSourcesBehavior: 'merge' の挙動を変更し、sandbox.credentials.awsPairs と sandbox.ripgrep についてソース間の値を合成する代わりに、それらを設定している最上位の管理ソースからの値を丸ごと採用するようになった
英語原文を表示
Changed managedSourcesBehavior: "merge" to take sandbox.credentials.awsPairs and sandbox.ripgrep whole from the highest managed source that sets them instead of combining the sources' values

変更後

managedSourcesBehavior: 'merge' を使う場合、sandbox.credentials.awsPairs や sandbox.ripgrep が上位の管理ソースの値で一括して決まるようになり、複数ソースの値が混ざって意図しない設定になるのを防げる。

v2.1.232(2件)

管理設定の承認ダイアログを改善した。エンドポイント URL を表示し、テレメトリのみの変更についてはより明確な文言を使い、日常的な OpenTelemetry の項目はスキップし、サーバー管理のサンドボックスバイナリ上書き(sandbox.bwrapPath、sandbox.socatPath、sandbox.ripgrep)には承認を要求するようになった
英語原文を表示
Improved the managed settings approval dialog: shows endpoint URLs, uses clearer wording for telemetry-only changes, skips routine OpenTelemetry options, and requires approval for server-managed sandbox binary overrides (sandbox.bwrapPath, sandbox.socatPath, sandbox.ripgrep)

変更後

組織から配信される設定の承認ダイアログで、どのエンドポイント URL に接続しようとしているのかを確認できるようになり、テレメトリ関連の変更については意図が明確な表現で判断できる。日常的な OpenTelemetry 設定変更では不要な承認を求められず、サンドボックスの実行バイナリ設定がサーバー側から差し替えられた場合には必ず承認を経るため、セキュリティ上の重要な変更を見逃さずに済む。

sandbox.ripgrep をユーザー設定・管理設定・--settings の設定からのみ有効になるように変更した。プロジェクト設定はサンドボックスの ripgrep バイナリを上書きできなくなった
英語原文を表示
Changed sandbox.ripgrep to be honored only from user, managed, and --settings settings; project settings can no longer override the sandbox's ripgrep binary

変更後

プロジェクトの設定ではサンドボックスが使用する ripgrep バイナリを上書きできなくなり、ユーザー・管理設定や --settings での指定だけが有効になる。これにより、悪意あるリポジトリ側の設定で任意の実行ファイルをサンドボックスの ripgrep として差し込まれるリスクがなくなった。

v2.1.101(1件)

埋め込みripgrepバイナリのパスが古くなった際にGrepツールが失敗する問題を修正(自動修復機能を追加)
英語原文を表示
Fixed Grep tool ENOENT when the embedded ripgrep binary path becomes stale (VS Code extension auto-update, macOS App Translocation); now falls back to system rg and self-heals mid-session

変更後

ツールの内部的な整合性を気にすることなく、常に安定したコード検索機能を利用できます。

関連ドキュメント

v2.1.73(1件)

ネイティブビルドのLinux版で「ripgrep (rg) が見つからない」というエラーによりサンドボックスが起動しない問題を修正しました。
英語原文を表示
Fixed Linux sandbox failing to start with "ripgrep (rg) not found" on native builds

v2.1.23(1件)

ripgrep検索のタイムアウトが、エラーを報告せずに黙って空の結果を返す問題が修正されました。
英語原文を表示
Fixed ripgrep search timeouts silently returning empty results instead of reporting errors

v2.0.30(1件)

Removed support for custom ripgrep configuration, resolving an issue where Search returns no results and config discovery fails

v1.0.84(1件)

Use built-in ripgrep by default; to opt out of this behavior, set USE_BUILTIN_RIPGREP=0

v1.0.73(1件)

Linux: Added support for Alpine and musl-based distributions (requires separate ripgrep installation)

v1.0.70(1件)

Windows: Fixed native file search, ripgrep, and subagent functionality