Taskspace
Run several AI coding tasks in parallel without them stepping on each other.
Each task is an isolated copy of your workspace: the repos it changes get their own git worktree and task/<name> branch, the other repos stay as read-only context, and every Claude Code session reports its status live in the sidebar.
Português
Taskspace is an independent open-source project. It works with Claude Code but is not affiliated with or endorsed by Anthropic.
Why
Working with an agent on one task at a time is slow; working on several at once in the same checkout is chaos. Git worktrees solve the isolation, but juggling them by hand across many repos, copying .env files, reinstalling dependencies and remembering which window is which gets old fast. Taskspace does that bookkeeping for you.
Features
- Tasks across many repos. Create a task from the folders open in VS Code: one repo, a parent folder with your repos inside it, or a multi-root workspace. With a parent folder, Claude in the task still gets its
CLAUDE.md and knows where its shared files (docker-compose.yml, docs...) are. Pick the repos it will change: ✏️ editable repos get a worktree, 👁 context repos stay as they are so the agent still sees the whole system. Each task opens in its own window.
- Your local setup comes along. Personal files (
.env, .claude/, a local CLAUDE.md...) are copied into each worktree and kept out of the task's commits. Dependency folders (node_modules, vendor) are copied too, using copy-on-write cloning when the disk supports it (APFS, Btrfs, XFS).
- Live session status. See which Claude session is 🔵 working, 🟡 needs you (permission, question, plan approval), ✅ done or 🔴 failed. The status bar counts who needs you, and you get a notification when a session stops, even if VS Code is in the background.
- Edit guard. Claude is blocked from editing context repos, the main checkout of an editable repo or the shared files of the parent folder, and told which worktree path to use instead.
- Bring files from main. Need uncommitted work from your main checkout? Pick the files; Taskspace applies just your local diff (with a 3-way merge if main moved on) or copies untracked and ignored files.
- Review and ship. Review a task's changes in VS Code's changes editor, open one PR per repo with the PRs linked to each other, and Finish the task after the merge to clean up worktrees and branches. Nothing with pending work is ever deleted without an explicit choice.
- Keep main up to date. One click checks out the default branch and fast-forwards all repos at once (turn on
taskspace.syncMain.confirm to see a dry run first). Repos where Claude is working, or where uncommitted work would conflict, are skipped.
Requirements
- VS Code 1.95 or newer, Git 2.25 or newer.
- Claude Code (the VS Code extension or the CLI) for session status and the edit guard.
- Node.js on Windows (session status hooks run with it). On macOS and Linux it is used when available.
- GitHub CLI (
gh auth login) only for creating PRs and finishing tasks.
Works on macOS, Linux and Windows, and in remote windows (SSH, WSL, containers), where it runs next to your repositories.
Getting started
- Open your repositories in VS Code (a single repo, the folder that contains them, or a multi-root workspace).
- Open the Taskspace view in the activity bar and accept installing the Claude Code hooks (or run Taskspace: Install Claude Code Hooks).
- Click + to create a task: name it, check the repos it will change, choose any local changes to bring along.
- The task opens in a new window. Start Claude there and switch to something else; Taskspace tells you when it needs you.
- When it's ready: right-click the task → Review Changes → Create PRs. After the merge → Finish.
The Getting Started walkthrough (? in the Taskspace view) shows the same steps inside VS Code.
What Taskspace changes on your machine
~/.taskspace/: session status, the task index and the installed hook.
~/.claude/settings.json: Taskspace's hooks (marked with --taskspace-hook), added only with your consent. A backup is kept once a day as settings.json.taskspace-backup-YYYY-MM-DD. Taskspace: Remove Claude Code Hooks removes them.
<repos>.tasks/<task>/: each task's folder, next to your repos by default (taskspace.tasksRoot changes it).
.git/info/exclude of your repos: a block named after the task hides its personal files from git while the task exists, and is removed with it.
Taskspace has no server and sends nothing anywhere; only git and gh, which you already use, talk to your remotes.
Settings
The ⚙ button at the top of the Taskspace view opens quick settings: language, notifications, hooks, dependencies, tasks folder and more, each changed with one click. The full list is below and in VS Code's settings.
| Setting |
Default |
Description |
taskspace.personalFiles |
CLAUDE.md, .env, .claude... |
Files that follow you into every task, kept out of commits. The 📌 button in Bring Files from Main adds to it. |
taskspace.cloneDependencies |
true |
Copy dependency folders into new worktrees. |
taskspace.dependencyDirs |
vendor, node_modules |
Folder names treated as dependencies. |
taskspace.tasksRoot |
(next to the repos) |
Where tasks are created (~ allowed). |
taskspace.osNotifications |
true |
System notification when a session needs you and VS Code is not focused. |
taskspace.ignoredNoise |
caches, builds, logs |
Ignored files hidden from Bring Files from Main. |
taskspace.language |
auto |
Language of the panel and messages: follow VS Code, English or Português (Brasil). |
taskspace.syncMain.confirm |
false |
Ask with a dry run before updating the default branch of all repos. |
Command line
Everything is also available from a terminal:
alias taskspace="node <this-repo>/dist/cli.js"
taskspace create "<name>" --from <file.code-workspace> --edit repoA,repoB
taskspace status --watch # live session status
taskspace bring <task> <repo> --items '[{"path":".env.local","kind":"ignored"}]'
taskspace diff <task> # files changed by the task
taskspace pr <task> --draft # push + one PR per repo, linked to each other
taskspace finish <task> # after the PRs are merged
taskspace sync-main <folder> --dry-run
taskspace --help
Development
npm install
npm run check # type-check + build (dist/extension.js, dist/cli.js, dist/hook.js)
npm test # end-to-end tests with real git repos in a temp folder
npm run package # taskspace.vsix
User-facing text is in English in the code, wrapped in t(); the Portuguese translations live in src/core/i18n.pt-br.ts (a test fails if one is missing). Manifest strings are in package.nls*.json.
Releasing
.github/workflows/release.yml publishes a version when a vX.Y.Z tag is pushed: it checks that the tag matches package.json, runs the checks and tests, publishes to the VS Code Marketplace (and to Open VSX when enabled), and creates a GitHub Release with the .vsix and the CHANGELOG notes. No tokens are stored: both registries trust the workflow through OIDC (Trusted Publishing).
One-time setup: on marketplace.visualstudio.com/manage, open the publisher, Trusted Publishing → Create, and enter the repository owner, the repository and the workflow release.yml. For Open VSX, add this repository as a trusted publisher of the namespace and set the repository variable OPENVSX_ENABLED to true.
Each release:
# add a "## X.Y.Z" section to CHANGELOG.md and commit it, then:
npm version patch # or minor / major: bumps package.json, commits and tags vX.Y.Z
git push --follow-tags
License
MIT