mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-26 02:05:31 +00:00
Keep branch creation ownership with the linked checkout so a failed after-hook can be retried with the same branch. Leave same-repository change requests with a local branch collision to the checkout path that fetches the change request head. Use the worktree timeout for compatibility commands.
Worktrunk plugin example
Delegates Paseo worktree creation, removal, and restoration to Worktrunk (wt), and updates wt list activity markers (🤖 / 💬) as agents run.
What it does
- Create: routes branch-off, branch checkout, GitHub PR (
pr:N), and GitLab MR (mr:N) creation throughwt switch --no-cd --yes --format=jsonso Worktrunk controls placement, branch setup, andpre-start/post-starthooks. Unsupported forges decline and fall back to Paseo's Git checkout. - Remove: routes archive and creation rollback through
wt remove --foreground --no-delete-branch --yesso Worktrunk runspre-removeandpost-removehooks while keeping the branch for Paseo's restore flow. - Restore: routes archived worktree restoration through
wt switch --path <recorded-path>for branch restores, and falls back to Paseo for detached-commit restores. - Activity markers: sets
🤖when an agent turn starts,💬when a turn ends or awaits permission, and clears the marker on close or archive. Background helpers are skipped.
Prerequisites
Install Worktrunk (wt, or git-wt.exe on Windows) on PATH, or set WORKTRUNK_BIN in the daemon environment.
Install
paseo plugin install /absolute/path/to/plugin-examples/worktrunk