Overview
Uzi’s workflow is designed around managing multiple AI coding agents working in parallel, each in their own isolated Git worktree with their own development server. Here’s what a typical session looks like:Start agents with a task
Launch multiple agents with a specific prompt using the What happens:
uzi prompt command.- Creates 5 agents total (3 claude, 2 codex)
- Each agent gets a unique Git worktree in
~/.local/share/uzi/worktrees/ - Each agent gets a dedicated tmux session
- Each agent gets its own development server on a unique port (if configured)
- All agents receive the same initial prompt
Run uzi auto to handle confirmations
Let What it does:
uzi auto automatically handle tool execution confirmations.- Monitors all agent tmux sessions in real-time
- Automatically presses Enter when agents request tool execution confirmation
- Handles continuation prompts
- Runs until you interrupt with Ctrl+C
Monitor agent progress
Watch what your agents are doing in real-time.Example output:Understanding the output:
- STATUS:
ready(idle),running(actively thinking/working) - DIFF: Shows
+insertions/-deletionscompared to base branch - ADDR: Development server URL for testing changes
- PROMPT: The initial prompt given to the agent
Send additional instructions
Broadcast messages to all active agents at once.What happens:
- Message is sent to all active agent sessions
- Each agent receives it as if you typed it directly
- Useful for course corrections or additional requirements
Checkpoint completed work
Merge an agent’s changes back into your current branch.What happens:
- Stages all changes in the agent’s worktree
- Creates a commit with your message on the agent’s branch
- Rebases the agent’s branch onto your current branch
- Brings all changes into your working directory
Complete Example
Here’s a real-world example putting it all together:Best Practices
Configuration
Always create auzi.yaml in your project root:
Running Multiple Agents
- Start with 2-3 agents for the same task to compare approaches
- Use different AI tools to get diverse solutions:
--agents claude:2,codex:1,aider:1 - Use random names for variety:
--agents random:5
Monitoring
- Keep
uzi ls -wrunning in a dedicated terminal - Check the
DIFFcolumn to see which agents are making progress - Visit agent dev servers to test their implementations
Checkpointing
- Review changes before checkpointing by visiting the agent’s dev server
- Use conventional commit messages:
feat:,fix:,refactor:, etc. - Checkpoint incrementally rather than waiting for complete features
- Test after checkpointing to ensure the merged code works in your main environment
Resource Management
- Kill agents you’re not using:
uzi kill agent-name - Run
uzi kill allwhen switching tasks - Each agent uses disk space and a port - clean up regularly
Attaching to Sessions
To manually interact with an agent’s tmux session:Next Steps
Managing Agents
Learn advanced techniques for monitoring and controlling agents
Checkpointing
Deep dive into merging agent work back to your main branch