Checkpoint handoff

From d-o-hub/rust-self-learning-memory · View interactive version

Checkpoint handoff is an AI agent skill from the GitHub repository d-o-hub/rust-self-learning-memory. Checkpoint episodes and create handoff packs for multi-agent session continuity

How to use this skill

Skill file

Checkpoint & Handoff

When to Use

CLI Commands

| Command | Purpose |

|---------|---------|

| do-memory-cli episode checkpoint <EPISODE_ID> | Create checkpoint of current episode state |

| do-memory-cli episode checkpoint <EPISODE_ID> --note "reason" | Checkpoint with annotation |

MCP Tools

| Tool | Parameters | Purpose |

|------|-----------|---------|

| checkpoint_episode | episode_id, note (optional) | Save episode state snapshot |

| get_handoff_pack | episode_id | Generate complete context pack for handoff |

| resume_from_handoff | handoff_pack | Resume episode from a handoff pack |

Workflow: Agent Handoff

Agent A: Working on episode...
  1. checkpoint_episode(episode_id, note: "completed API design")
  2. get_handoff_pack(episode_id)
     → Returns: { episode state, steps, patterns applied, context }

Agent B: Resuming work...
  1. resume_from_handoff(handoff_pack)
     → Restores context, continues episode

Workflow: Session Recovery

1. Agent hits context limit or session ends
2. checkpoint_episode(episode_id, note: "context limit reached")
3. New session starts
4. get_handoff_pack(episode_id)
5. resume_from_handoff(pack)
6. Continue adding steps to the same episode

Abstention Checkpoints

The system automatically creates checkpoints when an agent abstains (decides not to act). These are queryable via list_abstention_checkpoints() for analyzing decision patterns.

Best Practices

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.