Read-only search for local AI agent prompts and history (Codex, Claude Code, Cursor, Gemini, Grok)
Project description
agentgrep
Read-only search for local AI agent prompts and history across Codex, Claude Code, Cursor, Gemini, and Grok.
agentgrep provides a CLI and an MCP server over the same discovery + parsing layer:
- A terminal CLI (
agentgrep) with a Textual TUI for interactive browsing of normalized records. - An MCP server (
agentgrep-mcp) that exposes search, discovery, catalog, and validation tools to any client that speaks Model Context Protocol.
Pre-alpha. APIs may change.
Install
$ uvx agentgrep --help
Other install methods (pipx, uv add, pip install) and full setup snippets live in the installer widget on agentgrep.org/cli/.
CLI quickstart
Search prompts and history across every configured agent:
$ agentgrep grep "deploy"
Stream JSON so a non-MCP agent or shell pipeline can consume the results:
$ agentgrep find --json
Open the read-only Textual TUI for interactive browsing:
$ agentgrep grep --ui
--json and --ndjson make every command pipe-friendly. Agents that
don't speak MCP can drive the CLI directly; see
https://agentgrep.org/cli/ for the per-subcommand reference.
MCP server: quickest setup
In Claude Code:
$ claude mcp add agentgrep -- uvx --from agentgrep agentgrep-mcp
For Claude Desktop / Codex / Cursor / Gemini snippets, see https://agentgrep.org/mcp/.
Library quickstart
from pathlib import Path
import agentgrep
backends = agentgrep.select_backends()
query = agentgrep.SearchQuery(
terms=("hello",),
search_type="all",
any_term=False,
regex=False,
case_sensitive=False,
agents=agentgrep.AGENT_CHOICES,
limit=10,
)
for record in agentgrep.run_search_query(Path.home(), query, backends=backends):
print(record.agent, record.title or record.path)
Links
- Documentation: https://agentgrep.org/
- Source: https://github.com/tony/agentgrep
- Issues: https://github.com/tony/agentgrep/issues
- Changelog: CHANGES
- License: MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentgrep-0.1.0a10.tar.gz.
File metadata
- Download URL: agentgrep-0.1.0a10.tar.gz
- Upload date:
- Size: 460.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66d6a0a661c2011c58f06dfeef38c61d719487071f0fdcf4ce1c69ac5778ef6a
|
|
| MD5 |
725c778236079a60f65bb14686e6a86e
|
|
| BLAKE2b-256 |
fcd05566ea1bf7c07fb41bb2f11523cd107f8db5ee9207199b650af9a7a525b3
|
Provenance
The following attestation bundles were made for agentgrep-0.1.0a10.tar.gz:
Publisher:
tests.yml on tony/agentgrep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentgrep-0.1.0a10.tar.gz -
Subject digest:
66d6a0a661c2011c58f06dfeef38c61d719487071f0fdcf4ce1c69ac5778ef6a - Sigstore transparency entry: 1681582368
- Sigstore integration time:
-
Permalink:
tony/agentgrep@d6cf804e3c7659033f1ead9c50f93ef6e833dcf8 -
Branch / Tag:
refs/tags/v0.1.0a10 - Owner: https://github.com/tony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@d6cf804e3c7659033f1ead9c50f93ef6e833dcf8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file agentgrep-0.1.0a10-py3-none-any.whl.
File metadata
- Download URL: agentgrep-0.1.0a10-py3-none-any.whl
- Upload date:
- Size: 152.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a88824622d2b30e43320f50be445a42d197555e5d2084500d03638e46edef1f6
|
|
| MD5 |
bc87edb5a2a8c1e786487edcdca6eaa0
|
|
| BLAKE2b-256 |
73244c2b8786a2af3f383424836c769e74b91d1baefec6f8fdf1d9f4928acebe
|
Provenance
The following attestation bundles were made for agentgrep-0.1.0a10-py3-none-any.whl:
Publisher:
tests.yml on tony/agentgrep
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentgrep-0.1.0a10-py3-none-any.whl -
Subject digest:
a88824622d2b30e43320f50be445a42d197555e5d2084500d03638e46edef1f6 - Sigstore transparency entry: 1681582538
- Sigstore integration time:
-
Permalink:
tony/agentgrep@d6cf804e3c7659033f1ead9c50f93ef6e833dcf8 -
Branch / Tag:
refs/tags/v0.1.0a10 - Owner: https://github.com/tony
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
tests.yml@d6cf804e3c7659033f1ead9c50f93ef6e833dcf8 -
Trigger Event:
push
-
Statement type: