Session Continuity¶
Engram now supports a cleaner resume flow for agents that work across multiple turns or multiple sessions.
The core idea is simple:
- load the latest structured handoff
- work normally while writing meaningful state into Engram
- leave behind a handoff packet the next session can resume from
Why this exists¶
Raw diary entries and broad recalls are useful, but they are a bad default resume protocol. They make new sessions reconstruct context from noise.
The continuity flow gives agents a smaller, more intentional packet:
- current state
- recent work
- decisions
- open loops
- recent queries
- touched entities
Startup pattern¶
At the start of a session:
If the latest handoff is too thin, then expand with:
session_summaryrecallrecall_hints
But start with resume_context first.
During work¶
Use the normal write path:
rememberfor verified facts and implementation stateremember_decisionfor tradeoffsremember_negativefor things that are not true or should not be assumeddiary_writefor concise progress notes that would matter later
The active MCP session refreshes its structured handoff automatically after:
- recalls
- memory writes
- diary writes
- memory edits
Before stopping¶
Near a natural stop point:
Use this when you want to explicitly persist the current packet before handing work to another session or another agent.
Suggested agent workflow¶
start:
- resume_context
during work:
- remember / remember_decision / remember_negative
- diary_write when the progress note matters later
before stopping:
- session_handoff
Repo-local skill¶
Engram ships with a continuity skill example here:
Use that as a starting point for Codex, Claude Code, or any other MCP-capable agent setup.