Workflow Examples
Common patterns for using CCCC to coordinate AI agents.
Solo Development with One Agent
The simplest setup: one agent assisting you with a project.
Setup
bash
cd /your/project
cccc attach .
cccc actor add assistant --runtime claude
ccccWorkflow
- Open the Web UI at http://127.0.0.1:8848/
- Start the agent
- Send tasks via chat: "Implement the login feature"
- Watch the agent work in the terminal tab
- Review changes and provide feedback
Pair Programming with Two Agents
Use one agent for implementation and another for review.
Setup
bash
cccc actor add implementer --runtime claude
cccc actor add reviewer --runtime codex
cccc group startWorkflow
- Send implementation tasks to
@implementer - When complete, ask
@reviewerto review the changes - Iterate based on review feedback
Tips
- The reviewer can catch bugs and suggest improvements
- Use different runtimes for diverse perspectives
- Keep tasks focused and specific
Multi-Agent Team
For complex projects, use multiple specialized agents.
Setup Example
bash
cccc actor add architect --runtime claude # Design decisions
cccc actor add frontend --runtime codex # UI implementation
cccc actor add backend --runtime droid # API implementation
cccc actor add tester --runtime copilot # TestingCoordination
- The first enabled actor (architect) becomes foreman
- Foreman coordinates work across peers
- Use @mentions to direct tasks to specific agents
- Use Context panel for shared understanding
Best Practices
- Define clear responsibilities for each agent
- Use milestones to track progress
- Regular check-ins to ensure alignment
Remote Monitoring via Phone
Monitor and control your agents from anywhere.
Setup Options
Option 1: Cloudflare Tunnel (Recommended)
bash
# Quick (temporary URL)
cloudflared tunnel --url http://127.0.0.1:8848
# Stable (custom domain)
cloudflared tunnel create cccc
cloudflared tunnel route dns cccc cccc.yourdomain.com
cloudflared tunnel run ccccOption 2: IM Bridge
bash
cccc im set telegram --token-env TELEGRAM_BOT_TOKEN
cccc im startThen use your Telegram app to:
- Send messages to agents
- Receive status updates
- Control the group with slash commands
Workflow
- Set up remote access
- Leave agents running on your development machine
- Monitor and send commands from your phone
- Receive notifications on important events
Overnight Tasks
Run long-running tasks unattended.
Setup
- Define clear success criteria
- Set up IM Bridge for notifications
- Configure automation timeouts
Example
bash
# Configure notifications
cccc im set telegram --token-env TELEGRAM_BOT_TOKEN
cccc im start
# Start the task
cccc send "@foreman Please refactor the entire authentication module.
Report progress every hour."Monitoring
- IM Bridge sends updates to your phone
- Check progress via Web UI when convenient
- Agents notify on completion or errors