Save Session State
Perform a manual save by snapshotting state.md into the session's memory.mci file.
What To Do
- •Find the current session path by reading
.claude-memory/current-sessionin the project root - •If that file doesn't exist, scan
.claude-memory/sessions/for today's latest session directory - •Read
state.mdfrom the session directory and extract:- •Goal section (## Goal)
- •Progress section (## Progress)
- •Findings section (## Findings)
- •If state.md is missing or empty, fall back to reading marker files:
- •
facts.md— latest[!]entries - •
context.md— latest[*]entries - •
intent.md— latest[>]entries
- •
- •Append the triplet to
memory.mciin this format:
code
--- [PC] Manual Save @ HH:MM --- Memory: GOAL: <goal content> Context: PROGRESS: <progress content> Intent: FINDINGS: <findings content>
- •Confirm the save with:
code
[+] Session state saved to memory.mci
Goal: <brief summary>
Progress: <X done, Y pending>
Findings: <brief summary>
If No Session Exists
If no active session directory is found:
code
[-] No active session found. Start a new session first.
Important
- •state.md is the PRIMARY source — always try it first
- •Always include all three lines (Memory, Context, Intent) even if some are sparse
- •Keep each line concise — the .mci must stay lean
- •This is a MANUAL save — the hooks handle automatic saves on compact and session end