Arguments:
$ARGUMENTS
. Grammar:
[] [] [-- ]
.
branch
— optional; the branch name for the new worktree. When omitted,
pick one (step 1 below).
repo
— optional path; create the worktree in this repo instead of the
session's current one.
task
— optional; what to do inside the new worktree. No task means enter
the worktree and wait.
Tokens before the
--
are the branch and/or repo: a path-shaped token
(starting with
/
,
~
,
./
, or
../
) is the repo; any other token is the
branch (
docs
is a branch name, never the
docs/
directory). More than one
branch-shaped token before a
--
doesn't fit the grammar — ask. Without a
--
, judge where the task starts: leading tokens that read as a branch name
(
fix-auth
) or a repo path are consumed as such, and the rest is the task;
otherwise the whole input is the task (
fix the parser bug
has no
branch-shaped lead — all task).
Show more
Installs
855
Repository
max-sixty/worktrunk
GitHub Stars
6.3K
First Seen
May 12, 2026
Security Audits
Gen Agent Trust Hub
Pass
Socket
Pass
Snyk
Pass