agentgrep

Read-only search for local AI agent prompts and history across Codex, Claude Code, Cursor, Gemini, and Grok.

Warning

Pre-alpha. APIs may change. Feedback welcome.

With uvx run installed:

$ uvx agentgrep --help

Then run it from the terminal:

$ uvx agentgrep search "deploy"
$ uvx agentgrep search --agent claude --json "deploy"
$ uvx agentgrep find --json

With uvx installed:

$ claude mcp add agentgrep -- uvx --from agentgrep agentgrep-mcp
Quickstart

Run a first search and inspect the result shape.

Getting Started
CLI

Search and find from the terminal. Pipe --json / --ndjson for scripts and agents.

CLI
TUI

Interactive Textual explorer for browsing prompts and history.

TUI
MCP

Tools, resources, and prompts for MCP clients.

MCP
Library

Tutorial, how-to, reference, and examples for the Python library.

Library
Client Setup

Config snippets for local MCP clients.

MCP Clients
Configuration

Search behavior, privacy, output, and progress controls.

Configuration
Backends

Per-agent store layouts, record schemas, and support matrix.

Backends

What you can do

Discovery readonly

List the stores, session files, and SQLite databases that agentgrep can read.

find

MCP guidance

Use prompts for common agent workflows:

search_prompts · search_history · inspect_stores