Tutorial

Search prompts

Search user prompts across all supported stores:

$ uv run agentgrep search "draft pr"

Search only Codex prompts:

$ uv run agentgrep search "draft pr" --agent codex --type prompts

Search history

Search assistant and command history:

$ uv run agentgrep search "pytest" --type history

Search prompts and history together:

$ uv run agentgrep search "docs" --type all

Combine terms

Require every term:

$ uv run agentgrep search docs deploy

Match any term:

$ uv run agentgrep search docs deploy --any

Use regular expressions:

$ uv run agentgrep search "docs?.*deploy" --regex

Return structured output

Pretty JSON:

$ uv run agentgrep search "release" --json

Line-delimited JSON:

$ uv run agentgrep search "release" --ndjson