Commit Graph

380 Commits

Author SHA1 Message Date
Lex Christopherson
1d155e978b feat: add gsd-research-synthesizer agent for SUMMARY.md creation
- Create dedicated synthesizer agent to handle research synthesis
- Move SUMMARY.md creation from main orchestrator to subagent
- Reduces main context usage (~2000+ lines of research output)
- Synthesizer reads 4 research files and produces unified summary

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 11:26:19 -06:00
Lex Christopherson
18351fe3e4 feat: unify project initialization into single /gsd:new-project flow
Consolidates 4 separate commands into one unified flow:
- /gsd:new-project now handles: questioning → research → requirements → roadmap
- Creates gsd-roadmapper agent for heavy lifting (goal-backward, coverage validation)
- Adds atomic commits after each stage for crash recovery
- Deprecates standalone research-project, define-requirements, create-roadmap
  (kept for mid-project use)

Fixes from audit:
- Add requirements quality criteria (specific, user-centric, atomic, independent)
- Add milestone context to research prompts (greenfield vs subsequent)
- Add quality gates per research dimension
- Add template references for consistent output format

Removes deprecated gsd-researcher.md (replaced by project/phase researchers)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 11:15:58 -06:00
Lex Christopherson
9875df57ab fix: remove premature research likelihood predictions from roadmap
Research decisions made at roadmap creation time are:
- Premature: Can't know if research is needed before discuss-phase
- Redundant: --skip-research flag exists for explicit control
- Counterproductive: Gives Claude an excuse to skip research entirely

Removed:
- Research: Likely/Unlikely fields from roadmap template
- detect_research_needs step from create-roadmap workflow
- "If roadmap flagged Research: Likely" checks from gsd-planner

Research now always runs during plan-phase unless:
- RESEARCH.md already exists (silent reuse)
- --skip-research flag passed
- --gaps flag passed (gap closure mode)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 10:27:23 -06:00
Lex Christopherson
2144960c6c feat: integrate research into plan-phase with specialized agents
Split gsd-researcher into two specialized agents:
- gsd-phase-researcher: tailored for phase research before planning
- gsd-project-researcher: tailored for ecosystem research before roadmap

Updated /gsd:plan-phase to auto-research before planning:
- Research runs if no RESEARCH.md exists (silent use if exists)
- --research flag forces re-research
- --skip-research flag bypasses research entirely
- Researchers commit their output

This enables single-command workflow: /gsd:plan-phase does
research → plan → verify in one orchestrated flow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 10:10:22 -06:00
Lex Christopherson
806a13707b docs(gsd-planner): restore task sizing and specificity examples
Adds back guidance that was lost during consolidation:
- Task sizing heuristic (15-60 min target)
- Signals for too large / too small tasks
- Specificity side-by-side examples table
- "The test" for checking task clarity
2026-01-16 09:15:45 -06:00
Lex Christopherson
ace3b3655a docs(16-03): add REVISION COMPLETE format to structured_returns
- Return format for orchestrator after revision mode completes
- Changes table, files updated, unaddressed issues sections
- Ready for re-verification note
2026-01-16 09:00:11 -06:00
Lex Christopherson
8420752585 docs(16-03): update role section to document revision mode
- Add revision mode spawning to orchestrator list
- Add revision responsibility to core responsibilities
2026-01-16 08:59:44 -06:00
Lex Christopherson
6b31a920dd feat(16-03): add revision_mode section to gsd-planner
- 6-step revision process for handling checker feedback
- Strategy table mapping issue dimensions to revision actions
- Surgeon mindset: minimal targeted updates to existing plans
- Return format for revision summary
2026-01-16 08:59:20 -06:00
Lex Christopherson
47eab1a2b0 feat(16-01): create gsd-plan-checker agent
Goal-backward plan verification before execution:
- Six verification dimensions (coverage, completeness, dependencies, links, scope, derivation)
- Structured issue reporting for planner feedback
- Examples covering common failure modes

agents/gsd-plan-checker.md (744 lines)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 08:56:31 -06:00
Lex Christopherson
1f45befed4 feat(15-01): create gsd-planner agent file
Consolidate ~3,580 lines of planning references into dedicated agent:
- Complete planning methodology in 1,147 lines
- 14 sections covering full planning workflow
- Follows gsd-debugger/gsd-researcher pattern
- Solo developer + Claude workflow philosophy
- Quality degradation curve and scope estimation
- Dependency graph and wave assignment
- Goal-backward verification methodology
- TDD integration and checkpoint handling
- Gap closure mode for verification failures
2026-01-16 07:44:45 -06:00
Lex Christopherson
32e68cde75 fix: remove zombie gsd-milestone-auditor agent
This agent was correctly deleted in f3e0e69 (subagents can't spawn
subagents), then accidentally re-added in d07ef33 during install fix.

The command audit-milestone.md is the orchestrator. No agent needed.
2026-01-16 07:30:30 -06:00
Lex Christopherson
a151696d30 refactor(research): inject rich context from orchestrators to agent
research-phase.md:
- Added <key_insight> framing ("what don't I know that I don't know")
- Added <downstream_consumer> explaining plan-phase integration
- Added <quality_gate> checklist

research-project.md:
- Added milestone context (greenfield vs v1.1+)
- Added <downstream_consumer> per dimension
- Added <quality_gate> per agent
- Enhanced roadmap implications guidance

gsd-researcher.md:
- Simplified <gsd_integration> to point to orchestrator-provided context
- Agent is now pure research capability, context is injected

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:29:50 -06:00
Lex Christopherson
411b5a369b feat(gsd): add dedicated codebase mapper agent
Reduces context exhaustion during /gsd:map-codebase by having agents
write documents directly instead of returning findings to orchestrator.

- Create gsd-codebase-mapper agent with embedded templates
- Agent understands downstream consumers (plan-phase, execute-plan)
- Parameterized by focus: tech, arch, quality, concerns
- Each focus writes specific documents directly to .planning/codebase/
- Orchestrator receives only confirmation + line counts

Context savings: ~40 lines returned vs potentially thousands of lines
of exploration findings previously transferred back to orchestrator.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:16:02 -06:00
Lex Christopherson
ae1c7f2d9d docs(14): add GSD integration context to researcher agent
Explains why research matters: output directly consumed by plan-phase.
Documents the contract between RESEARCH.md sections and planning workflow.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 17:15:54 -06:00
Lex Christopherson
2f8b55178e feat(14-01): create gsd-researcher agent with research methodology
- 4 research modes: ecosystem, feasibility, implementation, comparison
- Tool strategy with Context7 > Official docs > WebSearch hierarchy
- Source hierarchy with HIGH/MEDIUM/LOW confidence levels
- Complete verification protocol with known pitfalls
- Output formats for phase research, project research, comparisons
- Execution flow and structured returns to orchestrator

902 lines consolidated from ~1,200 lines of source material (25% reduction)
2026-01-15 16:59:36 -06:00
Lex Christopherson
667d7097b5 docs(debugger): restore high-value examples and patterns
- Add rich code examples for investigation techniques (minimal
  reproduction, working backwards, differential debugging, etc.)
- Restore test-first debugging pattern with full process
- Add stability testing examples (parallel stress, race condition)
- Add hypothesis testing pitfalls table
- Add research vs reasoning decision tree and red flags
- Add combining techniques guidance

990 → 1,184 lines (+194 lines of actionable content)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 16:46:10 -06:00
Lex Christopherson
7cefaf1145 feat(13-01): create gsd-debugger agent with consolidated debugging expertise
- All 12 sections present: role, philosophy, hypothesis_testing,
  investigation_techniques, verification_patterns, research_vs_reasoning,
  debug_file_protocol, execution_flow, checkpoint_behavior,
  structured_returns, modes, success_criteria
- Consolidated ~2,400 lines to 990 lines (59% reduction)
- Complete debugging methodology: scientific method, meta-debugging,
  cognitive biases, investigation techniques, verification patterns
- Full checkpoint and return format specifications
- Debug file protocol with update rules and status transitions
2026-01-15 16:16:25 -06:00
Lex Christopherson
d07ef33353 fix(install): include agents folder in npm package
The agents folder (gsd-executor, gsd-verifier, gsd-integration-checker,
gsd-milestone-auditor) was not being published to npm because it was
missing from the package.json files array.

Also adds the missing gsd-milestone-auditor.md agent.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 15:44:07 -06:00
Lex Christopherson
0f9f802828 docs(verifier): clarify step flow for re-verification mode
Step 0 now explicitly states to skip to Step 3 when in re-verification
mode. Steps 1-2 marked as "Initial Mode Only" to make flow clear.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 11:50:32 -06:00
Lex Christopherson
da95980dfd perf(verifier): reuse previous must-haves on re-verification
When VERIFICATION.md already exists with gaps, verifier now:
- Loads previous must-haves instead of re-deriving
- Focuses deep verification on failed items
- Quick regression check on passed items
- Tracks re-verification metadata (gaps_closed, regressions)

Saves tokens by not starting from scratch after gap closure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 11:49:16 -06:00
Lex Christopherson
931592c944 style(agents): update subagent colors
- gsd-executor: blue → yellow
- gsd-integration-checker: cyan → blue

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 11:15:35 -06:00
Lex Christopherson
f3e0e69ce6 refactor(audit-milestone): command is orchestrator, not subagent
Subagents can't spawn subagents. The command itself orchestrates:
- Wave 1: Spawn gsd-verifier per phase (parallel)
- Wave 2: Spawn gsd-integration-checker
- Aggregate results into MILESTONE-AUDIT.md

Remove gsd-milestone-auditor agent (command does this now).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:56:26 -06:00
Lex Christopherson
02d0c47c58 docs(milestone-auditor): clarify parallel Task spawning
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:52:53 -06:00
Lex Christopherson
6630c3217d feat(milestone): add milestone audit system
- Add /gsd:audit-milestone command (spawns auditor)
- Add gsd-milestone-auditor agent (orchestrates verification)
- Add gsd-integration-checker agent (cross-phase wiring + E2E flows)
- Add /gsd:plan-milestone-gaps command (creates phases from audit gaps)
- Update complete-milestone to recommend audit first

Flow: audit-milestone → plan-milestone-gaps → execute phases → re-audit → complete-milestone

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:50:58 -06:00
Lex Christopherson
f9edfcf6b4 style: update executor color to blue, format verifier
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-15 10:43:01 -06:00
Lex Christopherson
8e6ad96af1 feat(verification): add verify → plan → execute loop for gap closure
- Add verify_phase_goal step to execute-phase workflow
- Verifier outputs structured gaps: YAML for planner consumption
- Add --gaps flag to plan-phase for gap closure mode
- Route by verification status: passed, gaps_found, human_needed
- Gap closure creates sequential plans (04, 05...) from verification gaps
- User stays in control at each decision point

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 10:34:38 -06:00
Lex Christopherson
a7986bcad6 style: format gsd-verifier.md
Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-15 10:07:01 -06:00
Lex Christopherson
27b1826d97 style: format gsd-executor.md 2026-01-15 09:51:27 -06:00
Lex Christopherson
f3f6707cbe feat: add gsd-verifier subagent for phase goal verification
- gsd-verifier.md: dedicated verification subagent with all logic baked in
- Goal-backward verification: checks codebase, not SUMMARY claims
- Creates VERIFICATION.md, returns status to orchestrator
- execute-phase spawns gsd-verifier instead of general-purpose

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-15 09:51:14 -06:00
Lex Christopherson
b2646c894c feat: add gsd-executor subagent with dedicated plan execution logic
Moves all plan execution logic into a dedicated subagent:
- Deviation rules, checkpoint protocols, commit formatting
- Summary creation, state updates, TDD execution
- Authentication gate handling, continuation support

Installer now copies agents/ to ~/.claude/agents/

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-15 09:34:26 -06:00