search
Find earlier coding-agent sessions by full-text query to recover past decisions, fixes, and context from Claude Code, Codex CLI, Pi, or JSONL logs.
Instructions
Full-text search over past coding-agent sessions (Claude Code, Codex CLI, Pi and any configured JSONL logs) on this machine. Use it when the user refers to earlier work ("last time", "what did we decide about X", "how did we fix Y") or before asking them for context they probably gave in another session.
Every word must appear (case-insensitive substring; "deploy" also finds "deployment").
Use 2-4 distinctive words such as names, file names or error text; "quote phrases".
Each hit has a cite (pass it to read) and a source locator (file and line range).
Args: query: words to find. harness: claude | codex | pi | jsonl:. project: substring of the session's working directory or title. role: user | assistant | system. after: ISO date/time; only messages at or after it. before: ISO date/time; only messages before it. limit: maximum hits (default 10, max 100).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | ||
| after | No | ||
| limit | No | ||
| query | Yes | ||
| before | No | ||
| harness | No | ||
| project | No |