Session recall
Use agent-session-find as the first recall step when previous agent work may
answer the current question. The goal is to recover the right full session with
minimal tokens, not to dump transcripts into context.
Keep session contents local. Do not upload session contents or paste whole session logs into external tools.
Workflow
- Confirm the command setup in command-setup.md.
- Start with a recent, bounded fuzzy query:
agent-session-find --index-since 14d --max-sources 80 "<query>". - Add repo or cwd context when the project is known:
agent-session-find --cwd "<repo-name>" --since 30d "<query>". - Search one source when the likely harness is known:
agent-session-find --source codex "<query>"oragent-session-find --source claude "<query>". - If the user mentions a handoff, worker, subagent, delegated implementation,
reviewer pass, branch, commit, or PR opened by another agent, retry with
--workers. - If nothing matches, widen gradually: increase
--index-since, remove--cwd, try synonyms, then omit--max-sourcesfor a fuller local refresh. - If running several follow-up searches against the same index, add
--no-refreshafter the first successful refresh. - Use query-strategy.md for search terms.
- Inspect low-token result cards first, then use result-handling.md before opening logs.
Defaults
Use these defaults unless the task suggests otherwise:
agent-session-find --index-since 14d --max-sources 80 "<query>"
agent-session-find --cwd "<repo-name>" --since 30d "<query>"
agent-session-find --limit 5 "<query>"
For stale or long-running projects, prefer --index-since 90d over an
unbounded first pass. Run agent-session-find status when you need to see index
size before widening.
Context pointers
- Use command-setup.md for binary, wrapper, privacy, database, and parallel-refresh rules.
- Use query-strategy.md for query terms and widening strategy.
- Use result-handling.md for interpreting result cards and deciding when to open local JSONL.