Session Recovery
Context compaction is inevitable. Sessions end. But the decision graph survives. Watch how Claude recovers full context from scratch.
The Problem
When you start a new Claude session—or when the context window compacts—Claude loses memory of previous work. Without deciduous, this means:
- No memory of what decisions were made
- No knowledge of rejected alternatives
- No understanding of why things were done a certain way
With deciduous, Claude can query the graph and recover all of this in seconds.
The /recover Command in Action
At the start of a new session, the user runs /recover. Watch what happens:
Edge 48→49: leads_to "Scales across instances, persistent"
Edge 48→50: leads_to "Simpler, but single-instance only"
Edge 48→51: chosen "Redis already in stack, needs horizontal scaling"
Edge 51→52: leads_to "Implementation verified with tests"
def456 fix: user validation edge case
...
Goal: Add rate limiting to the API
Decision made: Redis-based sliding window approach
Rationale: Redis already in use, needed to scale horizontally
Rejected: In-memory token bucket (single-instance only)
Status: Implementation complete (commit abc123)
The rate limiting feature appears complete.
What Gets Recovered
From the decision graph, Claude can recover everything it needs:
| Information | Source |
|---|---|
| Goals being worked on | goal nodes |
| Decisions made | decision nodes + chosen edges |
| Alternatives rejected | option nodes + edge rationales |
| Why decisions were made | Edge rationales (-r) |
| User's original request | -p prompt on goal nodes |
| Current status | outcome nodes + linked commits |
Branch-Scoped Context
When working on a feature branch, filter context to that branch:
This shows only decisions relevant to the current feature, reducing noise from other work.
The Recovery Loop
Here's the full session lifecycle with deciduous:
SESSION START │ ▼ Run /recover → Query decision graph │ ▼ Claude reports: goals, decisions, status │ ▼ DO WORK → Log as you go (goals, decisions, actions) │ ▼ BEFORE PUSH → deciduous sync │ ▼ SESSION END → Graph survives │ ▼ (New session starts, repeat)
The graph acts as persistent memory that bridges session boundaries.
Mid-Session Recovery
You can also run /recover mid-session if Claude seems to have lost track:
Recovering from Compaction
When context compacts during a long session, the decision graph provides continuity:
Long Claude sessions may "compact" older messages to make room for new ones. This is normal, but it means Claude loses the detailed reasoning from earlier in the session. The decision graph preserves it.
Even after compaction, Claude can query the graph to recall:
- What goal started this work
- What decisions were made earlier
- What the rationale was
Viewing Node Details
For detailed information about any specific node, use deciduous show:
- Query nodes:
deciduous nodes --branch BRANCH - Check edges:
deciduous edges - View git state:
git status && git log --oneline -5 - Summarize what was found
- Ask what the user wants to work on