Skip to content

Add gstack with shared build for worktree support#90

Open
mzhaom wants to merge 3 commits into
mainfrom
feature/gstack
Open

Add gstack with shared build for worktree support#90
mzhaom wants to merge 3 commits into
mainfrom
feature/gstack

Conversation

@mzhaom

@mzhaom mzhaom commented Mar 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Pin gstack version via .gstack-version (commit hash, no submodule)
  • scripts/setup.sh clones gstack to ~/.gstack/builds/<commit>/ and symlinks into the worktree — all worktrees share one ~300MB build
  • .wt.yaml hook auto-runs setup on wt new/wt open/wt init
  • Non-wt users run scripts/setup.sh once (documented in CLAUDE.md)

Test plan

  • Run scripts/setup.sh on a fresh machine (no ~/.gstack/) — should clone, build, and symlink
  • Run scripts/setup.sh again — should be near-instant (build cached)
  • wt new test-gstack — should auto-setup via hook
  • Verify ls -la .claude/skills/review resolves through symlink chain

🤖 Generated with Claude Code


Note

Medium Risk
Introduces a new setup script that clones/builds external code and writes symlinks under .claude/skills, which can affect developer environments and worktree behavior if the pinned commit or build steps change.

Overview
Adds pinned gstack integration for Claude skills via a new .gstack-version and an idempotent scripts/setup.sh that clones/fetches gstack, creates a shared worktree build under ~/.gstack/builds/<commit>, and symlinks gstack plus individual skills into .claude/skills/.

Configures worktree creation to auto-run setup via .wt.yaml, updates CLAUDE.md to document running scripts/setup.sh, and expands .gitignore to exclude the generated gstack/skill symlinks.

Written by Cursor Bugbot for commit a679f22. This will update automatically on new commits. Configure here.

mzhaom and others added 3 commits March 25, 2026 13:46
Pin gstack version via .gstack-version (commit hash). scripts/setup.sh
clones to ~/.gstack/builds/<commit>/ and symlinks into the worktree,
so all worktrees share one ~300MB build. .wt.yaml hook auto-runs setup
on `wt new`/`wt open`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant