Commit graph

105 commits

Author SHA1 Message Date
Vedant
bc0049e51d feat: add google-search extension powered by Gemini Search grounding (#66)
Provides a `google_search` tool as an alternative to Brave-based web
search for users with Google Cloud / Gemini API credits. Sends queries
to Gemini 3 Flash with `googleSearch: {}` grounding enabled, returning
an AI-synthesized answer with source URLs from grounding metadata.

Features:
- In-session caching (keyed by normalized query)
- Defensive truncation via truncateHead
- Classified error handling (auth, rate-limit, general)
- Custom TUI rendering for call/result display
- Session start warning if GEMINI_API_KEY is missing
2026-03-11 16:48:17 -06:00
Lex Christopherson
928f38f2e4 2.3.4 2026-03-11 16:44:28 -06:00
Lex Christopherson
4096d5dd76 docs: update changelog for v2.3.4 2026-03-11 16:44:24 -06:00
Lex Christopherson
819c06b3cb chore: add GitHub Sponsors funding config
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:30:42 -06:00
Lex Christopherson
0d35e86549 feat(M001/S04): npm publish and install smoke test 2026-03-11 16:28:01 -06:00
Lex Christopherson
f8052870df feat: add CHANGELOG.md and project-local publish-version command
CHANGELOG.md covers v0.1.6 through v0.3.3 with curated entries.
Publish command uses manual npm publish instead of GitHub Action.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:26:07 -06:00
Lex Christopherson
88781cb722 docs: queue M003 — AI-Driven Test Flows 2026-03-11 16:20:39 -06:00
Lex Christopherson
7f130aa1e6 chore: bump version to 0.3.3
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:17:16 -06:00
Lex Christopherson
8d04971ac1 feat: add /voice extension for real-time speech-to-text
- macOS-only (SFSpeechRecognizer), no-op on other platforms
- /voice command and Ctrl+Alt+V shortcut to toggle
- Streams partial transcription results directly into editor input
- Custom footer with flashing red dot + 'transcribing' indicator on row 1
- Enter to stop and keep text, Esc to cancel
- Ships precompiled Swift binary (60KB)
2026-03-11 16:13:49 -06:00
Lex Christopherson
0c9fb1d1da feat: add mcporter extension for lazy MCP server integration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:12:12 -06:00
Lex Christopherson
b4ccbadd09 feat(gsd): add post-hook bookkeeping after each auto-mode unit
Run doctor (fix mode) and rebuild STATE.md after each unit completes
in handleAgentEnd. Catches missed checkboxes and stub summaries the
LLM may have skipped, and keeps STATE.md in sync with disk state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:12:08 -06:00
Lex Christopherson
5bb3229a85 feat: add /gsd next (step mode), make bare /gsd default to step mode, delete /gsd-run
- /gsd next: same state machine as /gsd auto but pauses between units
  with a wizard showing what completed and what's next
- /gsd (bare): now defaults to step mode instead of the old guided flow
- /gsd auto: unchanged — continuous execution without pausing
- Deleted /gsd-run slash command (redundant with /gsd auto)
- Step mode preserves through discuss → auto-start transition
- User can switch from step → auto mid-session via wizard option
- Progress widget shows NEXT/AUTO based on current mode
2026-03-11 16:11:16 -06:00
TÂCHES
8bd27f74e0 fix: idle watchdog false-fires on active agents (#52) (#65)
The idle watchdog checked lastProgressAt to detect stalled agents, but
nothing updated that timestamp during normal execution. Any task taking
>10min triggered false idle recovery, steering messages, and eventually
got skipped — even while actively writing code.

Add detectWorkingTreeActivity() check before recovery: if git reports
uncommitted changes, the agent is working. Bump lastProgressAt and
skip recovery. Genuinely idle agents (clean working tree) still get
recovered as before.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 16:08:46 -06:00
jonathancostin
85f60451fb feat: improve worktree merge, create, remove, and reload resilience (#61)
Merge improvements:
- Auto-detect current worktree: /worktree merge (bare) and /worktree merge main
  work from inside a worktree without specifying the worktree name
- Full repo diffs: preview and LLM prompt show all changed files, not just .gsd/
- Accurate preview: direct diff (main vs branch) shows actual merge impact
- Per-file line stats: +N/-N shown for each file in merge preview
- CWD fix: chdir to main tree before dispatching merge to prevent broken CWD
  after worktree cleanup
- Prompt includes explicit paths so the LLM knows where to read/write

Create/switch:
- /worktree create <name> works as alias for create-or-switch behavior
- Guard against creating a worktree when the branch is already in use

Remove:
- /worktree remove <name> validates the name exists before attempting removal
- /worktree remove <name> confirms before deleting
- /worktree remove all removes every worktree after confirmation prompt

Reload resilience:
- Detects if CWD is inside a worktree on extension init and restores
  originalCwd tracking, surviving /reload without losing worktree state

Command descriptions:
- /worktree shows '(also /wt)' in description
- /wt shows 'Alias for /worktree'
2026-03-11 15:46:34 -06:00
jonathancostin
09c5aa33ee feat: add /exit command to kill GSD process immediately (#60)
Registers /exit as a slash command that calls process.exit(0).
Quick way to quit without typing /quit.
2026-03-11 15:45:50 -06:00
jonathancostin
3b9a8c1c63 feat: add /clear as alias for /new slash command (#59)
Registers /clear as a command that calls ctx.newSession(), identical to /new.
Shows in autocomplete when typing /cl with 'Alias for /new' description.
2026-03-11 15:45:34 -06:00
Lex Christopherson
7b28162ade docs: rewrite discuss prompt with reflection step, questioning philosophy, depth enforcement, and visible previews 2026-03-11 14:46:05 -06:00
Lex Christopherson
d1d0b1acab fix: constrain browser screenshots to 1568px max dimension (#56)
The Anthropic API rejects images exceeding 2000px in multi-image requests.
With deviceScaleFactor=2, viewport screenshots were 2560x1600px, triggering
400 errors that halted execution. Add scale:"css" to all API-facing screenshot
calls and a constrainScreenshot() fallback that downscales oversized images
(e.g. fullPage on tall pages) via the browser's canvas — zero new dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 14:46:05 -06:00
dan bachelder
a69a44a890 Add pi global install scripts (#57) 2026-03-11 14:34:03 -06:00
Gary Trakhman
0a955c0b98 fix: support pi extensions from ~/.pi/agent/extensions/ (#51)
Update buildResourceLoader to include ~/.pi/agent/extensions/ in
additionalExtensionPaths, allowing GSD to discover and use extensions
installed in pi's default location.

This resolves extension loading issues when users have extensions
installed in ~/.pi/agent/extensions/ instead of ~/.gsd/agent/extensions/.

- resource-loader.ts: add piExtensionsDir to additionalExtensionPaths
- app-smoke.test.ts: add test verifying the source includes .pi path
2026-03-11 13:09:30 -06:00
Lex Christopherson
80d13379df chore: bump version to 0.3.1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:24:58 -06:00
Lex Christopherson
58ca04e7de fix: restore Windows VT input after child processes exit (#41)
Child processes (Git Bash/MSYS2) strip the ENABLE_VIRTUAL_TERMINAL_INPUT
flag from the shared stdin console handle, corrupting terminal input.
Re-enable the flag after every child process exits in bash.js, bg-shell,
and cache FFI handles in pi-tui for cheap repeated calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:24:44 -06:00
Lex Christopherson
d4a46beef7 fix: support print/JSON mode in cli.js so subagents don't hang
cli.ts unconditionally entered InteractiveMode, ignoring --mode, -p,
--no-session and other flags the subagent extension passes to child
processes. The child would wait for TTY input that never arrives
(stdin is "ignore"), causing the parent to hang forever on "working".

Parse CLI args to detect print/subagent mode and route to runPrintMode()
with proper session, model, extension, and system prompt handling.

Closes #45

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:21:12 -06:00
Lex Christopherson
aea1f8a51b docs: simplify star history embed 2026-03-11 11:15:02 -06:00
Lex Christopherson
8f78079daf docs: fix star history repo link 2026-03-11 11:01:26 -06:00
Lex Christopherson
97f27f17ce fix: prevent discuss prompt loop and refresh star history link 2026-03-11 10:57:19 -06:00
TÂCHES
0d251d9707 fix: bootstrap managed tools and gh auth
Preserve the original #39 fix while adding the missing hardening and regression coverage. Credit to @LuxVTZ for the original fix incorporated here.
2026-03-11 10:52:45 -06:00
TÂCHES
be94fede18 Merge pull request #47 from vp275/fix/sessions-scoped-to-cwd
fix: /resume shows sessions from all projects instead of current directory
2026-03-11 10:48:20 -06:00
vp275
f307923db2 fix: scope session list to current working directory
Sessions are stored in a single flat ~/.gsd/sessions/ directory, so
/resume shows sessions from all projects regardless of which folder
you're in.

Use per-cwd subdirectories under ~/.gsd/sessions/ with the same
path encoding the upstream SDK uses (--path-segments--), so /resume
only lists sessions from the current working directory.
2026-03-11 21:39:02 +05:30
TÂCHES
f72a86b773 Merge pull request #43 from FacuVCanale/fix/40-bash-hang-windows
fix: bash/bg_shell hang and process kill failures on Windows (#40)
2026-03-11 09:53:24 -06:00
Facu_Viñas
18d1418597 fix: bash/bg_shell hang and kill issues on Windows (#40)
- bg_shell killProcess: add Windows-specific taskkill /F /T /PID path
  with proper error handling (spawnSync with timeout, not stdio: "ignore")
- bg_shell startProcess: use getShellConfig() instead of hardcoded "bash",
  disable detached mode on Windows (process groups don't apply)
- GSD bash tool: wrap execute to inject 120s default timeout when the LLM
  omits the timeout parameter, preventing indefinite hangs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:56:48 -03:00
Marcel Reschke
8e1ddd51f2 fix: /gsd-run uses hardcoded ~/.pi/ path instead of GSD_WORKFLOW_PATH (#38)
* feat: /gsd migrate — .planning to .gsd migration tool

Add `/gsd migrate [path]` command that reads old get-shit-done .planning
directories and writes complete .gsd directory trees for GSD-2.

Pipeline: validate → parse → transform → preview → confirm → write → review

Parser (S01):
- 7 per-file parsers: roadmap, plan, summary, requirements, project, state, config
- Handles flat, milestone-sectioned, and <details>-block roadmap formats
- Bold phase entries, "Phase N:" format, decimal numbering, duplicate phase numbers
- Bullet-format requirements (- [x] **ID**: Description)
- Graceful null returns for missing files, severity-classified validation

Transformer (S02):
- Phases → slices, plans → tasks, milestones → milestones
- Float-sorted decimal phases renumbered sequentially (S01, S02, ...)
- Completion state preserved (roadmap [x] → slice done, summary → task done)
- Research consolidated with fixed file-type ordering
- Requirements classified with complete/done/shipped → validated normalization
- Vision derived from PROJECT.md with three-level fallback
- Duplicate phase numbers disambiguated by title similarity

Writer (S03):
- Format functions for all GSD-2 file types with round-trip verification
- writeGSDDirectory produces tree that deriveState() reads correctly
- generatePreview computes milestone/slice/task counts + completion %
- Null research and empty requirements silently skipped

Command (S04):
- Default to cwd when no args given; ~/path expansion
- Validation gating (fatal issues block pipeline)
- Preview with showNextAction confirmation
- Post-write agent review via prompts/review-migration.md template
- Wired into commands.ts with tab completion

Also:
- .gitignore: replace granular .gsd/* entries with .gsd/ catch-all
- README: add /gsd migrate to commands table + "Migrating from v1" section
- files.ts: widen parseRequirementCounts regex for non-R prefixed IDs

478 assertions across 6 test suites, all passing.
UAT against blade/bladeai (28 phases, 8 milestones) and aire (10 phases, 2 milestones).

* fix: persist skipped API keys so wizard doesn't repeat on every launch

When users skip optional API keys (Brave, Context7, Jina) by pressing
Enter, the wizard stores nothing. On next launch, authStorage.has()
returns false for those providers, so the wizard prompts again.

Fix: store an empty-key sentinel for skipped providers. Also guard
loadStoredEnvKeys against injecting empty strings into process.env.

* fix: respect GSD_WORKFLOW_PATH in /gsd-run command

---------

Co-authored-by: Jonathan Costin <jonathan.costin@outlook.com>
Co-authored-by: vp275 <vedantp42@gmail.com>
2026-03-11 08:11:54 -06:00
Lex Christopherson
a5fcc3964a Merge PR #24: Rename 'Get Stuff Done' to 'Get Shit Done' 2026-03-11 08:11:20 -06:00
amanape
c5c2ec4949 Replace remaining 'get stuff done' instances in verify script 2026-03-11 08:11:11 -06:00
amanape
1a05266326 Rename 'Get Stuff Done' to 'Get Shit Done' 2026-03-11 08:11:11 -06:00
Lex Christopherson
a32d6fb7b5 fix: handle Windows backspace in masked input + support custom browser path (#36, #34)
- wizard.ts: also check for \b (0x08) which Windows terminals send for backspace
- browser-tools: read BROWSER_PATH env var and pass as executablePath to Playwright

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 07:47:37 -06:00
Lex Christopherson
71f749c6da 0.3.0 2026-03-11 07:11:40 -06:00
Vedant
93ffe22e47 fix: persist skipped API keys so wizard doesn't repeat on every launch (#27) 2026-03-11 06:59:22 -06:00
jonathancostin
6b2f8b0a05 feat: /worktree (/wt) — git worktree lifecycle for GSD (#31) 2026-03-11 06:59:02 -06:00
jonathancostin
0b1f02219b fix: restore scoped models from settings on new session startup (#22) 2026-03-11 06:57:55 -06:00
Vedant
afa1fffaac fix: startup fallback overwrites user's default model with Sonnet (#29) 2026-03-11 06:57:31 -06:00
jonathancostin
f214912e66 feat: /gsd migrate — .planning to .gsd migration tool (#28) 2026-03-11 06:56:37 -06:00
Lex Christopherson
0ec7a36cd6 0.2.9 2026-03-11 02:42:27 -06:00
TÂCHES
b7e73a1b34 fix: idle recovery skips stuck units instead of silently stalling (#19)
Non-execute-task and execute-task idle recovery now:
- Checks if the artifact already exists before steering (early advance)
- Escalates steering on final attempt ("last chance before skip")
- Writes blocker placeholder artifacts and advances the pipeline when
  retries are exhausted, instead of pausing auto-mode silently

Closes #17

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 02:33:41 -06:00
TÂCHES
46c112bd37 Merge pull request #15 from alphinus/fix/pkg-version-sync
fix: sync pkg/package.json version with pi-coding-agent to prevent false update banner
2026-03-11 02:19:56 -06:00
alphinus_biosdesk
32156ec036 fix: sync pkg/package.json version with pi-coding-agent to prevent false update banner
pkg/package.json had a hardcoded version (0.1.0) that never got updated.
Since gsd-pi sets PI_PACKAGE_DIR=pkg/, pi's config.js reads VERSION from
pkg/package.json. The update check compares this stale version against npm
registry and always shows 'Update Available' even when the user is already
on the latest release.

Fix:
- Update pkg/package.json to current pi-coding-agent version (0.57.1)
- Add sync-pkg-version.cjs script that reads the installed pi-coding-agent
  version and writes it into pkg/package.json
- Run the sync script in prepublishOnly so the version stays correct on
  every publish
2026-03-11 09:07:17 +01:00
jonathancostin
424f7edf72 fix: treat milestones with summary but no roadmap as complete (#13)
Milestones completed before the roadmap convention (e.g. M001-M003)
have SUMMARY files but no ROADMAP. Previously these were treated as
incomplete, causing the first one to become the active milestone with
a fallback title like 'M001: M001'.

Now getActiveMilestoneId(), the completeMilestoneIds pre-computation,
and the deriveState() registry loop all check for a SUMMARY file when
no roadmap exists and mark the milestone as complete, extracting the
title from the summary H1.
2026-03-11 02:01:18 -06:00
Lex Christopherson
729218e58e chore: bump version to 0.2.8 2026-03-11 01:57:53 -06:00
Lex Christopherson
537c4b8ce8 feat: add mac-tools extension (macOS native automation) 2026-03-11 01:57:53 -06:00
Lex Christopherson
b05fb8df2c chore: bump version to 0.2.7 2026-03-11 01:53:34 -06:00