# AGENTS.md instructions for 用于快速仓库搜索的 ripgrep

Use 用于快速仓库搜索的 ripgrep only for: 高速递归搜索 CLI，帮助 Agent 定位代码路径、文档、测试和既有模式。

## 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.