Commit Graph

238 Commits

Author SHA1 Message Date
Lex Christopherson
cd1bede183 docs: fix brownfield flow, remove deprecated resume-task
- Fix brownfield example to use execute-phase instead of execute-plan
- Remove /gsd:resume-task command (relies on broken Task resume)
- Checkpoint continuation now uses fresh agents, not resume

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:49:13 -06:00
Lex Christopherson
26c568539b 1.4.12 2026-01-13 17:47:01 -06:00
Lex Christopherson
7c10bdc76f docs: recommend execute-phase as primary execution command
execute-phase with parallel agents is the recommended path.
execute-plan is for single-plan or interactive checkpoint handling.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:46:55 -06:00
Lex Christopherson
694aff27ee 1.4.11 2026-01-13 17:44:54 -06:00
Lex Christopherson
69300f975f fix(checkpoints): replace resume with fresh continuation agents
Resume fails when subagents use parallel tool calls due to Claude Code
serialization bug (consecutive assistant entries with same message ID).

Solution: Subagents return structured checkpoint state, orchestrator
spawns fresh agent with continuation-prompt template instead of resuming.

New files:
- templates/checkpoint-return.md: Structured format with completed tasks table
- templates/continuation-prompt.md: Template for spawning continuation agent

Updated:
- templates/subagent-task-prompt.md: Reference checkpoint-return, remove resume language
- workflows/execute-phase.md: Replace Task(resume=id) with fresh agent spawn
- workflows/execute-plan.md: Update checkpoint_return_for_orchestrator step

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:44:43 -06:00
Lex Christopherson
601e67e0f2 1.4.10 2026-01-13 17:42:23 -06:00
Lex Christopherson
8ed6a8fa50 perf(execute-plan): convert to orchestrator pattern
execute-plan.md command now spawns subagent instead of executing directly:
- Loads only subagent-task-prompt template (~100 lines vs ~2200)
- Subagent loads full execute-plan workflow, summary, checkpoints, tdd
- Handles checkpoint returns with resume flow
- ~80% context reduction for orchestrator

Also updated subagent-task-prompt.md description to clarify it's used by
both execute-phase (parallel) and execute-plan (single) orchestrators.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-13 17:38:52 -06:00
Lex Christopherson
965d936709 1.4.9 2026-01-13 17:31:29 -06:00
Lex Christopherson
a4c83cf275 fix(discuss-phase): remove "what's out of scope" question
Scope boundaries are implicit from the roadmap. Asking about them
creates the sensation of scope creep and interrogates the user about
constraints they didn't mention.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-13 17:30:39 -06:00
Lex Christopherson
0dd4cedf5a perf(execute-phase): remove subagent-only context from orchestrator
Orchestrator loads only what it needs:
- execute-phase.md workflow (orchestration)
- subagent-task-prompt.md (template to spawn agents)

Subagents load execution context themselves via template:
- execute-plan.md, summary.md, checkpoints.md, tdd.md

~80% context reduction for orchestrator (~2000 lines saved)

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-13 17:26:18 -06:00
Lex Christopherson
6646ccc469 1.4.8 2026-01-13 17:07:33 -06:00
Lex Christopherson
9e70b89ca1 docs(plan-phase): restore TDD reasoning explanation
Restored context-budget reasoning for why TDD features get dedicated plans:
- TDD requires 2-3 execution cycles consuming 50-60% context
- Test framework setup handled in first TDD plan's RED phase

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:07:29 -06:00
Lex Christopherson
8604dba1a1 1.4.7 2026-01-13 17:03:10 -06:00
Lex Christopherson
d5c08e1685 feat(execute-phase): load project state before execution
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:03:06 -06:00
Lex Christopherson
c4e3023df1 fix(new-project): parallel execution is recommended, not experimental
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:02:41 -06:00
Lex Christopherson
72c62e597e 1.4.6 2026-01-13 17:01:14 -06:00
Lex Christopherson
46cf4b11de feat(execute-phase): add deviation rules, commit rules, and workflow references
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 17:01:10 -06:00
Lex Christopherson
72da23dec9 feat: add checkpoint pause/resume for spawned agents
- execute-plan.md: Add checkpoint_return_for_orchestrator step
  explaining how to return at checkpoints when spawned via Task tool
- subagent-task-prompt.md: Add checkpoint_behavior and completion_format
  sections to guide agents on returning for checkpoints

Tested: Task resume works - agent pauses at checkpoint, returns with
details, orchestrator presents to user, resumes with Task(resume=id).
Parallel agents each get unique agent_id for independent resume.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:47:33 -06:00
Lex Christopherson
601c60c650 1.4.5 2026-01-13 16:37:22 -06:00
Lex Christopherson
e5d4ecc28c feat: parallel-first planning with dependency graphs and checkpoint-resume
- plan-phase.md: dependency-first planning, vertical slices default
- phase-prompt.md: autonomous field, wave structure, frontmatter table
- scope-estimation.md: parallel default, removed "parallel-aware" framing
- plan-format.md: frontmatter docs with depends_on, files_modified, autonomous
- execute-phase.md: checkpoint-resume flow using Task resume parameter

Plans now declare explicit dependencies via frontmatter. Wave assignment
is automatic based on depends_on + files_modified. Checkpoints pause
subagent, return to orchestrator, user responds, orchestrator resumes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:32:03 -06:00
Lex Christopherson
e30e387c00 refactor(execute-phase): wave-based blocking execution
Replace background agents + polling with blocking Task calls.
Orchestrator stays lean (~15% context), subagents load full workflow.

- Archive old execute-phase command and workflow
- Add subagent-task-prompt.md template (orchestrator→subagent contract)
- Rewrite execute-phase with wave-based parallelization
- Dependency analysis groups plans into execution waves
- Parallel Task calls within waves, sequential across waves
- No TaskOutput polling - Task blocks until completion

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 16:06:17 -06:00
Lex Christopherson
a97c567b01 feat: add .claude/rules/ for auto-loaded contribution rules
Split GSD style guidance into:
- .claude/rules/style.md - global style rules (always loaded)
- .claude/rules/commands.md - path-scoped for commands/gsd/
- .claude/rules/workflows.md - path-scoped for workflows/
- .claude/rules/templates.md - path-scoped for templates/
- .claude/rules/references.md - path-scoped for references/
- GSD-STYLE.md - comprehensive reference for deep dives

Rules auto-load via Claude Code's .claude/rules/ feature (v2.0.64+).
Path-scoped rules only activate when editing matching files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 15:23:21 -06:00
Lex Christopherson
91a387a23b 1.4.4 2026-01-13 12:11:29 -06:00
Lex Christopherson
7d109fde0f fix(debug): inline listing for multiple active sessions
- Shows table of all active debug sessions with status/hypothesis/next action
- Reply with number to resume, or describe new issue
- No AskUserQuestion for session selection - inline flow

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 12:11:07 -06:00
Lex Christopherson
e7b92cc7ba 1.4.3 2026-01-13 11:48:23 -06:00
Lex Christopherson
f0b4c7d853 feat: add /gsd:debug for systematic debugging with persistent state
- Creates .planning/debug/[slug].md immediately on command
- Continuous updates: file IS the debugging brain
- Clear section rules: OVERWRITE (Current Focus, Resolution) vs APPEND (Evidence, Eliminated)
- Survives /clear perfectly - resume from any interruption point
- Scientific method: evidence → hypothesis → test → eliminate or confirm
- Includes debugging reference files (mindset, hypothesis testing, investigation techniques)

Closes #53, closes #44

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 11:48:14 -06:00
Lex Christopherson
0821ebe254 1.4.2 2026-01-13 09:46:59 -06:00
Lex Christopherson
8a79261c6a 1.4.1 2026-01-13 09:46:55 -06:00
Lex Christopherson
8b5864625d docs(install): clarify verification step
Match README wording: "Launch Claude Code and run /gsd:help"

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 09:46:54 -06:00
anirudhpv
341bf3e4ee Update README with verification details (#55)
Clarified verification instructions for usage. 

I was initially trying to get this to work in my PowerShell terminal, but later realized that the /gsd:help command became available inside Claude Code.
2026-01-13 09:45:31 -06:00
Lex Christopherson
1eaec49e0d docs(new-project): mark parallel execution as experimental
Sequential execution is now the recommended default. Parallel
execution is still being refined and may not yield best results.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-13 09:43:00 -06:00
Lex Christopherson
dae8943c8f feat: parallel phase execution
New features:
- /gsd:execute-phase: run all plans in a phase with parallel background agents
- /gsd:status: monitor background agent status from parallel execution
- Parallelization-aware planning with depends_on and files_modified frontmatter
- Automatic dependency analysis and wave-based execution

Configuration options in .planning/config.json:
- max_concurrent_agents (default: 3)
- skip_checkpoints (default: true)
- min_plans_for_parallel (default: 2)

Inspired by PR #43 from @davesienkowski - thank you for the design work!
2026-01-12 15:01:32 -06:00
Lex Christopherson
f53471e608 docs: add /gsd:status to README and help
New command for monitoring background agents from parallel execution.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:59:36 -06:00
Lex Christopherson
755b28e644 refactor(10): simplify plan frontmatter for parallelization
Remove confusing `parallelizable` boolean field. It was redundant -
execute-phase already computes parallelizability from `depends_on`
and file conflicts.

Changes:
- Remove `parallelizable: true|false` from plan frontmatter
- Rename `files_exclusive` to `files_modified` (clearer intent)
- Simplify execute-phase dependency detection logic
- Update phase-prompt template and plan-phase workflow

Parallelization is now fully automatic based on:
- `depends_on: []` (empty = independent)
- `files_modified: [...]` (no overlap = can parallelize)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:55:40 -06:00
Lex Christopherson
c163004a15 feat(plan-phase): suggest execute-phase when multiple plans created
Routes to batch execution when 2+ plans exist, with execute-plan
as alternative for interactive mode.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:40:36 -06:00
Lex Christopherson
b810d1ddca fix(execute-phase): add one-subagent-per-plan constraint
Context isolation is the primary goal, not parallelization.
Even sequential plans spawn separate subagents for fresh 200k context.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 14:34:37 -06:00
Lex Christopherson
0ab169df2f feat(99-01): create animal-facts.md with 5 animal facts
- File created in test-output/ directory
- Contains 5 interesting animal facts for parallel execution test
2026-01-12 14:31:08 -06:00
Lex Christopherson
47980ce5b4 feat(99-03): create random-numbers.md
- Added test-output/random-numbers.md with 5 random numbers
- Part of parallel execution test (Phase 99)
2026-01-12 14:31:03 -06:00
Lex Christopherson
92a2a1af57 feat(99-02): create dad-jokes.md
- Create test-output directory
- Add 5 classic dad jokes with setup and punchline format
- Test file for parallel execution validation
2026-01-12 14:30:58 -06:00
Lex Christopherson
a0d465b687 docs(99): create phase plan
Phase 99: Test Parallel (THROWAWAY)
- 3 plans created (all parallelizable)
- 3 total tasks defined
- Ready for /gsd:execute-phase 99
2026-01-12 14:28:33 -06:00
Lex Christopherson
e88818a37f docs(11-04): complete documentation and examples plan
Tasks completed: 2/2
- Add parallel-aware splitting strategy to scope-estimation.md
- Add parallel vs sequential examples to phase-prompt.md

SUMMARY: .planning/phases/11-parallel-aware-planning/11-04-SUMMARY.md

Phase 11: Parallel-Aware Planning complete
Milestone 100% complete (23/23 plans)
2026-01-12 14:23:08 -06:00
Lex Christopherson
67afce6c31 feat(11-04): add parallel vs sequential examples to phase-prompt.md
- Add parallel-aware plan example with vertical slice pattern
- Add sequential plan example with explicit dependencies
- Document key differences between parallel and sequential plans
2026-01-12 14:21:37 -06:00
Lex Christopherson
a1f6e9f1df feat(11-04): add parallel-aware splitting strategy to scope-estimation.md
- Add philosophy_shift table comparing sequential vs parallel approaches
- Add vertical_slice_example showing sequential chains vs parallel independence
- Add when_to_restructure guidance for choosing approach
- Add file_ownership section for conflict prevention
- Add summary_references guidance for minimizing unnecessary deps
2026-01-12 14:21:13 -06:00
Lex Christopherson
9935f27227 docs(11-03): complete execute-phase frontmatter support plan
Tasks completed: 2/2
- Update analyze_plan_dependencies to read frontmatter fields
- Update categorization to use frontmatter parallelizable field

SUMMARY: .planning/phases/11-parallel-aware-planning/11-03-SUMMARY.md
2026-01-12 14:19:47 -06:00
Lex Christopherson
5c8e5dffbf feat(11-03): use frontmatter for categorization and wave calculation
- Update categorization table to show frontmatter-aware criteria
- Add categorization priority documentation
- Update calculate_wave() to check frontmatter depends_on first
- Handle parallelizable: false as implicit Wave 2+ assignment
- Fall back to inferred requires only when no frontmatter
- Add [frontmatter] annotation in wave output for plans using new fields
2026-01-12 14:18:30 -06:00
Lex Christopherson
9fcc2a4409 feat(11-03): read parallelization frontmatter in execute-phase
- Add PLAN_PARALLELIZABLE, PLAN_DEPENDS_ON, PLAN_FILES_EXCLUSIVE arrays
- Check for parallelizable, depends_on, files_exclusive in plan frontmatter
- Use frontmatter values directly when present
- Fall back to inference logic for old plans without frontmatter
- Document dependency detection priority
2026-01-12 14:17:52 -06:00
Lex Christopherson
661cebe5a6 docs(11-02): complete parallel-aware planning step
Tasks completed: 2/2
- Add parallelization_aware step to plan-phase.md
- Update write_phase_prompt with frontmatter guidance

SUMMARY: .planning/phases/11-parallel-aware-planning/11-02-SUMMARY.md
2026-01-12 14:15:52 -06:00
Lex Christopherson
31a77ae141 feat(11-02): add parallelization frontmatter to write_phase_prompt
- Include parallelizable, depends_on, files_exclusive in frontmatter
- Rules for parallelizable field determination
- Parallel-aware context section guidance
- Avoid reflexive SUMMARY references when parallel
2026-01-12 14:14:17 -06:00
Lex Christopherson
082c68960f feat(11-02): add parallelization_aware step to plan-phase
- File ownership analysis per task group
- Detect unnecessary inter-plan dependencies
- Restructure for vertical slices when beneficial
- Mark plans with parallelization frontmatter values
2026-01-12 14:13:34 -06:00
Lex Christopherson
942b8c8466 docs(11-01): complete parallelization frontmatter plan
Tasks completed: 2/2
- Add parallelization frontmatter to phase-prompt.md
- Add read_parallelization_config step to plan-phase.md

SUMMARY: .planning/phases/11-parallel-aware-planning/11-01-SUMMARY.md
2026-01-12 14:09:38 -06:00