Read-only search for local AI agent prompts and history (Codex, Claude Code, Cursor, Gemini, Antigravity, Grok, Pi, OpenCode, VS Code)
agentgrep provides 11 read-only tools with consistent naming (verb_noun pattern: list_, get_, inspect_, find_, search_, recent_). All tools have descriptions (avg ~100 chars, within baseline 34-392). Input schemas are present with type definitions and parameter descriptions. However, output schemas are not documented in the provided source, and several parameter descriptions lack actionable constraints (e.g., 'sample_text' has no format guidance). Error handling is minimal, no recovery guidance or categorization. Tool composition is sound (single responsibility), but descriptions could be more LLM-optimized per pattern:tool-description baseline.
Filter discovered sources by pattern or cursor.
Find known agent stores, session files, and SQLite databases.
Return the catalog descriptor for a single store by id.
Read the first N records from one adapter+path for schema inspection.
Inspect records behind an opaque search/discovery result reference.
List discovered sources with structured path-kind/source-kind filters.
List on-disk agent stores from the agentgrep catalog.
Output schemas not documented. LLMs cannot plan downstream tool calls or extract required fields without knowing response structure (e.g., what fields does list_stores return? Is there pagination?)
Parameter descriptions lack actionable constraints. 'sample_text' (validate_query) has no format guidance; 'pattern' (find, filter_sources) lacks regex/substring clarification; 'terms' (search) does not explain literal vs regex vs query-language precedence.
No error handling guidance. Tools return errors but do not categorize them as retryable/user-fixable/fatal or suggest recovery steps (e.g., 'Store not found. Try list_stores() to see available stores.').
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 62 | 2026-07-28+ | v2 |
List recent agent sessions by modification time.
Search agent prompts and history with optional query language, scope, and effort control.
Aggregate counts of discovered sources by agent/format/path-kind.
Dry-run terms against sample text and/or validate query-language syntax. Supported syntax includes field predicates, booleans, and phrases; no files are searched.
Pagination not fully specified. 'find', 'list_sources', 'filter_sources', and 'search' accept 'cursor' but do not document whether results are capped, what total count is returned, or how to detect end-of-results.
Tool composition: 'find' and 'filter_sources' appear to overlap (both search by pattern). Naming distinction is unclear, LLMs may conflate them. Clarify when to use each.