# OpenCLI Agent Pack: ripgrep

Use this when an AI agent needs to work with `rg`.

## What this CLI is for
Code search, fast grep, and agent codebase scans from the terminal. Built by BurntSushi.

Best for: code search, fast grep, and agent codebase scans from the terminal.

## Agent readiness
Usable with guardrails (50/100)
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.

## Install
```sh
brew install ripgrep
```

## Verify before real work
```sh
rg --version
```
Expected signal: ripgrep responds and can search local files.

## Safe starting commands
```sh
rg --version
```

```sh
rg TODO src
```

## Guardrails for agents
- Prefer small commands and ask the agent to summarize plain text output.

## Suggested agent instruction
You may use ripgrep (`rg`) for code search, fast grep, and agent codebase scans from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
