docs/session-semantic-recovery-with-seq.md
Use this when local Claude/Codex session state got wiped (for example after a machine reset), and you want to recover work by searching prior sessions semantically.
This workflow uses:
f ai ...) for exact resume behaviorfzf)f ai claude resume <session-id>f ai codex resume <session-id>seq repo exists at ~/code/seq.~/repos/alibaba/zvec/data/agent_qa.jsonl.fzf installed for interactive picker.From ~/code/seq:
f rl-capture-on
f agent-qa-capture-on
If you need historical backfill:
f agent-qa-capture-on-backfill
Quick status check:
f agent-qa-capture-status
From ~/code/seq:
# Semantic search + interactive picker + auto-resume
f agent-session-search "router regression around branch sync"
# Open picker with no query (recent-first)
f agent-session-search
# Non-interactive listing
f agent-session-search-list "skill sync force reload"
Provider filter:
f agent-session-search --provider claude "deploy rollback"
f agent-session-search --provider codex "trace parser failure"
If you are in another repo and want path-attached session search without changing directory:
f run --config ~/code/seq/flow.toml agent-session-search --path "$(pwd)" "your query"
List-only variant:
f run --config ~/code/seq/flow.toml agent-session-search-list --path "$(pwd)" "your query"
cd /path/to/repof run --config ~/code/seq/flow.toml agent-session-search --path "$(pwd)" "<query>"fzf.f ai claude listf ai codex listf code move-sessions --from /old/path --to /new/path.agent_qa.jsonl metadata so folder-scoped semantic search still matches the new path.f agent-qa-capture-once --backfill --reset-state in ~/code/seq.fzf, or use agent-session-search-list.--path /absolute/repo/path.