agents_launch
Launch multiple coding agents in a single tmux session, one pane per agent, with optional custom layouts and session replacement.
Instructions
Create a tmux session with one pane per agent and start each agent's command.
agents is a list of {"title": ..., "command": ..., "cwd": optional}.
Example command strings:
claude --model claude-sonnet-5 "$(cat prompts/wp1.md)"
codex --model gpt-5-codex "implement WP2 per docs/plan.md"
hermes chat -q "review the diff"
layout: auto (side-by-side for 2, tiled for 3+), or any tmux layout name
(even-horizontal, even-vertical, main-vertical, tiled).
If TMUX_AGENTS_OPEN_COMMAND is set the session is also opened in a terminal app.
replace=true kills an existing session of the same name first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| agents | Yes | ||
| layout | No | auto | |
| replace | No | ||
| session | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |