Loading...
Loading...
OpenCode Multi-Agent Parallel Collaboration Configuration. Supports multiple agents working simultaneously to implement a pipeline development mode. Use when: (1) Need multiple agents to work in parallel (2) Need a master to schedule collaborative work among agents (3) Need to implement a standardized process of design → development → acceptance → testing (4) Need to configure OpenCode's multi-agent collaboration capability
npx skill4agent add ayflying/ai-skills multi-agentnpx skills add ayflying/ai-skills --skill multi-agentpython .agents/skills/multi-agent/scripts/setup.py.env_NAME| Role | Responsibility | Task Source |
|---|---|---|
| ${MASTER_NAME} | The only task assigner | User instructions |
| ${PLANNER_NAME} | Function design + Function acceptance | Assigned by ${MASTER_NAME} |
| ${LEAD_PROGRAMMER_NAME} | Architecture design + Program assignment (exclusive) | Can only receive assignments from ${MASTER_NAME} |
| ${ARTIST_NAME} | UI/UX Design | Assigned by ${MASTER_NAME} |
| @build | Code implementation (multiple concurrent allowed) | Can only receive assignments from ${LEAD_PROGRAMMER_NAME} |
| @test-writer | Functional testing | Assigned by ${MASTER_NAME} |
User Requirements
↓
[MASTER] Judge whether requirements are clear
↓
┌─ Requirements unclear → [PLANNER] Function design → Return to [MASTER] for assignment
│
└─ Requirements clear → [MASTER] Task assignment
↓
┌─────────────┼─────────────┐
↓ ↓ ↓
[LEAD-PROGRAMMER] [ARTIST] ...
↓
Assign to multiple @build for concurrent development
↓
Summarize completed results
↓
[MASTER] → [PLANNER] Function acceptance
↓ Not satisfied
Return to [MASTER] for re-assignment
↓ Passed
[MASTER] → [TEST-WRITER] Functional testing
↓
Summarize and feedback to userBug Found → [MASTER] Judge root cause of the problem
↓
┌─ Design issue → [PLANNER] Redesign
│
└─ Program issue → [LEAD-PROGRAMMER] Fix| Agent | Default Name | Responsibility |
|---|---|---|
| master | Master Scheduler | The only task assigner, does not perform specific work |
| lead-programmer | Lead Programmer | The exclusive entry for program tasks, can assign to multiple @build concurrently |
| planner | Planner | Function design + acceptance, cannot assign tasks |
| artist | Artist | UI/UX Design |
| build | Builder | Code implementation (multiple concurrent allowed) |
| test-writer | Tester | Functional testing |
| code-reviewer | Code Reviewer | Code review |
| security-auditor | Security Auditor | Security audit |
| docs-writer | Document Writer | Write technical documents |
| performance-optimizer | Performance Optimizer | Performance optimization |