colony start
Start all agents in the colony.
Synopsis
colony start [OPTIONS]
Description
The start command launches all configured agents in a tmux session. Each agent runs in its own isolated tmux pane with its own git worktree.
Options
--no-attach
Start the colony without automatically attaching to the tmux session.
colony start --no-attach
What Happens
When you run colony start:
- Tmux Session - Creates a tmux session (default name:
colony-<project>) - Git Worktrees - Sets up isolated git worktrees for each agent
- Agent Panes - Creates a tmux pane for each agent
- Claude Code - Launches Claude Code in each pane
- Startup Prompts - Sends configured startup instructions to each agent
- Auto-attach - Attaches to the session (unless
--no-attach)
Examples
Start and Attach
colony start
This starts all agents and automatically attaches you to the tmux session.
Start Without Attaching
colony start --no-attach
Agents start in the background. Attach later with:
colony attach
Start and Monitor
colony start --no-attach && colony tui
Start agents in background and launch the TUI monitor.
Tmux Layout
The default layout creates a pane for each agent:
┌─────────────┬─────────────┐
│ agent-1 │ agent-2 │
│ │ │
│ │ │
│ │ │
└─────────────┴─────────────┘
With more agents, tmux automatically tiles the panes.
Tmux Key Bindings
Once attached to the session:
Ctrl+b d- Detach from session (agents keep running)Ctrl+b arrow- Navigate between panesCtrl+b z- Zoom/unzoom current paneCtrl+b [- Enter scroll mode (q to exit)
Agent Isolation
Each agent operates in isolation:
- Separate worktree - No git conflicts between agents
- Independent directory - Each agent has its own working directory
- Isolated processes - Each Claude Code instance runs independently
- Unique configuration - Each agent can have different MCP servers
Checking Status
While agents are running:
# Quick status check
colony status
# Real-time TUI
colony tui
# View logs
colony logs agent-id
Stopping Agents
# Stop all agents
colony stop
# Stop specific agent
colony stop agent-id
Troubleshooting
"tmux not found"
Install tmux:
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt-get install tmux
"tmux session already exists"
A colony session is already running. Options:
# Attach to existing session
colony attach
# Stop existing session first
colony stop
colony start
Agent fails to start
Check logs:
colony logs agent-id
Common issues:
- Git worktree conflicts
- Invalid configuration
- MCP server errors
"Cannot create worktree"
Ensure you're in a git repository with at least one commit:
git add .
git commit -m "Initial commit"
colony start
Configuration
Control startup behavior in colony.yml:
name: my-colony
agents:
- id: agent-1
role: Backend Engineer
focus: API development
model: claude-sonnet-4-20250514
worktree: agent/backend
startup_prompt: |
Custom startup instructions here
# Optional: customize tmux behavior
# (future enhancement)
Behind the Scenes
Colony performs these steps:
- Load
colony.ymlconfiguration - Validate agent configurations
- Create/verify git worktrees
- Start tmux session
- Create panes for each agent
- Set up MCP server configurations
- Launch Claude Code processes
- Send startup prompts
- Attach to session (if not
--no-attach)
See Also
- colony stop - Stop agents
- colony attach - Attach to session
- colony status - Check agent status
- colony tui - Real-time monitoring