Skip to main content
Multi-agent collaboration system with specialized roles.

Code

Create bindu_super_agent.py with the code below, or save it directly from your editor.

Additional Files

Create these supporting files in the same directory:

critic_agent.py

orchestrator.py

planner_agent.py

reflection_agent.py

researcher_agent.py

summarizer_agent.py

Skill Configuration

Create skills/agent-swarm-intelligence/skill.yaml:

How It Works

Agent Roles
  • Planner: Breaks query into structured tasks
  • Researcher: Performs deep factual research
  • Summarizer: Condenses research into clear explanations
  • Critic: Reviews and refines outputs
  • Reflection: Evaluates quality and triggers self-improvement
Orchestrator
  • Coordinates agent execution pipeline
  • Manages task flow: Planner → Researcher → Summarizer → Critic → Reflection
  • Handles retries and error recovery
  • Validates output quality
Execution Flow
  1. Planner decomposes query into tasks
  2. Researcher gathers information
  3. Summarizer creates concise output
  4. Critic reviews and refines
  5. Reflection evaluates quality
  6. If quality is low, retry with improvements
Self-Correction
  • Reflection agent assesses output quality
  • Triggers automatic refinement loops
  • Max 2 retries for quality improvement

Dependencies

Environment Setup

Create .env file:

Run

Examples:
  • “What is quantum computing and how does it work?”
  • “How can I use agent swarm for collaborative problem solving?”
  • “What are the key benefits of multi-agent systems?”

Example API Calls

Frontend Setup

Open http://localhost:5173 and try to chat with the agent swarm