Loading...
Loading...
Fork terminal sessions to spawn parallel AI agents or CLI commands in new terminal windows. Supports git worktrees for isolated parallel development.
npx skill4agent add thrownlemon/claude-code-plugins fork-terminal| Tool | Trigger Pattern | Default Model |
|---|---|---|
| Claude Code | "fork terminal use claude code..." | opus |
| Codex CLI | "fork terminal use codex..." | gpt-5.1-codex-max |
| Gemini CLI | "fork terminal use gemini..." | gemini-3-pro-preview |
| Raw CLI | "fork terminal run..." | N/A |
fork_terminal(command)cookbook/claude-code.mdcookbook/codex-cli.mdcookbook/gemini-cli.mdcookbook/cli-command.mdprompts/fork_summary_user_prompt.mdpython3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "<full_command>"<command> --helppython3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "<command>"Security Warning: Theflags and--dangerously-*(yolo) mode bypass safety prompts. Only use in trusted environments where you understand the risks of unattended AI agent execution.-y
# Fork with Claude Code
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "claude --model opus --dangerously-skip-permissions"
# Fork with Codex CLI
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "codex --model gpt-5.1-codex-max --dangerously-bypass-approvals-and-sandbox"
# Fork with Gemini CLI
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "gemini --model gemini-3-pro-preview -y"
# Fork with raw CLI
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/fork_terminal.py "npm run dev"AskUserQuestioncookbook/worktree.mdpython3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/spawn_session.py \
--task "<task description>" \
[--branch "<branch-name>"] \
[--base "<base-branch>"] \
[--count <1-4>] \
[--model <opus|haiku>] \
[--mode <interactive|autonomous>] \
[--terminal <auto|tmux|window>]# Single worker
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/spawn_session.py \
--task "implement user authentication"
# Multiple workers
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/spawn_session.py \
--task "write API tests" \
--count 3
# From specific base branch
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/spawn_session.py \
--task "fix bug in login" \
--base develop \
--branch "fix/login-bug"/fork-terminal:list/fork-terminal:remove --path <path>AskUserQuestion{
"questions": [{
"question": "Where should the tournament workers run?",
"header": "Terminal",
"options": [
{"label": "tmux (Recommended)", "description": "Background sessions - more reliable, no visible windows"},
{"label": "Warp/Terminal", "description": "Visible windows - watch workers in real-time"}
],
"multiSelect": false
}]
}cookbook/tournament.mdpython3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/tournament.py spawn \
--task "<task description>" \
[--clis claude,gemini,codex] \
[--base <base-branch>] \
--terminal <tmux|window>/fork-terminal:status/fork-terminal:review| Command | Description |
|---|---|
| Check tournament progress |
| Review completed solutions |
| List all worktrees |
| Clean up worktrees |
# Spawn tournament
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/tournament.py spawn \
--task "implement user authentication" \
--clis claude,gemini,codex
# Check status
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/tournament.py status \
--tournament "<tournament-id>"
# Generate review report
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/tournament_review.py report \
--tournament "<tournament-id>"
# Create combined branch
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/tournament_review.py combine \
--tournament "<tournament-id>"python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/visual_tournament.py \
--task "<task or prompt>" \
[--clis claude,gemini,codex]~/.fork-terminal/visual/<id>/<cli>.txtCtrl+B then Dtmux attach -t <session>| Shortcut | Action |
|---|---|
| Detach (CLIs continue in background) |
| Scroll mode (q to exit) |
| Zoom current pane (toggle) |
| Switch between panes |
# Run all CLIs to review code
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/visual_tournament.py \
--task "Review this codebase for security issues"
# Run specific CLIs
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/visual_tournament.py \
--task "Analyze the authentication flow" \
--clis claude,gemini
# Don't auto-attach (run in background)
python3 ${CLAUDE_PLUGIN_ROOT}/skills/fork-terminal/tools/visual_tournament.py \
--task "Review the API endpoints" \
--no-attach