writing-user-outputs
Output System Architecture
Shell Integration
Worktrunk uses split file-based directive passing for shell integration:
- Shell wrapper creates two temp files via
mktemp(cd and exec) - Shell wrapper sets
WORKTRUNK_DIRECTIVE_CD_FILEandWORKTRUNK_DIRECTIVE_EXEC_FILE - wt writes a raw path to the CD file; shell commands to the EXEC file (for
--execute) - Shell wrapper reads the CD file with
cd -- "$(< file)"(no shell parsing) - Shell wrapper sources the EXEC file if non-empty
When neither directive env var is set (direct binary call), commands execute directly and shell integration hints are shown.
Output Functions
More from max-sixty/worktrunk
worktrunk
Guidance for Worktrunk (the `wt` CLI) — git worktree management, hooks, and config. Load when editing .config/wt.toml or ~/.config/worktrunk/config.toml; adding, modifying, or debugging hooks (post-merge, post-start, pre-commit, pre-merge, post-switch, etc.); configuring commit message generation or command aliases; or troubleshooting wt behavior. Also answers general worktrunk/wt questions.
2.1Kwt-switch-create
Create a new worktrunk worktree (optionally in another repo) and switch this session's working directory into it. Use when launching a session that should work in its own worktree (e.g. `/wt-switch-create my-branch -- <task>`, or `/wt-switch-create my-branch ~/workspace/other-repo -- <task>`), or mid-session to move work into a fresh branch.
71release
Worktrunk release workflow. Use when user asks to "do a release", "release a new version", "cut a release", or wants to publish a new version to crates.io and GitHub.
64running-in-ci
CI environment rules for GitHub Actions workflows. Use when operating in CI — covers security, CI monitoring, comment formatting, and investigating session logs from other runs.
27triage-issue
Triages new GitHub issues — classifies, reproduces bugs, attempts conservative fixes, and comments. Use when a new issue is opened and needs automated triage.
12issue-triage
Triages new GitHub issues — classifies, reproduces bugs, attempts conservative fixes, and comments. Use when a new issue is opened and needs automated triage.
11