# 高速リポジトリ検索のための ripgrep
Agent がコード、ドキュメント、テスト、既存パターンを探すための高速再帰検索 CLI。
Agent Readiness Score: 94/100
A safe default discovery tool for coding agents because it is fast, read-only, and scriptable.
## Install

- Homebrew: `brew install ripgrep`
- Debian/Ubuntu: `sudo apt install ripgrep`

## Structured output

Supported output formats: json, text.
Prefer structured output flags such as `--json`, `--format json`, or equivalent when available.

## Safe commands

- Search code: `rg "functionName" src` — Finds matching source lines quickly.
- JSON search: `rg --json "TODO" src` — Returns machine-readable search events.

## Agent instructions

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

## Safety notes

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

## Metadata

Official URL: https://github.com/BurntSushi/ripgrep
GitHub: https://github.com/BurntSushi/ripgrep
Docs: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md
