CLI Finder / tools / ripgrep

高速リポジトリ検索のための ripgrep

Agent がコード、ドキュメント、テスト、既存パターンを探すための高速再帰検索 CLI。

Agent 適合度: 94/100 継続的にメンテナンス中
94 /100

A safe default discovery tool for coding agents because it is fast, read-only, and scriptable.

Structured output 86/100

Whether the CLI can return JSON, YAML, or stable machine-readable output.

Non-interactive use 98/100

Whether common workflows can run predictably without an interactive prompt.

Safety boundaries 96/100

Whether read-only, dry-run, scoped auth, and destructive command boundaries are clear.

インストール方法

Homebrew $ brew install ripgrep
Debian/Ubuntu $ sudo apt install ripgrep

よく使うコマンド

Search code · 安全 $ rg "functionName" src

Finds matching source lines quickly.

JSON search · 安全 $ rg --json "TODO" src

Returns machine-readable search events.

Agent 使用例

Codex CLI Use rg before editing to find existing patterns, helpers, and tests. Prefer scoped searches over full-repo broad queries.

安全メモ

  • ripgrep is read-only and safe for repository exploration.
  • Agents should use narrow paths and patterns to avoid noisy results.

Agent が使えること

ripgrep は read-only、高速、大規模リポジトリ対応のため、コーディング Agent の初手に適しています。

向いている用途

編集前の検索、コードレビュー、機能所有箇所の追跡に適しています。