session-handoff
Skill2 starsChanged 4 months agoMITView on GitHub
Use when ending or pausing a session, switching between sessions, or asked to save/compress session state with TODOs - compresses the current session into a handoff file, updates a task index, and creates Apple Reminders for follow-up. Also used by the daily reminder cron in review mode to pick up leftover tasks.
- Installs packages
72 other projects use a version of this.
Adopted by
Most recently taken up by
- upex-galaxy/agentic-qa-boilerplatetheir own version, first seen Oct 5, 2026
- aktsmm/Agent-Skillstheir own version, first seen Oct 4, 2026
- kreid415/claude-science-skillstheir own version, first seen Oct 3, 2026
- yuzushi-dev/session-handofftheir own version, first seen Oct 2, 2026
- OneWave-AI/onewave-toolkittheir own version, first seen Oct 2, 2026
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
Used with
Projects with it also use domain-modeling, subagent-driven-development and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkilldomain-modeling
Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.
Also in 4 projects that use this
OpenAISkillsubagent-driven-development
Use when executing implementation plans with independent tasks in the current session
Also in 3 projects that use this
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
OpenAISkillexecuting-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Also in 3 projects that use this
genomewalkerSkilllearn
Learn from web sources, generate SKILL.md, and store key patterns in soul memory. Trigger keywords: learn, skill-gen, web-learn, documentation, tutorial.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 4 projects that use this
- +3 more from openai
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- rohitg00/pro-workflow★ 2.9ksame name
- softaworks/agent-toolkit★ 2.5ksame name
- SethGammon/Citadel★ 922same name
- OneWave-AI/claude-skills★ 321same name
- ai-analyst-lab/ai-analyst★ 304same name
- entireio/skills★ 223same name
- Innei/SKILL★ 86same name
- yuzushi-dev/session-handoff★ 66same name
- aktsmm/Agent-Skills★ 26same name
- upex-galaxy/agentic-qa-boilerplate★ 26same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- covidence-full-text-reviewSkill
- covidence-full-text-retrievalSkill
- covidence-screeningSkill
- ilearning-autoadvanceSkill
- oh-my-piSkill
- auditing-worktreesSkill
- hermes-deepseek-cacheSkill
- i-have-adhdSkill
- memory-uiSkill
- oh-my-ghosttySkill
- pbcopy-word-deliverySkill
- summarizing-weekly-workSkill
- sweeping-merged-worktreesSkill
- tldrSkill
- writing-reportsSkill
- sci-hub-accessSkill
- slack-scanSkill
- superpowers-brainstormingSkill
- superpowers-dispatching-parallel-agentsSkill
- superpowers-executing-plansSkill
- superpowers-finishing-a-development-branchSkill
- superpowers-receiving-code-reviewSkill
- superpowers-requesting-code-reviewSkill
- superpowers-slash-commandsSkill
- superpowers-subagent-driven-developmentSkill
- superpowers-systematic-debuggingSkill
- superpowers-test-driven-developmentSkill
- superpowers-using-git-worktreesSkill
- superpowers-using-superpowersSkill
- superpowers-verification-before-completionSkill
- superpowers-writing-plansSkill
- superpowers-writing-skillsSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 61 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Read the current task list: todo (no args).
- Very specific: line 39
If the session is long and context feels incomplete, supplement with session_search (browse/query) for the current session's recent …
- Very specific: line 52
If an open task (status: "pending") with the same normalized title already exists → skip (dedupe).
- Distinctive: line 54
Keep the file valid JSON.
- Very specific: line 63
If exactly one ID: HF_LIST_ID=<that id>.
- Distinctive: line 64
If none: create it, then re-list to capture the ID.
- Distinctive: line 65
If more than one (a stray duplicate exists): use the one that already holds reminders (or the oldest creation date).
- Very specific: line 82
If the user asked for notes as well ("also save to Notes"), create an Apple Note via memo notes -a "<title>".
- Very specific: line 89
Read ~/.hermes/session-handoffs/tasks.json.
“Common” is measured: kept by at least 6 in 10 of the 61 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Handoff
Overview
Compress the current Hermes session into a durable handoff record so work survives across sessions. Three artifacts:
- Handoff file — a markdown summary of what the session was about, what's done, what's next.
- Task index —
~/.hermes/session-handoffs/tasks.json, the machine-readable source of truth the daily cron reads. - Apple Reminders — native macOS reminders in the
Hermes Follow-uplist, so follow-ups alert on the Mac (and iCloud devices) at their due time.
A daily cron job (session-handoff-daily) runs the skill in review mode: it picks up leftover tasks, makes sure each has an open reminder, and reports a digest.
When to Use
- User says "save session", "handoff", "compress", "what's next", "I'm switching sessions", "remind me about this later", or is about to end/close a session.
- User asks to capture TODOs with a follow-up reminder ("remind me tomorrow / in 3 days / on
<date>"). - Cron job runs the skill in review mode (see below).
Store
~/.hermes/session-handoffs/— handoff files:YYYY-MM-DD-HHMM-<slug>.md~/.hermes/session-handoffs/tasks.json— task index (single source of truth for the cron)
Capture Mode (in-session, user-triggered)
1. Gather context
- Read the current task list:
todo(no args). - Summarize from in-session context: goal, status, completed work, in-progress work, blockers, decisions, key files/commands.
- If the session is long and context feels incomplete, supplement with
session_search(browse/query) for the current session's recent messages.
2. Determine due dates
- Default: tomorrow 09:00.
- "remind me in N days" → today + N days at 09:00.
- "remind me on
<date>" or "at<time>" → that date/time.
3. Write the handoff file
write_file(path="~/.hermes/session-handoffs/YYYY-MM-DD-HHMM-<slug>.md", content=...) using the template below.
4. Update tasks.json
For each TODO / next step:
- Normalized title = lowercase, stripped of surrounding whitespace.
- If an open task (
status: "pending") with the same normalized title already exists → skip (dedupe). - Otherwise append:
{"id": "<short-slug>", "title": "<title>", "notes": "<context block from step 5>", "session": "<handoff filename>", "created": "YYYY-MM-DD", "due": "YYYY-MM-DD HH:mm", "status": "pending"}. - Keep the file valid JSON.
- IMPORTANT: the title stored in tasks.json MUST exactly match the reminder title created in step 5 (same casing, same punctuation). The cron's review mode matches titles verbatim against
remindctl list— a case difference looks like "missing" and triggers duplicate reminders. Either lowercase both or title-case both; never mix. - The
notesfield stores the same context block used for the reminder notes (step 5), so the cron's review mode can re-attach it when it creates reminders.
5. Create Apple Reminders
- Find the list's ID first — do NOT rely on
--createbeing idempotent (it is not on remindctl 0.3.2: it creates a duplicate empty list, which then makes every name-basedaddfail with "matches multiple lists"):remindctl list --json | python3 -c "import sys,json; [print(l['id']) for l in json.load(sys.stdin) if l['title']=='Hermes Follow-up']"- If exactly one ID:
HF_LIST_ID=<that id>. - If none: create it, then re-list to capture the ID.
- If more than one (a stray duplicate exists): use the one that already holds reminders (or the oldest creation date); the empty duplicate must be removed manually in Reminders.app — remindctl has no list-delete command.
- If exactly one ID:
- For each NEW task:
remindctl add --title "<title>" --list-id "<HF_LIST_ID>" --due "<YYYY-MM-DD HH:mm>" --notes "<context>"— always a concrete date string (see pitfall 6). Using--list-id(not--list) sidesteps the name-ambiguity failure entirely. - The notes field is what makes a reminder self-sufficient. A bare title ("check PR #805 CI") tells the future you nothing; the notes must carry the session context so the reminder alone is enough to act on. Build one notes block per session (not per task — the same context applies to all its reminders) from the handoff sections. Do NOT re-list the TODOs: the reminder title IS the task, so a NEXT section in the notes would just duplicate it. The notes carry only what the title can't:
Include the HANDOFF path always — it is the escape hatch to the full record. Write the block to a temp file and pass it asGOAL: <goal, one line> DONE: <what shipped, one line> OPEN: <blockers a fresh session needs to know> FILES: <key paths / commands> HANDOFF: ~/.hermes/session-handoffs/<filename>--notes "$(cat /tmp/handoff_notes.txt)"(a quoted heredoc with backticks/quote chars breaks macOS bash inside command substitution — always use the temp-file pattern). - For tasks created later from the same session (e.g. cron review mode), copy the same notes block so every reminder stays self-sufficient.
- Skip any task whose title already has an open reminder, comparing case-insensitively (check
remindctl list "Hermes Follow-up" --json). - If the user asked for notes as well ("also save to Notes"), create an Apple Note via
memo notes -a "<title>". Default: skip — the handoff markdown files are the notes.
6. Report
"Handoff saved to <path>. N new reminder(s) in Hermes Follow-up, due <dates>."
Review Mode (daily cron, ~09:00)
- Read
~/.hermes/session-handoffs/tasks.json; select tasks withstatus == "pending". - For each task with
due <= now(due today or overdue): ensure an open reminder exists — compare titles case-insensitively againstremindctl list "Hermes Follow-up" --json; if missing, create it with--due "<today's date YYYY-MM-DD> 09:00" --notes "<task.notes from tasks.json>"(always a concrete date string — see pitfall 6). Use--list-idfor the add, resolved exactly as in capture-mode step 5. Attaching the task's stored notes keeps the reminder self-sufficient. - Sync completions: completed reminders stay visible in
remindctl list "Hermes Follow-up" --jsonwith"isCompleted": true— for any pending task whose matching reminder showsisCompleted, set itsstatusto"done"in tasks.json. - Reply with a digest: count + list of leftover tasks (due today / overdue first). If nothing pending, reply "No pending handoff tasks."
Reminder Targets (hard rule)
Apple only. Default target is Apple Reminders (remindctl). Apple Notes (memo) and Apple Calendar are acceptable alternates if the user asks. Never use Jira, Atlassian, or any external task-tracking service for these reminders — the whole pipeline is native macOS (Reminders/Notes/Calendar) and must stay that way.
Handoff Template
# Handoff: <session title> — <date>
## Goal
<one sentence>
## Status
<done / in progress / blocked — one line>
## Completed
- <what got done>
## Next Steps (TODOs)
- [ ] <actionable task> (due: <date>)
- [ ] ...
## Open Questions / Blockers
- <anything a fresh session needs to know>
## Key Files / Commands
- <paths, commands, URLs>Common Pitfalls
- Vague TODOs. A fresh session has zero context. "Implement X in file Y using Z" beats "continue the work". Each TODO must be actionable on its own.
- Duplicates. Dedupe by normalized title in BOTH tasks.json and Reminders — never create two open reminders for the same task.
- Stale statuses. tasks.json is the cron's source of truth; keep
statuscurrent (cron syncs completions automatically, but don't leave tasks "pending" that you completed). - Missed permission. remindctl needs macOS + Reminders access:
brew install steipete/tap/remindctl, thenremindctl authorize. - Overdue tasks stay open in Reminders by design — the cron re-surfaces them daily until completed.
- Date-format trap:
remindctlrejects date words combined with times —--due "today 09:00"fails with "Invalid date". Always pass a concrete string:--due "2026-08-04 09:00". Bare date words (today,tomorrow) work only without a time. - Cron must run MCP-free. The
session-handoff-dailycron job MUST includeno_mcpin itsenabled_toolsets([terminal, file, skills, no_mcp]). Hermes' scheduler otherwise unions every globally-enabled MCP server — e.g. a Jira/Atlassian MCP — into the job's toolsets, and the cron session hangs connecting to it, freezing the whole CLI session.no_mcpstrips all MCP servers from the job. --createcreates duplicates (remindctl 0.3.2).remindctl list "Name" --createis NOT idempotent — it creates a second, empty list when one already exists. Then every name-basedremindctl add --list "Name"fails withmatches multiple lists. Always resolve the list ID first and use--list-id(capture-mode step 5). If a stray duplicate already exists, it must be deleted manually in Reminders.app — remindctl has no list-delete command. Name-based reads (list --json) still work fine with duplicates; onlyaddbreaks.- Title case matters across the pipeline. tasks.json titles must match reminder titles exactly (capture step 4), and the cron's presence check is case-insensitive (review step 2). If these drift, the cron creates duplicate reminders for tasks that already have them.
- Bare reminder titles are useless. A reminder that only says "check PR #805 CI" forces the future you to go hunting for the handoff file. Always attach the context notes block (step 5) — Goal, Done, Open, Files, Handoff path. Do NOT include a NEXT/TODO section in the notes: the reminder title is the task, listing it again is duplication. The reminder should be actionable on its own; the handoff file is the backup, not the required reading.
- Notes text via shell. A quoted heredoc containing backticks or quotes breaks macOS bash when nested inside
--notes "$(cat ...)". Write the block to a temp file first (write_fileto /tmp), then--notes "$(cat /tmp/handoff_notes.txt)", and remove the temp file after.
Verification Checklist
- Handoff
.mdexists in~/.hermes/session-handoffs/ tasks.jsonis valid JSON and contains the new tasks withstatus: "pending"remindctl list "Hermes Follow-up"shows one reminder per new task- Cron
session-handoff-dailypicks the tasks up (checkhermes cron list/ saved output)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

