A collaborative development system where multiple AIs work togetherβjust like a real company!
In 3 lines:
- Multiple AI agents (President, Manager, Workers) cooperate on development
- Each runs in its own terminal window and exchanges messages
- Tasks are divided up like a human organization for efficient development Actual Achievements:
- Completed an βEmotiFlowβ survey system in 3 hours
- Generated 12 innovative ideas
- Achieved 100% test coverage
- Mac or Linux
- tmux (terminal multiplexer)
- Claude Code CLI
git clone https://github.com/nishimoto265/Claude-Code-Communication.git
cd Claude-Code-Communication./setup.shThis prepares 5 terminal windows in the background!
Open President's windowοΌ
tmux attach-session -t presidentStart Claude in the President's window:οΌ
# Browser authentication required
claude --dangerously-skip-permissionsOpen a new terminal:
# Start all 4 subordinates at once
for i in {0..3}; do
tmux send-keys -t multiagent.$i 'claude --dangerously-skip-permissions' C-m
doneγ»Each window may require browser-based Claude authentication
tmux attach-session -t multiagentYouβll see a 4-way split screen:
ββββββββββ¬βββββββββ
β boss1 βworker1 β
ββββββββββΌβββββββββ€
βworker2 βworker3 β
ββββββββββ΄βββββββββ
Enter:
You are president. Please create a stylish and rich IT company homepage.
And then, automaticallyοΌ
- The President instructs the Manager
- The Manager assigns tasks to three Workers
- They collaborate to develop
- Once finished, they report back to the President
- Role: Sets the overall direction
- Trait: Genius at understanding real user needs
- Catchphrase: γPlease realize this vision.γ
- Role: Middle manager who leads the team
- Trait: Master at drawing out membersβ creativity
- Catchphrase: γPlease give me three or more innovative ideas.γ
- worker1: Design (UI/UX)
- worker2: Data processing
- worker3: Testing
./agent-send.sh [recipient name] "[message]"
# Example: Send to manager
./agent-send.sh boss1 "This is a new project"
# Example: Send to worker1
./agent-send.sh worker1 "Please create the UI"President β ManagerοΌ
You are boss1.
[Project Name] Survey System Development
[Vision]
A system that anyone can easily use and see results immediately
[Success Criteria]
- Complete answers in 3 clicks
- Real-time result display
Please realize this with innovative ideas.
Manager β WorkerοΌ
You are worker1.
[Project] Survey System
[Challenge]
Please propose three or more innovative UI design ideas.
[Format]
1. Idea Name: [catchy name]
Overview: [description]
Innovation: [what's new]
Each agent's operation manual
president.md - Presidentβs manual
# Your Role
As the top manager, understand user needs and present a vision.
# 5 Layers of Needs Analysis
1. Surface: What to create
2. Function: What it can do
3. Benefit: What is improved
4. Emotion: How users should feel
5. Value: Why itβs importantboss.md - Managerβs manual
# Your Role
As a genius facilitator, maximize the team's creativity.
# 10-Minute Rule
Check progress every 10 minutes and support members who are struggling.worker.md - Workerβs manual
# Your Role
Leverage your expertise for innovative implementation.
# Task Management
1. Make a to-do list
2. Work through the list step-by-step
3. Report when finishedSystem-wide configuration file
# Agent Communication System
## Agent Structure
- PRESIDENT: Overall leader
- boss1: Team leader
- worker1,2,3: Implementers
## Send Messages
./agent-send.sh [recipient] "[message]"- π Survey that lets you express emotions with emoji
- π View results in real time
- π± Works on smartphones
cd emotiflow-mvp
python -m http.server 8000
# Open http://localhost:8000 in your browseremotiflow-mvp/
βββ index.html # Main screen
βββ styles.css # Design
βββ script.js # Logic
βββ tests/ # Tests
# Check status
tmux ls
# Restart
./setup.sh# View logs
cat logs/send_log.txt
# Test manually
./agent-send.sh boss1 "γγΉγ"# Full reset
tmux kill-server
rm -rf ./tmp/*
./setup.shType in the President window:
You are president.
Please create a TODO app.
It should be simple, easy to use, and allow adding, deleting, and completing tasks.
Then, automatically:
- Manager breaks down the tasks
- worker1 creates the UI
- worker2 manages the data
- worker3 writes tests
- Done!
βββββββββββββββββββ
β PRESIDENT β β President's window (purple)
βββββββββββββββββββ
ββββββββββ¬βββββββββ
β boss1 βworker1 β β Manager (red) and Worker 1 (blue)
ββββββββββΌβββββββββ€
βworker2 βworker3 β β Workers 2 and 3 (blue)
ββββββββββ΄βββββββββ
President
β γRealize the visionγ
Manager
β γEveryone, come up with ideasγ
Workers
β γFinished!γ
Manager
β γEveryone finishedγ
President
./tmp/
βββ worker1_done.txt # File created when worker1 finishes
βββ worker2_done.txt # File created when worker2 finishes
βββ worker3_done.txt # File created when worker3 finishes
βββ worker*_progress.log # Progress log
Human β AI β Result
Human β AI President β AI Manager β 3x AI Workers β Integration β Result
Benefits:
- 3x faster with parallel processing
- Makes use of specialization
- Lots of ideas
- High quality
Good example:
You are boss1.
[Project Name] Clear name
[Vision] Specific ideal
[Success Criteria] Measurable indicators
Bad example:
Make something
To add a new worker:
- Create
instructions/worker4.md - Edit
setup.shto add the pane - Add mapping to
agent-send.sh
To change the timer:
# In instructions/boss.md
sleep 600 # To change from 10 minutes to 5 minutes
sleep 300By having multiple AIs collaborate, this system:
- Can complete a full-featured web app in 3 hours
- Generates 12 innovative ideas
- Achieves 100% test coverage
Give it a try and experience the power of an AI team!