Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Isolates parallel tasks in separate git worktrees via the worktree tool's status, new, merge and remove actions.
25% 67%+42 ptsof test cases passed
Passed 16 of 24 test cases with the skill, and 6 of 24 without it.
I need to inspect `package.json` inside the workspace directory `/repo/wt/dep-update`. How should read_file be parameterized?
Passes work_dir set to /repo/wt/dep-update when calling read_file.
This test ran on v2. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Several sessions in one checkout overwrite each other and contend for git's
index. A worktree is one directory + one branch per task, sharing the
repository. CLI, Web, Desktop, IM and headless runs all load this skill and
all have the worktree tool; the surface is only the outlet, not a different
capability set.
Use worktree(action="new") to create or reuse a checkout. It returns a path.
Pass that path as work_dir on read_file / write_file / apply_patch /
execute; on glob / grep, pass it as path. Omit those arguments and the
call stays in this session's directory. The agent's own cwd does not move.
In Web / Desktop / IM, /worktree opens the worktree picker. It calls the
same backend operation as the model tool; selecting Bind also switches the
session's working directory and rebuilds that session's agent. In the CLI,
/worktree status|new|merge|remove is the human-facing command; a new CLI
process that should start inside a tree is agentica --worktree <task>.
Do not cd and expect later tool calls to follow — each call is independent.
Do not call git worktree add through execute.
Do not write Python inside a product session to import
agentica.git.worktree.ensure: that only makes a
directory, bypasses session binding and leaves later calls in the wrong place.
Use worktree or the matching /worktree outlet.
Python SDK callers may use agentica.git.worktree.ensure directly when their
host process owns the working directory, or mount WorktreeTool explicitly on
Agent / DeepAgent. Bundled product skills are not loaded by SDK callers;
this paragraph is a documented escape hatch, not an instruction for an agent
running in CLI / Web / Desktop / IM / headless / cron.
Not this: a read-only task subagent (it does not write).
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.