Skip to content

docs(workmux): default agent worktrees to --mode session - #27

Open
tomfordweb wants to merge 1 commit into
mainfrom
chore/workmux-headless-agent-worktrees
Open

docs(workmux): default agent worktrees to --mode session#27
tomfordweb wants to merge 1 commit into
mainfrom
chore/workmux-headless-agent-worktrees

Conversation

@tomfordweb

Copy link
Copy Markdown
Owner

Agent-created worktrees used workmux's default window mode, so every worktree in an epic added a window to the attached tmux session. A multi-worktree epic left tens of empty windows behind.

--mode session parks each worktree in its own detached tmux session instead. Verified live: worktree lands in the project's worktree_dir, gets a detached session, adds zero windows to the attached session, and workmux rm removes the session with the worktree.

Also records the trap I hit while looking for a config-level fix: workmux add --config <file> replaces the project .workmux.yaml rather than layering on it. A probe with an alternate config put the worktree in andromeda__worktrees/ instead of .worktrees/, which also skips post_create (pnpm install) and every file copy/symlink. Pass the flag, not a config file.

Touches the agent rule in three places: AGENTS.shared.md, ai-tools/CLAUDE.md, and the spawn-workmux skill.

Agent-created worktrees used the default window mode, so every worktree in an
epic added a window to the attached tmux session and left tens of empty windows
behind. --mode session parks each worktree in its own detached session instead;
workmux rm tears it down with the worktree.

Also records why --config is not the way to set this: a --config file replaces
the project .workmux.yaml rather than merging with it, so the worktree lands
outside worktree_dir and skips post_create hooks and file copy/symlink ops.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant