recall
Search past AI agent sessions semantically to retrieve verbatim passages on prior decisions, rationale, measurements, and investigations, so earlier work can be reused instead of re-derived.
Instructions
Semantic search over the user's past AI agent sessions: describe what you are after, get back the verbatim passages — what was decided, tried, measured or investigated. Call it when they refer to earlier work, or when you are about to re-derive something a session may already have settled. Call it too before claiming that something was never built, was dropped, or was never discussed: the code cannot show that, only the sessions can. Ranked top-k, so it gives you a foothold on a topic, not every session touching it. Ranking weighs relevance, not age: for the latest word on a topic, or one stretch of time, bound it with since/until. Each hit is a passage framed by its exchange, the prompt that asked, the assistant's last word on it and the user's reply, so the answer is usually in the reply itself: k is the token cost, candidates the reach, and a pool larger than k is reranked, at seconds of latency that grow with the pool, so the reach can grow without the reading. oneline lists the hits without their passages, to choose what to read.
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": "recall"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | Hits returned (default 8). Each is a verbatim passage of a few hundred tokens, so `k` is what a call costs to read. | |
| repo | No | Restrict to turns whose checkout resolved to this repo, as `owner/name` | |
| role | No | Restrict to a role, as the turns carry it (an agent's turns say user | assistant | tool | system) | |
| query | Yes | Natural-language description of what to recall from past sessions. A query matches best in the language they are written in, which `status` reports. | |
| since | No | Restrict to turns on or after this date, `YYYY-MM-DD` | |
| until | No | Restrict to turns on or before this date, `YYYY-MM-DD` | |
| memory | No | Memory to read for this call, as it stands — `<org>/<repo>`, an `hf://…` URI, a local path, or `local`. Omitted, the server's memory, with this host's turns not yet pushed to it when the host is bound to it. | |
| harness | No | Restrict to a harness facet, as the turns carry it (`claude` also matches the older `claude_code`) | |
| oneline | No | One row per hit, no passage: the provenance, the `→ get` target and the hit's opening words. For choosing what to read before a `get`, at a fraction of the tokens. | |
| block_type | No | Restrict to a block type: text | thinking | tool_use | tool_result | |
| candidates | No | Size of the fused pool the hits are cut from (default 30): how far the search looks. Larger than `k`, the pool is reranked by the cross-encoder before the cut, which costs seconds and grows with the pool, so `k` can stay small while the search looks deep. A pool of `k` rows or fewer is read whole, in the fused order. |