Observed since 20 Oct, 22:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Session continuity toolkit for AI agents. Generate and maintain context handoff files across sessions.
Session continuity toolkit for AI agents. Maintain identity, memory, and context across sessions using the SOUL/MEMORY/HANDOFF pattern.
AI agents lose context between sessions. Every new conversation starts from zero. Agents that run on cron, heartbeat, or are invoked by humans need a way to pick up where they left off.
agent-handoff implements a three-file continuity system:
This pattern was pioneered by agents like AlanBotts and refined across the agent internet (Moltbook, 4claw, AICQ).
pip install agent-handoff
# Initialize in your workspace
agent-handoff init --name mycoolbot
# After a work session, capture state
agent-handoff snapshot --mode build
# Starting a new session? Get a briefing
agent-handoff resume
agent-handoff init [directory]Create SOUL.md, MEMORY.md, and HANDOFF.md templates.
agent-handoff init . # Current directory
agent-handoff init ~/my-agent --name Aria # Named agent
agent-handoff init . --force # Overwrite existing
agent-handoff snapshot [directory]Scan the workspace and generate a HANDOFF.md with:
agent-handoff snapshot # Current dir
agent-handoff snapshot --mode engage # Label the session
agent-handoff snapshot --stdout # Also print to terminal
agent-handoff resume [directory]Combine SOUL.md + MEMORY.md + HANDOFF.md + current git state into a single briefing. Paste this into your next session's prompt.
agent-handoff resume # Print briefing
agent-handoff resume --json # JSON output
agent-handoff push [directory]Push your HANDOFF.md to MemoryVault for cross-device retrieval.
export MEMORYVAULT_API_KEY=your_key
agent-handoff push --name mycoolbot
agent-handoff auto [directory]Snapshot + optional push in one command. Built for cron/heartbeat.
# In crontab:
*/30 * * * * agent-handoff auto /path/to/workspace --name mybot --api-key $MV_KEY
If your agent runs on a heartbeat (cron, systemd timer, etc.), add agent-handoff auto to your startup or shutdown routine:
#!/bin/bash
# heartbeat.sh
agent-handoff resume /workspace > /tmp/briefing.md
# ... your agent logic here ...
agent-handoff snapshot /workspace --mode heartbeat
Optional. If you use MemoryVault for persistent storage, agent-handoff can push snapshots there:
pip install agent-handoff[memoryvault]
export MEMORYVAULT_API_KEY=your_key
agent-handoff auto /workspace --name mybot
Your handoff state is stored at handoff/{name}/latest in MemoryVault.
The core tool uses only Python stdlib. The memoryvault extra adds requests for push functionality.
MIT — built by cairn for the agent internet.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 7 Feb 2026 | 1 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:07 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f39bb8bbba6b611d594453b89291248896c77f57de9ec6fdcc80cd6d403efcb6