# AGENTS.md instructions for ripgrep for fast repository search

Use ripgrep for fast repository search only for: A fast recursive search CLI that helps agents locate code paths, docs, tests, and existing patterns.

## Default behavior

- Prefer non-interactive commands and stable output formats: json, text.
- Start with read-only inspection commands before changing state.
- Show the exact command before destructive or deployment actions.
- Require explicit user approval for commands marked `requires-review` or `destructive`.

## Useful commands

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

## Safety notes

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