بنقرة واحدة
multi-agent-workflow
Use when implementing features with multiple AI agents working together
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when implementing features with multiple AI agents working together
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | multi-agent-workflow |
| description | Use when implementing features with multiple AI agents working together |
| tags | ["orchestration","multi-agent","workflow"] |
Orchestrate complex tasks across multiple AI agents, each contributing their strengths.
| Agent | Strengths | Best For |
|---|---|---|
| Claude Code | File editing, MCP tools, code generation | Implementation, refactoring |
| Gemini CLI | Web search, large context, fast | Research, documentation |
| Codex CLI | Sandbox execution, code review | Testing, security review |
Each agent builds on the previous one's output:
Gemini (Research) → Claude (Implement) → Codex (Review) → Claude (Fix)
Use when: Tasks have clear dependencies between phases
Example workflow:
Multiple agents work on different aspects simultaneously:
┌─ Claude (Bug Review)
Task ────┼─ Gemini (Security Review)
└─ Codex (Performance Review)
Use when: Independent reviews or analyses can happen concurrently
Example workflow:
One agent coordinates others:
Claude (Supervisor)
├─ delegates to → Gemini (Research subtask)
├─ delegates to → Codex (Test subtask)
└─ integrates results
Use when: Complex tasks need coordination and integration
Define the task and identify which agents should participate:
const workflow = {
task: "Implement user authentication",
phases: [
{ role: "research", agent: "gemini-cli", input: "Research OAuth2 best practices" },
{ role: "implement", agent: "claude-code", input: "Implement based on research" },
{ role: "test", agent: "codex-cli", input: "Write and run security tests" },
{ role: "fix", agent: "claude-code", input: "Fix any issues found" }
]
};
Use cliagents' delegation tools:
delegate_task role="research" adapter="gemini-cli" message="Research OAuth2..."
delegate_task role="implement" adapter="claude-code" message="[Research results] Implement..."
delegate_task role="test" adapter="codex-cli" message="[Implementation] Test..."
Use shared memory to pass information between agents:
store_artifact: Save implementation plans, code outputsshare_finding: Report bugs, security issues, suggestionsget_shared_findings: Retrieve what other agents discoveredCombine outputs from all agents into the final deliverable.
Use run_workflow for common patterns:
code-review: Parallel bug + security + performance reviewfeature: Plan → implement → testbugfix: Analyze → fix → testresearch: Research → documentUse when creating, modifying, or reviewing a cliagents provider adapter for a CLI tool such as Codex, Claude Code, Gemini CLI, Qwen CLI, or OpenCode.
Use when operating as a supervised root that delegates work to child sessions through cliagents
Use when reducing prompt size for roots and child sessions without losing the information needed to execute well
Use when passing work between agents with context preservation
Use when exploring design options or solving open-ended problems
Use when reviewing code for quality, bugs, security, and maintainability