handoff-runner

Reviewed at commit 067d762

bg session 在 worktree 做完的分支,由你在面板按一顆按鈕快轉進 main:交接單只帶參數,步驟由 mod 推導,執行前檢查、執行後驗證

Made by
Hangghost
What we checked

Lets Claude or you create a hand-off ticket for a finished worktree branch; a panel then shows the checks and the exact git command, and only when you press Run does it fast-forward your target branch (default main) to that commit. Pushing to your remote is off unless you enable it. It reads git state, stores tickets inside the repository's .git folder and makes no other network calls.

Review details

Static review of the source at the pinned commit; not run. Registers the command /handoff, a model-callable tool handoff_issue (which only writes a ticket with branch, target and commit, never runs git writes), and hooks session.start, tool.call (for its own tool), command.run, ui.close and ui.render (AbovePrompt band and a Pane with buttons). Read-only git queries (rev-parse, merge-base, ls-remote, status, worktree list, check-ref-format, diff) go through an allow-list wrapper and run every 60 s while a repository is open. The only writing commands are built from the ticket parameters when the Run button is pressed: git merge --ff-only in the worktree that holds the target, or git update-ref with the expected old value, and optionally git push of that commit to the configured remote (push defaults to false). Before running, the steps are re-derived, compared with what is shown and checked against an allow-list that rejects force flags, deletes and non-absolute paths; branch names are validated. A lock directory and result files are written under <git common dir>/handoffs. Uses mkdir/rmdir through $.process for the lock. Failures are reported in a toast and stop the run. Does not call the model. Not reviewed: git itself and the user's remote.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for handoff-runner

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/handoff-runner.svg)](https://modsforclaude.com/mods/handoff-runner/)

← All mods