Community生产力与协作github.com

recall-handoff

Search your own past work and hand it to the next session. Recall indexes Claude Code transcripts (.jsonl), an optional ChatGPT data export (conversations.json) and Markdown notes folders into a local SQLite full-text index, returns snippets with date, source and session or file, and has a decisions mode that pulls lines with words like decided, going with, never, always. Handoff writes a tool-neutral end-of-session brief (files touched, commands, open TODOs, decisions, errors), and sync_rules.py builds CLAUDE.md, AGENTS.md and .cursor/rules/project.mdc from one rules file and reports drift. Use when the user says "what did we decide about", "search my old chats", "find that conversation", "write a handoff", "summarise this session for the next one", "sync my rules files", "keep CLAUDE.md and AGENTS.md the same".

recall-handoff 是什么?

recall-handoff is a Claude Code agent skill that search your own past work and hand it to the next session. Recall indexes Claude Code transcripts (.jsonl), an optional ChatGPT data export (conversations.json) and Markdown notes folders into a local SQLite full-text index, returns snippets with date, source and session or file, and has a decisions mode that pulls lines with words like decided, going with, never, always. Handoff writes a tool-neutral end-of-session brief (files touched, commands, open TODOs, decisions, errors), and sync_rules.py builds CLAUDE.md, AGENTS.md and .cursor/rules/project.mdc from one rules file and reports drift. Use when the user says "what did we decide about", "search my old chats", "find that conversation", "write a handoff", "summarise this session for the next one", "sync my rules files", "keep CLAUDE.md and AGENTS.md the same".

兼容平台✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/umerdarazkha-debug/recall-handoff/tree/HEAD

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Recall and handoff

All local. The index is one SQLite file ($RECALL_HOME/index.sqlite, default ~/.recall/). Nothing is sent anywhere.

A. Recall

Ask the user which sources to include. Never index folders the user did not name.

  1. Index (re-runs skip unchanged files):
python3 scripts/index.py --claude "<transcripts folder or .jsonl>" \
  --chatgpt "<export folder or conversations.json>" --notes "<notes folder>" [--db PATH]
  • Claude Code transcripts are .jsonl, one per session, kept under ~/.claude/projects/<folder-name>/. Only point at that folder if the user asks you to. Format notes are in references/formats.md.
  • ChatGPT: Settings, Data controls, Export data, then unzip the email download. The script reads the current branch of each conversation.
  • Notes: .md, .markdown, .txt, split by heading.
  1. Search:
python3 scripts/search.py "invoice exporter database" [--source claude|chatgpt|notes] [--since 2026-10-01] [--limit 8]

Output per hit: rank, date, source plus session id or note file and line, role, snippet. Quote the snippet and give the reference so the user can open the original. If nothing matches, retry with synonyms before saying it is not there. 3. Decisions:

python3 scripts/search.py --decisions ["topic words"] [--source ...] [--since ...] --limit 0

Lists single lines containing: decided, we will, we'll, going with, go with, settled on, don't, do not, never, always. It is a keyword filter, so read each line and drop the ones that are advice or quotes rather than decisions. Later decisions can reverse earlier ones: check the dates.

B. Handoff brief

python3 scripts/handoff.py path/to/session.jsonl --out handoff.md

Sections: Goal, Files changed, Files read, Commands run, Open TODOs, Decisions and rules stated, Errors seen. Paths under the session folder show as ./relative. Then:

  1. Read the brief. Fix the Goal line if the first prompt was not the real goal.
  2. Remove anything private before it is shared (the script only shortens paths).
  3. Add a "Next step" line in your own words.

C. One rules file for every tool

Keep the rules in one source file (for example rules/RULES.md). Then:

python3 scripts/sync_rules.py --source rules/RULES.md --root .          # dry run: status and diff
python3 scripts/sync_rules.py --source rules/RULES.md --root . --apply  # write
  • Targets: CLAUDE.md, AGENTS.md, .cursor/rules/project.mdc (frontmatter alwaysApply: true).
  • Status per file: IN SYNC, DRIFT (with diff) or MISSING. It also says when two targets disagree with each other.
  • --apply saves a drifted file as <file>.bak before overwriting. If a drifted file holds good edits, copy them into the source file first.
  • Never hand-edit the generated files.

Limits

  • Transcript and export formats are not formally specified. Lines that do not parse are skipped. See references/formats.md.
  • Recall indexes text, plus the Bash/Edit/Write commands as short lines. Tool output is not indexed.
  • ChatGPT branches you abandoned are not indexed.
  • Handoff finds errors by pattern. It can miss some and flag some harmless ones.

相关技能