Create bindu_super_agent.py with the code below, or save it directly from your editor.
from bindu.penguin.bindufy import bindufyfrom orchestrator import Orchestratorfrom dotenv import load_dotenvload_dotenv()orchestrator = Orchestrator()def handler(messages: list[dict[str, str]]) -> str: if not isinstance(messages, list): return "Invalid input format: messages must be a list." if not messages: return "No input message received." last_msg = messages[-1] if not isinstance(last_msg, dict): return "Invalid message structure." user_input = last_msg.get("content") if not user_input or not isinstance(user_input, str): return "Empty or invalid message content." try: result = orchestrator.run(user_input) return result except Exception as e: return f"Internal agent error: {str(e)}"config = { "author": "nivasm2823@gmail.com", "name": "killer-agent-swarm", "description": "Multi-agent AI system for deep research, summarization, critique and reflection.", "capabilities": {"streaming": True}, "deployment": { "url": "http://localhost:3773", "expose": True, "cors_origins": ["http://localhost:5173"] }, "skills": ["skills/agent-swarm-intelligence"], "storage": {"type": "memory"}, "scheduler": {"type": "memory"}}bindufy(config=config, handler=handler)#bindufy(config, handler, launch=True)# This will create a tunnel to your agent and expose it on port 3773
from agno.agent import Agentfrom agno.models.openrouter import OpenRouterimport osdef build_critic_agent(): return Agent( name="Critic", model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY"), temperature=0.1 ), description=( "You are a critical reviewer and quality assurance expert.\n\n" "⚠️ CRITICAL OUTPUT RULE ⚠️\n" "Output ONLY the final, polished, improved version of the content.\n" "DO NOT include any of the following:\n" "- Your evaluation process\n" "- Criticism or analysis sections\n" "- Headings like 'Evaluation', 'Constructive Criticism', 'Improved Version'\n" "- Meta-commentary about what you changed\n" "- Explanations of improvements made\n\n" "Your Internal Process (DO NOT OUTPUT THIS):\n" "1. Read the provided content\n" "2. Identify errors, ambiguities, missing information\n" "3. Note structural improvements needed\n" "4. Mentally create the enhanced version\n\n" "What to Fix (internally):\n" "- Factual errors → Correct them silently\n" "- Unclear phrasing → Rewrite for clarity\n" "- Missing information → Add it seamlessly\n" "- Poor structure → Reorganize logically\n" "- Redundancy → Remove it\n" "- Ambiguity → Make it specific\n\n" "Output Format:\n" "Start directly with the enhanced content.\n" "No preamble. No evaluation. No meta-text.\n" "Just the polished, professional final answer.\n\n" "Example of CORRECT output:\n" "Input: 'Python is programming language. It good for data.'\n" "Output: 'Python is a high-level programming language renowned for its versatility...'\n\n" "Example of WRONG output (DO NOT DO THIS):\n" "Input: 'Python is programming language.'\n" "Output: 'Evaluation: Grammar errors found. Improved Version: Python is a high-level...'\n\n" "Remember: Your output should look like the ORIGINAL content, just better.\n" "The user should not know it was critiqued - they should just see excellent content." ), )
from agno.agent import Agentfrom agno.models.openrouter import OpenRouterimport osdef build_planner_agent(): return Agent( name="Planner Agent", model=OpenRouter( id="openai/gpt-oss-120b", # Fast and good at following instructions api_key=os.getenv("OPENROUTER_API_KEY"), temperature=0 ), description="""You are a strict JSON-only planning agent.CRITICAL RULES:1. Output ONLY valid JSON - no markdown, no explanations, no text before or after2. Do NOT wrap JSON in ```json``` code blocks3. Do NOT add any commentary4. Steps MUST directly answer the user's request5.Do NOT change or generalize the user's goalYour EXACT output format:{"steps":[{"agent":"researcher","task":"specific task description"},{"agent":"summarizer","task":"specific task description"},{"agent":"critic","task":"specific task description"}]}Available agents:- researcher: Deep research on topics- summarizer: Create concise summaries- critic: Critical analysis and evaluationExample input: "What is quantum computing?"Example output: {"steps":[{"agent":"researcher","task":"Research quantum computing fundamentals, applications, and current state"},{"agent":"summarizer","task":"Summarize the research findings into key points"},{"agent":"critic","task":"Evaluate the completeness and accuracy of the summary"}]}Remember: ONLY output the JSON object, nothing else.""", )
from agno.agent import Agentfrom agno.models.openrouter import OpenRouterimport osdef build_reflection_agent(): return Agent( name="Reflection Agent", model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY"), temperature=0 ), description="""You are a strict JSON-only quality evaluation agent.CRITICAL RULES:1. Output ONLY valid JSON - no markdown, no explanations, no text2. Do NOT wrap JSON in ```json``` code blocks3. Do NOT add any commentary or explanationsYour EXACT output format:{"quality":"good","issues":[],"fix_strategy":""}OR{"quality":"bad","issues":["issue 1","issue 2"],"fix_strategy":"specific improvement strategy"}Quality Evaluation Criteria:- "good": Response is accurate, complete, well-structured, and directly answers the question- "bad": Response has factual errors, missing information, poor structure, or doesn't answer the questionFor "good" responses:- Set issues to empty array []- Set fix_strategy to empty string ""For "bad" responses:- List specific issues found- Provide concrete fix_strategy (e.g., "Add more examples and define technical terms")Example Input: "Machine Learning is about computers learning stuff."Example Output: {"quality":"bad","issues":["Too vague","Missing key concepts","No structure"],"fix_strategy":"Provide proper definition, explain types of ML, add real-world applications"}Example Input: "Machine Learning is a subset of AI that uses algorithms to learn from data..."Example Output: {"quality":"good","issues":[],"fix_strategy":""}Remember: ONLY output the JSON object, nothing else.""", )
from agno.agent import Agentfrom agno.models.openrouter import OpenRouterimport osdef build_research_agent(): return Agent( name="Researcher", model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY"), temperature=0.3 # Slightly higher for creative research ), description=( "You are a deep research agent with expertise across multiple domains. " "Your task is to explore topics thoroughly and provide comprehensive, accurate information.\n\n" "Research Guidelines:\n" "1. Identify and explain key concepts and definitions\n" "2. Provide historical context and evolution of the topic\n" "3. Explain current state-of-the-art and recent developments\n" "4. Include real-world applications and use cases\n" "5. Mention important methodologies, techniques, or frameworks\n" "6. Note any challenges, limitations, or controversies\n" "7. Highlight future trends and directions\n\n" "Output Format:\n" "- Use clear, structured paragraphs\n" "- Include specific examples and technical details\n" "- Cite important facts, figures, or statistics when relevant\n" "- Organize information logically from foundational to advanced\n" "- Maintain technical accuracy while being accessible\n\n" "Return a comprehensive research report that serves as a solid foundation " "for summarization and critical analysis." ), )
from agno.agent import Agentfrom agno.models.openrouter import OpenRouterimport osdef build_summarizer_agent(): return Agent( name="Summarizer", model=OpenRouter( id="openai/gpt-oss-120b", api_key=os.getenv("OPENROUTER_API_KEY"), temperature=0.2 # Low but allows slight creativity for clarity ), description=( "You are a professional technical summarizer with expertise in distilling complex information.\n\n" "Summarization Principles:\n" "1. Extract core insights and key takeaways\n" "2. Preserve technical accuracy while improving clarity\n" "3. Focus on 'signal over noise' - keep what matters most\n" "4. Maintain logical flow and coherent structure\n" "5. Use clear, concise language without oversimplifying\n" "6. Retain critical examples, statistics, and specific details\n" "7. Remove redundancy and verbose explanations\n\n" "Output Guidelines:\n" "- Start with a clear overview or main concept\n" "- Organize information in order of importance\n" "- Use bullet points or short paragraphs for readability\n" "- Keep technical terms but ensure they're explained\n" "- Aim for 30-50% of original length while retaining 90%+ of value\n" "- End with key applications or implications if relevant\n\n" "Your goal: Create a summary that someone could read in 2-3 minutes " "and understand the essence of the topic thoroughly." ), )
# Agent Swarm Intelligence Skill# Advanced multi-agent system with specialized roles and collaborative intelligenceid: agent-swarm-intelligencename: Agent Swarm Intelligenceversion: 1.0.0author: nivasm2823@gmail.comdescription: | Advanced multi-agent intelligence system that orchestrates specialized AI agents for comprehensive research, analysis, and content generation. Features: - Multi-agent orchestration with 6 specialized agents - Deep research capabilities across multiple domains - Intelligent planning and task decomposition - Quality assurance through critic and reflection agents - Structured summarization and content refinement - Collaborative intelligence emergence Agent Swarm Architecture: - Planner Agent: Breaks down complex tasks into structured steps - Researcher Agent: Conducts deep research and information gathering - Summarizer Agent: Creates concise, structured summaries - Critic Agent: Provides quality assessment and content improvement - Reflection Agent: Evaluates output quality and suggests improvements - Orchestrator: Coordinates all agents and manages workflow This system demonstrates the future of AI - collaborative agent societies working together to produce high-quality, comprehensive outputs.tags: - multi-agent - research - analysis - planning - summarization - quality-assurance - collaboration - intelligence - orchestrationinput_modes: - application/jsonoutput_modes: - application/jsonexamples: - "What is quantum computing and how does it work?" - "Explain impact of artificial intelligence on healthcare" - "Research latest developments in renewable energy" - "Analyze current state of blockchain technology" - "Provide a comprehensive overview of machine learning"capabilities_detail: multi_agent_orchestration: supported: true description: "Coordinates 6 specialized agents for comprehensive task execution" deep_research: supported: true description: "Conducts thorough research across multiple domains and sources" intelligent_planning: supported: true description: "Automatically decomposes complex tasks into structured workflows" quality_assurance: supported: true description: "Multi-layer quality evaluation through critic and reflection agents" content_synthesis: supported: true description: "Creates structured, high-quality content from research findings" collaborative_intelligence: supported: true description: "Emerges intelligent outputs through agent collaboration"
# Clone the Bindu repositorygit clone https://github.com/GetBindu/Bindu# Navigate to frontend directorycd frontend# Install dependenciesnpm install# Start frontend development servernpm run dev