Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

ai-memory-handoff

Skill by akitaonrails

Manages single-use handoffs that carry work between AI agent sessions. It helps an assistant resume previous work, save context for the next session, and re-ground after a context compaction.

  • Score 91
  • 17k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install ai-memory-handoff

Built from the published package, never by AI.

git clone --depth 1 https://github.com/akitaonrails/ai-memory /tmp/ai-memory && mkdir -p ~/.claude/skills && cp -r /tmp/ai-memory/plugins/codex/skills/ai-memory-handoff ~/.claude/skills/ai-memory-handoff

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install ai-memory-handoff in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The ai-memory handoff skill handles session continuity across agents and across time. It lets an assistant find a pending handoff, resume earlier work, save terse context for the next session, and discard a mistaken handoff. It also covers re-grounding after a context compaction, using a post-compaction anchor or a `reload context` prompt when the harness provides them.

Handoffs are for the next agent, not durable project documentation. The skill sets rules for when to list, accept, create or cancel a handoff, and how to choose project scope on static MCP clients. Each handoff is consumed once. Recovered memory is treated as untrusted history, not as instructions. The skill is written for agents that use the ai-memory server.

Written from the project's SKILL.md and checked against it.

What it can do

  • memory_handoff_listRead-only view of open handoffs, without claiming or expiring them.
  • memory_handoff_acceptClaims one open handoff, by exact id or the latest eligible one.
  • memory_handoff_beginCreates a terse next-session handoff when the user wraps up or asks to save context.
  • memory_handoff_cancelExpires a mistaken pending handoff by its exact handoff id.
  • Post-compaction re-groundingReads the session anchor or compaction recap after a compaction to resume the original task.
  • Cut-off session recoveryReads the newest raw observations of a session that ended without a handoff.

What you need

  • ai-memory server
  • Lifecycle hooks on supported clients for automatic handoff injection

Try asking

  • Where did we leave off on this project?
  • Save context for the next session before I wrap up.
  • Cancel the handoff I created by mistake.

Good to know

  • Handoffs are single-use and are consumed once they are claimed.
  • Accept and cancel act only on the caller's own and shared handoffs.
  • The any_owner option is root-only and needs an explicit user request.
  • Sharing a handoff requires that the user explicitly asks for it.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/codex/skills/ai-memory-handoff/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to ai-memory-handoff

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

ai-memory-handoff: common questions

What is a handoff in this skill?

A handoff is a single-use record of context saved at session end for the next agent. The source says handoffs are not meant as durable project documentation.

Can the same handoff be claimed twice?

No. Handoffs are single-use, so once the SessionStart hook consumes one, the accept tool returns no handoff.

What happens after a context compaction?

The skill re-grounds on ai-memory. It uses the post-compaction anchor or compaction recap when the harness provides them, and otherwise reads this session's raw prompts and replies.

How do I install ai-memory-handoff?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is ai-memory-handoff free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is ai-memory-handoff safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to ai-memory-handoff?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

ai-memory-handoff Install

Add to stack

Loading.