refactor: remove .planning/ writes from MGW commands#39
Merged
snipcodeit merged 1 commit intomainfrom Feb 27, 2026
Merged
Conversation
MGW was writing to .planning/ (GSD's state directory) in 4 places, creating bidirectional coupling between MGW and GSD: 1. commands/project.md — wrote ROADMAP.md directly (removed write_roadmap step) 2. commands/run.md — wrote config.json + ROADMAP.md when roadmap_exists=false 3. commands/run.md — updated STATE.md after quick task execution 4. workflows/gsd.md — mirrored the config.json + ROADMAP.md scaffolding Now MGW only creates .planning/quick/ directories (mkdir) for GSD agent workspace, and never writes config.json, ROADMAP.md, or STATE.md. Users are directed to run /gsd:new-milestone if they need GSD state files. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Feb 27, 2026
snipcodeit
pushed a commit
that referenced
this pull request
Feb 27, 2026
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
.planning/write violations from MGW commands, eliminating bidirectional coupling with GSDconfig.json,ROADMAP.md, orSTATE.md— those files are now exclusively owned by GSD.planning/quick/directory creation (mkdir only) since GSD agents need it for plan/summary storage.planning/is missing, directing users to/gsd:new-milestoneCloses #35
Milestone Context
Changes
write_roadmapstep (82 lines), updated description/objective/report/success-criteria to reflect no.planning/writes.planning/scaffolding (config.json + ROADMAP.md) with mkdir-only + user message; removed STATE.md update step; removed.planning/STATE.mdfrom executor/plannerfiles_to_read/mgw:projectdescription to remove "GSD ROADMAP" referenceTest Plan
grep -r 'config\.json\|ROADMAP\.md\|STATE\.md' commands/ .claude/commands/mgw/shows no write operations (only read references or documentation)mkdir -p .planning/quickis the only.planning/mutation remainingdiff commands/project.md .claude/commands/mgw/project.md && diff commands/run.md .claude/commands/mgw/run.mdwrite_roadmapstep no longer exists in project.md.planning/ROADMAP.md