writing-user-outputs
Installation
SKILL.md
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.