recall
Recall past work on a specific project or topic.
Steps
-
Classify the question. Each shape has a cheapest path:
- Needle — "what did we decide about X?" → search, then read just the matched exchange.
- Arc — "where did we leave off on X?" → digest the relevant session(s).
- Artifact — "what happened to this file?" → search with the
filesfilter.
-
Find candidate sessions. Call
search_sessions:- Needle/arc:
query= topic keywords; addprojectif a path was given;limit: 10. - Artifact:
files: [path or suffix], noquery— results come back newest first.
Each result carries
messageHits— the specific messages that matched (index,role,snippet). The snippets alone often answer a needle question. - Needle/arc:
-
Digest the best 1-3 candidates. Call
get_session_digestwith each candidate'sfilePath. One bounded call (~2k tokens) returns the session's arc: every genuine user turn paired with its exchange's final assistant reply, each with a messageindex. For "where did we leave off", the last exchange of the newest session's digest usually is the answer. -
Expand only what you need. To read around a specific point, call
get_session_messageswithoffset= amessageHits[].index(from search) orexchanges[].index(from digest) and a smalllimit(5-10). Never page a transcript from offset 0 when a hit or digest index is available.