Add worktree create/remove VSCode tasks#24
Merged
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… prefix, not the full command
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds consumer-template VS Code tasks to create/remove git worktrees under .claude/worktrees/<name> (with best-effort tokensave integration) and updates the template ignore list accordingly, with accompanying design/plan documentation under docs/superpowers/.
Changes:
- Converted
templates/.vscode/tasks.jsonto JSONC and addedworktree: create/worktree: removetasks plus aworktreeNameprompt input. - Updated
templates/.gitignoreto ignore.claude/worktrees/and.tokensavegenerated by the new tasks. - Added design + implementation plan docs describing the intended behavior and validation approach.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| templates/.vscode/tasks.json | Adds worktree create/remove tasks (with Windows overrides) and reorganizes file as JSONC with section comments. |
| templates/.gitignore | Ignores worktree directory and tokensave state generated by the new tasks. |
| docs/superpowers/specs/2026-07-16-worktree-vscode-tasks-design.md | Design spec documenting intended VS Code task behavior and best-effort tokensave wrapping. |
| docs/superpowers/plans/2026-07-16-worktree-vscode-tasks-plan.md | Implementation/verification plan for the template changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…elds The Step 1 "exactly this content" snippet had gone stale relative to the shipped templates/.vscode/tasks.json after the final-review detail-field addition (7be049a). Also relabels the code fence jsonc since it contains // comments, not strict JSON. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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
worktree: create/worktree: removeVS Code tasks totemplates/.vscode/tasks.json, matching the pattern fromgithub.com/stlab/cel-rs: creates a git worktree at.claude/worktrees/<name>on branchworktree-<name>, syncs it withtokensave, and opens it in a new editor window (remove reverses this).tokensavecalls are wrapped to be best-effort on both bash and Windows (cmd.exe) forms — the worktree still gets created/removed and the editor still opens even iftokensaveisn't installed or errors, so the primary git operation is never blocked by an optional integration.templates/.vscode/tasks.jsonfrom strict JSON to JSONC (adds//section-divider comments); all 11 pre-existing tasks and 14 inputs are preserved byte-identical..claude/worktrees/and.tokensavetotemplates/.gitignore.cmake/cpp-library-setup.cmake— both files were already registered for template copying.Test plan
cmake -P tests/install/CMakeLists.txt,tests/install/test_provider_merge.cmake,tests/setup/test_setup_version_resolution.cmakeall pass (unchanged baseline)worktree: create/worktree: removecommand strings tested directly (bash and Windows/cmd.exe forms) withtokensaveboth present and simulated-absent🤖 Generated with Claude Code
Note
Low Risk
Template-only and documentation changes; no CMake or runtime library behavior. Shell tasks run git locally in dev environments only.
Overview
Consumer projects get
worktree: createandworktree: removeVS Code tasks intemplates/.vscode/tasks.json, aligned with cel-rs: prompt for a name, add/remove a worktree under.claude/worktrees/<name>on branchworktree-<name>, optionally sync viatokensave, and open a new window on create.Unlike the reference,
tokensaveis best-effort on bash and Windows (cmd.exeoverrides): git worktree andcode --new-windowstill run iftokensaveis missing or fails. The templatetasks.jsonis JSONC (section//comments); existing CMake/cleanup tasks are unchanged aside from comments and movinginputsto the top with a newworktreeNameprompt.templates/.gitignorenow ignores.claude/worktrees/and.tokensave. Design and implementation plan docs were added underdocs/superpowers/.Reviewed by Cursor Bugbot for commit 0c92a11. Bugbot is set up for automated code reviews on this repo. Configure here.