Recall Session State
Load and display the current session state, prioritizing state.md over .mci.
What To Do
- •Find the current session path:
- •Read
.claude-memory/current-sessionin the project root - •If not found, scan
.claude-memory/sessions/for today's latest session - •If today has no sessions, search up to 7 days back for the most recent session
- •Read
- •First: Read
state.mdfrom the session directory- •If state.md exists and has content (>200 bytes), display it as the primary state
- •Then: Read
memory.mciand parse the LAST entry (entries start with---) - •Display the recovered state:
If state.md exists:
code
[AC] State recovered from state.md ## Goal <goal content> ## Progress <progress checklist> ## Findings <findings content> Session: <session path> .mci entries: <count>
If only .mci exists:
code
[AC] Memory recalled from .mci Memory: <what happened> Context: <why it matters> Intent: <where we're going> Session: <session path> Entries in .mci: <count> [>] Consider creating state.md with Goal/Progress/Findings sections for better recovery.
If No State Found
Search the cascade (up to 7 days back):
- •Current session ->
state.mdthenmemory.mci - •Previous sessions today ->
state.mdthenmemory.mci - •Last 7 days (most recent first) ->
state.mdthenmemory.mci
If nothing found anywhere:
code
[-] No state.md or .mci file found. This is a fresh start. [>] State.md will be created automatically when hooks are active.