State Update
Update the active state file with conversation progress.
Prerequisites
Must have an active state file from either:
- •
/stateCreatein current session - •
/stateResumeearlier in session - •SessionStart hook auto-creation
If no active state file, prompt user to use /stateCreate or /stateResume first.
Workflow
- •Find active state file (most recent in
.state/if not tracked) - •Read current contents
- •Analyze conversation since last update
- •Update relevant sections (see guidelines below)
- •Update
updatedtimestamp in frontmatter - •Write changes back to file
- •Confirm: "State file updated: .state/{timestamp}.state.md"
Update Guidelines
Context: Keep concise (2-3 sentences). Update only if session focus has shifted significantly.
Decisions Made: Add decisions with brief rationale.
markdown
- Chose X over Y because Z
- Decided to use {approach} for {reason}
Open Questions: Use checkboxes.
- •Check off
[x]resolved questions - •Add new
[ ]unresolved questions - •Remove irrelevant questions
Key Learnings: Non-obvious insights discovered.
markdown
- Learned that X works by Y
- Discovered {codebase pattern}
Next Steps: Actionable items.
- •Check off
[x]completed items - •Add new
[ ]pending items - •Reorder by priority
Output Format
After updating, show a brief summary:
code
Updated .state/{timestamp}.state.md:
- Added 2 decisions
- Resolved 1 question, added 2 new
- Added 1 learning
- Updated next steps