TÂCHES
1b317dec45
feat: extract repetitive bash patterns into gsd-tools commands ( #472 )
...
* feat(gsd-tools): add history-digest, atomic state operations, and summary variants
Adds new performance-focused commands to gsd-tools and introduces specialized
summary templates to reduce context tax:
- history-digest: Compiles phase summaries into structured JSON for JIT loading
- state get/patch: Enables atomic STATE.md operations instead of full rewrites
- template select: Automatically chooses optimal summary template based on plan complexity
- Adds minimal, standard, and complex summary templates
Part of the "Hydra" architecture for GSD context optimization.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
* chore: add project config
* docs: define v1 requirements
* docs: create roadmap (6 phases)
* feat(history-digest): fix nested YAML parsing and add tests
- Fix extractFrontmatter() to handle nested YAML structures like
dependency-graph.provides, tech-stack.added using stack-based parsing
- Add test infrastructure with Node test runner (npm test)
- Update gsd-planner to use digest fields directly instead of reading
full SUMMARY.md files
- Add 6 schema validation tests covering nested fields, merging,
malformed files, and backward compatibility
Closes: HIST-01, HIST-02, HIST-03, HIST-04
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
* fix(planner): use digest for selection, full SUMMARY for understanding
The previous commit went too far by eliminating full SUMMARY reads.
The digest is an index for smart selection, not a replacement for
understanding what actually happened.
Two-step approach:
1. Digest to score/select relevant phases (2-4 typically)
2. Full SUMMARY read for selected phases (implementation details)
3. Digest-level context retained for unselected phases
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
* feat(gsd-tools): add phases, roadmap, and phase commands
TDD implementation of three new commands to replace repetitive bash:
phases list [--type plans|summaries] [--phase N]
- Lists phase directories sorted numerically (handles decimals)
- Filter by file type or specific phase
- Replaces: ls -d .planning/phases/*/ | sort -V (22 occurrences)
roadmap get-phase <N>
- Extracts phase section from ROADMAP.md
- Returns name, goal, full section content
- Replaces: grep -A20 "Phase X:" ROADMAP.md (19 occurrences)
phase next-decimal <N>
- Calculates next decimal phase (06 → 06.1, 06.2 → 06.3)
- Handles gaps, normalizes input
- Replaces: complex bash math in insert-phase (3 occurrences)
16 new tests, all passing.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
* refactor: migrate agents/workflows to use gsd-tools commands
Replace inline bash patterns with centralized gsd-tools commands:
phases list:
- audit-milestone.md: ls -d .planning/phases/*/ | sort -V
- plan-milestone-gaps.md: ls -d ... | sort -V | tail -1
roadmap get-phase:
- plan-phase.md: grep -A5 "Phase X:" ROADMAP.md (2 occurrences)
- research-phase.md: grep patterns (2 occurrences)
- verify-phase.md: grep -A5 pattern
- gsd-verifier.md: grep -A5 pattern
- gsd-plan-checker.md: grep -A10 pattern
- commands/gsd/research-phase.md: grep patterns (2 occurrences)
phase next-decimal:
- insert-phase.md: complex bash decimal calculation
- decimal-phase-calculation.md: reference doc rewritten
phase-argument-parsing.md: updated to reference gsd-tools
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-08 00:44:49 -06:00
TÂCHES
d44c7dcc9b
refactor: update commands, workflows, agents for gsd-tools integration
...
Commands (15): audit-milestone, complete-milestone, debug, execute-phase,
help, insert-phase, new-milestone, new-project, plan-milestone-gaps,
plan-phase, progress, quick, remove-phase, research-phase, verify-work
Workflows (22): execute-plan (69% reduction), verify-phase (55%), others
Agents (14): All updated for new workflow structure
Total token savings: ~22k chars (75.6% in affected sections)
Ported from: get-shit-done-v2@d1fb2d5, 7f79a9b
2026-02-07 11:25:35 -06:00
Cristian Uibar
5660b6fc0b
fix: Gemini CLI agent loading errors ( #347 )
...
* fix: convert agent frontmatter for Gemini CLI compatibility
- Add claudeToGeminiTools mapping (Read→read_file, Bash→run_shell_command, etc.)
- Add convertGeminiToolName() to map tools and filter out mcp__*/Task
- Add convertClaudeToGeminiAgent() to convert agent YAML frontmatter
- Hook conversion into agent copy logic for Gemini installs
- Fixes: tools as YAML array (not string), color field removed, mcp__* excluded
* fix: enable experimental.enableAgents for Gemini CLI installs
* fix: strip HTML <sub> tags for Gemini CLI terminal output
* fix: replace ${VAR} with $VAR in agent templates to avoid Gemini CLI template parsing
2026-01-29 19:43:01 -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
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
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