chore: add gwq worktree support for parallel coding sessions#75
Merged
Conversation
Enable multiple Claude Code sessions to run in parallel, each in an isolated git worktree with its own node_modules, database, and dev server ports. Includes gwq installation in sandbox Dockerfile, helper scripts for worktree lifecycle management, configurable dev server ports via CLIENT_DEV_PORT env var, and documentation in CLAUDE.md. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
🎉 This PR is included in version 1.7.0-beta.14 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Contributor
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scripts/install-gwq.shfor existing sandboxesscripts/worktree-create.shandscripts/worktree-remove.shfor worktree lifecycle with automatic port slot allocation (slots 1-3), agent-memory symlink, and npm bootstrapCLIENT_DEV_PORTandPORTenv vars inclient/webpack.config.cjs(backward-compatible defaults).gwq.tomlproject config,.env.worktreeto.gitignore,processto ESLint CJS globalsCLAUDE.mdwith port allocation table and usage examplesTest plan
gwq --versionworks in a freshly built sandboxscripts/worktree-create.sh feat/test-worktree 1— confirm directory,.env.worktree, agent-memory symlink, andnode_modules/existnpm run devbinds to 3000/5173; in new worktree,source .env.worktree && npm run devbinds to 3001/5174scripts/worktree-remove.sh feat/test-worktree— confirm directory removednpm run lint && npm run format:check && npm run typecheck && npm test && npm run build && npm audit🤖 Generated with Claude Code