The module wrote its own command for each Claude Code hook, copied from
Worktrunk's plugin before the plugin moved every hook to one command that
reads the event from the hook payload. The copies have since drifted:
WorktreeCreate always passes --create, so reopening a kept worktree fails;
activity markers follow the shell's cwd instead of CLAUDE_PROJECT_DIR; and
an EnterWorktree into a Worktrunk worktree isn't approved.
Each hook now runs `wt config plugins claude hook`, the command the plugin
registers for every event, so hook behavior follows the installed `wt`.
This drops the jq dependency and needs worktrunk 0.81.0 or later.
nixpkgs#558216 switched the worktrunk package to the installAgentSkills
hook, moving the bundled skills from $out/skills/ to
$out/share/skills/worktrunk/.
Assisted-by: Claude-Code:GLM-5.3
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
Build on the existing programs.worktrunk module:
- add bash/zsh/fish/nushell shell integrations, enabled by default via
the corresponding home.shell.enable<SHELL>Integration options,
- add an opt-in programs.worktrunk.claudeCodeIntegration, which wires
worktrunk into programs.claude-code: a statusLine, WorktreeCreate/
WorktreeRemove hooks (so agent isolation routes through wt), activity
state-marker hooks (🤖/💬 in wt list), and skills. Of the skills,
/wt-switch-create is on by default while /worktrunk is off by default,
since settings already manages the config it would help edit.
Both integrations need the wt binary, so they are inert when package is
set to null.
Follow-up to #9226, recreating the integration part of #9788.
Assisted-by: Claude-Code:GLM-5.3