feat: add STATUS.md as session handoff document#40
Open
meketreve wants to merge 1 commit into
Open
Conversation
Adds a `.wolf/STATUS.md` file that acts as the single source of truth for resuming work across sessions. Reduces session-resume cost from ~6 file reads (memory.md + cerebrum.md + plan files + code) to a single read. Changes: - New template `src/templates/STATUS.md` with sections for ✅ Concluído, 🚀 Próxima fase, 📁 Arquitetura ativa,⚠️ Pendências, 🔧 Comandos. - `src/templates/OPENWOLF.md`: new "STATUS.md — Single Source of Truth" section at top + bumped step in Session End to update STATUS.md first. - `src/templates/claude-rules-openwolf.md`: rules to read STATUS.md first and to update it when a quest finishes or before /clear. - `src/cli/init.ts`: register STATUS.md in CREATE_IF_MISSING and add an embedded fallback in generateTemplate. - `src/hooks/stop.ts`: new `checkStatusFreshness()` — emits a stderr reminder when 3+ code writes happen but STATUS.md mtime predates the session start (or when STATUS.md is missing entirely). Result: at the end of a quest the AI moves done items to ✅ and writes the next quest in 🚀, so /clear is cheap and resumes in 1 read.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.wolf/STATUS.mdas the single source of truth for resuming work across sessions. Reduces session-resume cost from ~6 file reads (memory.md + cerebrum.md + plan files + code) to a single read.The pattern emerged from real use: at the end of a quest, the AI moves done items to ✅ and writes the next quest in 🚀. Next session:
/clear+ "read .wolf/STATUS.md" → context ready in ~2k tokens instead of ~10k.Changes
src/templates/STATUS.md(new)src/templates/OPENWOLF.mdsrc/templates/claude-rules-openwolf.mdsrc/cli/init.tsSTATUS.mdinCREATE_IF_MISSING+ embedded fallback ingenerateTemplate()src/hooks/stop.tscheckStatusFreshness()— emits stderr nudge when 3+ code writes happen but STATUS.md mtime predatessession.started(or when STATUS.md is missing)Diffstat: 5 files changed, +127 −3.
Why
Existing files in
.wolf/capture history (memory.md), learnings (cerebrum.md), bugs (buglog.json), structure (anatomy.md). None of them answer the most-asked resume question: "where did we stop and what's next?" Today the user has to grep memory.md, hunt for plan files, and re-read code to reconstruct that.STATUS.md is the missing handoff doc. It is short, structured, and trivially updated.
Behavior
CREATE_IF_MISSING, never overwritten on upgrade).openwolf initor first session that triggers the nudge — no destructive action.Test plan
openwolf initcreates.wolf/STATUS.mdfrom templateopenwolf init(upgrade) does NOT overwrite an existing STATUS.md.wolf/and stale STATUS.md triggers the stderr nudgetscandtsc -p tsconfig.hooks.jsonpass (verified locally — clean)Notes
Real-world validation: this exact pattern (template + hook + protocol entry) was used in a project this week and dropped resume cost from ~10k tokens to ~2k. Copying the convention upstream so every OpenWolf project gets it by default.