Skip to content

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Agent System - 4-Bot Parallel Development Project

Status: 📋 Ready to Start Approach: 4 parallel Claude Code bot sessions Timeline: 12 weeks to production MVP Architecture: LangGraph-based multi-agent orchestration system


🎯 Project Overview

This is a production-ready multi-agent system where specialized AI agents collaborate to build software. The unique aspect: this project itself is being built by 4 Claude Code bots working in parallel, demonstrating the very collaboration patterns the system enables.

What This System Does

  • Analyzes user requests and breaks them into agent tasks (Chooser Bot)
  • Orchestrates specialized agents to complete complex software projects (LangGraph)
  • Tracks real-time progress with human-friendly status (Foreman Bot)
  • Optimizes costs by selecting appropriate models (80-95% savings)
  • Enables human oversight at critical decision points

Key Innovation

Meta-orchestration: A cheap model ($0.0001/call) analyzes tasks and coordinates expensive models, achieving massive cost savings while maintaining quality.


📁 Documentation Structure

🚀 Start Here

  1. ONBOARDING_PROMPTS.mdSTART HERE

    • Copy-paste prompts to start each of 4 Claude Code bots
    • Quick start checklist
    • Troubleshooting guide
  2. BOT_COORDINATION_GUIDE.md

    • How the 4 bots work together
    • Interface contracts
    • Git workflow
    • Integration checkpoints

📋 Bot Task Lists (One for Each Bot)

  1. BOT_1_FRAMEWORK_TASKS.md

    • Core framework & orchestration
    • LangGraph workflow
    • Chooser Bot & Foreman Bot
    • State management
  2. BOT_2_AGENTS_TASKS.md

    • Specialized agent implementation
    • Model clients (OpenAI, Anthropic, Groq)
    • Intelligent model selection
    • Agent registry
  3. BOT_3_INFRASTRUCTURE_TASKS.md

    • PostgreSQL & Redis setup
    • Docker Compose
    • OpenTelemetry observability
    • CI/CD pipeline
  4. BOT_4_INTERFACES_TASKS.md

    • FastAPI REST API
    • Beautiful CLI (Click + Rich)
    • React web dashboard
    • Real-time monitoring

📚 Reference Documentation

  1. MASTER_PROJECT_REFERENCE.md
    • Complete system architecture
    • Technology stack
    • Database schemas
    • Interface contracts
    • Shared by all bots

🔬 Research & Analysis (Background Context)

  1. MULTI_AGENT_APPROACHES_LOG.md

    • Analysis of 4 existing multi-agent approaches
    • What worked, what didn't
    • Key learnings
  2. MULTI_AGENT_RESEARCH_LOG.md

    • Industry research (AutoGen, CrewAI, LangGraph)
    • Orchestration patterns
    • Best practices
    • Cost optimization strategies
  3. COMPREHENSIVE_MULTI_AGENT_PLAN.md

    • Complete implementation plan
    • Full architecture diagrams
    • 12-week roadmap
    • Cost analysis

🚀 Quick Start Guide

Step 1: Understand the Project (15 minutes)

# Read these in order:
1. This README (you are here!)
2. ONBOARDING_PROMPTS.md
3. BOT_COORDINATION_GUIDE.md
4. Skim MASTER_PROJECT_REFERENCE.md

Step 2: Set Up Git Repository (5 minutes)

# Initialize git repo
cd multiagent-project
git init
git add .
git commit -m "Initial commit: 4-bot parallel development setup"

# Create branches
git checkout -b develop
git push origin develop

# Create bot branches
git checkout -b bot1-framework
git checkout -b bot2-agents
git checkout -b bot3-infrastructure
git checkout -b bot4-interfaces

# Push all branches
git push origin --all

Step 3: Start 4 Claude Code Sessions (10 minutes)

  1. Open 4 terminal/VSCode windows
  2. In each, start Claude Code
  3. Copy the appropriate prompt from ONBOARDING_PROMPTS.md
    • Bot 1: Framework & Orchestration prompt
    • Bot 2: Agent Implementation prompt
    • Bot 3: Infrastructure & Observability prompt
    • Bot 4: User Interfaces & API prompt
  4. Paste prompt into each Claude Code session

Step 4: Monitor Progress (Ongoing)

Daily (5 min):

  • Check each bot's progress
  • Ensure each bot commits daily
  • Look for blockers

Weekly (Friday, 2 hours):

  • All bots merge to develop
  • Run integration tests
  • Fix any conflicts
  • Plan next week

Step 5: Integration Testing

Week 1 Test:

docker-compose up -d
pytest tests/integration/test_basic.py

Week 2 Test:

multiagent create "Generate hello world function"
multiagent status <task-id>

Week 3 Test:

# Full E2E
pytest tests/e2e/

📊 The 4-Bot Team

Bot 1: Framework & Orchestration

Branch: bot1-framework Focus: Core engine Key Files:

  • multiagent/core/agent.py - BaseAgent interface
  • multiagent/core/state.py - State management
  • multiagent/core/graph.py - LangGraph workflow
  • multiagent/core/chooser.py - Chooser Bot
  • multiagent/core/foreman.py - Foreman Bot

Dependencies: Bot 3 (database) - can mock

Provides: BaseAgent interface → Bot 2, Workflow → Bot 4


Bot 2: Agent Implementation

Branch: bot2-agents Focus: AI workers Key Files:

  • multiagent/models/openai_client.py - OpenAI
  • multiagent/models/anthropic_client.py - Claude
  • multiagent/models/groq_client.py - Groq
  • multiagent/models/selector.py - Model selection
  • multiagent/agents/development/code_generator.py
  • multiagent/agents/quality/code_reviewer.py

Dependencies: Bot 1 (BaseAgent) - can mock

Provides: 10+ specialized agents


Bot 3: Infrastructure & Observability

Branch: bot3-infrastructure Focus: Foundation Key Files:

  • docker/docker-compose.yml - Services
  • docker/init.sql - Database schema
  • multiagent/infrastructure/database.py - PostgreSQL client
  • multiagent/infrastructure/redis_client.py - Redis client
  • multiagent/infrastructure/observability/ - Tracing & metrics

Dependencies: None (starts first!)

Provides: Database & Redis → All bots


Bot 4: User Interfaces & API

Branch: bot4-interfaces Focus: Human interaction Key Files:

  • multiagent/api/app.py - FastAPI application
  • multiagent/api/routes/tasks.py - Task endpoints
  • multiagent/cli/commands.py - CLI
  • web/src/components/TaskMonitor.tsx - React UI

Dependencies: Bot 1 (workflow), Bot 3 (database) - can mock both

Provides: User-friendly interfaces


🔄 Development Workflow

Daily Cycle

graph LR
    A[Morning: Check Progress] --> B[Bots Work in Parallel]
    B --> C[Bots Commit to Branches]
    C --> D[Evening: Review Status]
Loading

Each Bot:

  1. Pull latest from develop
  2. Work on their tasks
  3. Commit progress
  4. Push to their branch

Human Coordinator (You):

  1. Morning: 5-min check-in with all bots
  2. Unblock any stuck bots
  3. Facilitate communication between bots
  4. Evening: Review day's progress

Weekly Cycle

graph LR
    A[Mon-Thu: Independent Work] --> B[Fri AM: Prepare for Merge]
    B --> C[Fri PM: Merge to Develop]
    C --> D[Sat: Integration Testing]
    D --> E[Sun: Fix Issues]
    E --> F[Mon: Start Next Week]
Loading

Friday Integration:

  1. Each bot creates PR to develop
  2. Review code
  3. Merge all PRs
  4. Run integration tests
  5. Fix conflicts
  6. System test

🎯 Milestones

Week 1: Foundation

  • All 4 bots set up and working
  • Docker Compose running
  • BaseAgent interface defined
  • Basic API endpoints
  • First integration test passes

Week 2: Core Features

  • LangGraph workflow executes
  • 5+ agents implemented
  • Chooser Bot working
  • Foreman Bot tracking progress
  • Can create and complete simple task

Week 3: Polish

  • React UI showing real-time updates
  • Beautiful CLI with Rich
  • Full observability
  • All tests passing
  • Ready for demo

📈 Success Metrics

Technical

  • ✓ End-to-end task execution works
  • ✓ 99%+ test pass rate
  • ✓ < 2s API response time (p95)
  • ✓ 80-95% cost savings vs. naive approach
  • ✓ All 4 bots can merge without conflicts

Process

  • ✓ All 4 bots productive simultaneously
  • ✓ No bot blocked > 1 day
  • ✓ Weekly integrations smooth
  • ✓ Code quality high
  • ✓ Documentation complete

Outcome

  • ✓ Working multi-agent system
  • ✓ Can execute real software development tasks
  • ✓ User-friendly interfaces
  • ✓ Production-ready quality
  • ✓ Demonstrates bot collaboration

🔧 Technology Stack

Backend

  • Python 3.11+
  • LangGraph 0.2+ (agent orchestration)
  • FastAPI 0.104+ (REST API)
  • PostgreSQL 15+ (database)
  • Redis 7+ (cache/queue)

Frontend

  • React 18+ with TypeScript
  • Tailwind CSS 3+ (styling)
  • Zustand 4+ (state management)

AI Models

  • OpenAI: GPT-4o, GPT-4o-mini
  • Anthropic: Claude Sonnet, Claude Opus
  • Groq: Llama 8B, Llama 70B (cost optimization)

DevOps

  • Docker + Docker Compose
  • GitHub Actions (CI/CD)
  • OpenTelemetry (tracing)
  • Prometheus + Grafana (metrics)

📚 Learning Resources

For Understanding the System

  1. COMPREHENSIVE_MULTI_AGENT_PLAN.md - Full architecture
  2. MULTI_AGENT_RESEARCH_LOG.md - Why we made these choices
  3. MASTER_PROJECT_REFERENCE.md - Technical reference

For Bot Coordination

  1. BOT_COORDINATION_GUIDE.md - How bots work together
  2. ONBOARDING_PROMPTS.md - Starting each bot

For Specific Tasks

  1. BOT_X_*_TASKS.md - Detailed task breakdowns
  2. Each task file has implementation examples
  3. Acceptance criteria for each task

🚨 Common Issues & Solutions

"Bot is stuck/blocked"

Solution: Tell bot to create a mock and continue

"Create a mock of [dependency] for now. Document the interface
you expect. Continue with your tasks using the mock."

"Merge conflicts"

Solution: Coordinate bot discussion

"Bot X and Bot Y, you have a conflict in [file].
Bot X changed: [describe]
Bot Y changed: [describe]
Discuss and resolve - refer to MASTER_PROJECT_REFERENCE.md."

"Integration test fails"

Solution: Systematic debugging

1. Which component failing?
2. Check that bot's unit tests
3. Review interface contract
4. Fix and re-test

"Progress too slow"

Solution: Simplify and parallelize

"Bots: Focus on making it work first, optimize later.
Use TODO comments for improvements.
What can you do right now with mocks?"

📞 Support & Questions

During Development

Read First:

  1. Your bot's task file
  2. MASTER_PROJECT_REFERENCE.md
  3. BOT_COORDINATION_GUIDE.md

Still Stuck?:

  • Check if you can use a mock
  • Review interface contracts
  • Look at similar code in research docs

For Design Questions

Refer To:

  • COMPREHENSIVE_MULTI_AGENT_PLAN.md - Overall design
  • MULTI_AGENT_RESEARCH_LOG.md - Best practices
  • MULTI_AGENT_APPROACHES_LOG.md - What others did

✅ Pre-Flight Checklist

Before starting the 4-bot team:

  • Read this README completely
  • Read ONBOARDING_PROMPTS.md
  • Skim BOT_COORDINATION_GUIDE.md
  • Git repository initialized
  • All 4 branches created
  • Have 4 Claude Code sessions ready
  • Understand daily/weekly workflow
  • Ready to coordinate 4 bots
  • Have 12 weeks available

🎉 Ready to Start!

You now have everything you need to build a production-ready multi-agent system with 4 Claude Code bots working in parallel.

Next Steps

  1. Read ONBOARDING_PROMPTS.md
  2. Start 4 Claude Code sessions
  3. Let them work!
  4. Check progress daily
  5. Integrate weekly
  6. Ship in 12 weeks

📊 Project Structure

multiagent-project/
├── README.md ⭐ You are here
├── ONBOARDING_PROMPTS.md ⭐ Start here next
├── BOT_COORDINATION_GUIDE.md
├── MASTER_PROJECT_REFERENCE.md
├── BOT_1_FRAMEWORK_TASKS.md
├── BOT_2_AGENTS_TASKS.md
├── BOT_3_INFRASTRUCTURE_TASKS.md
├── BOT_4_INTERFACES_TASKS.md
│
└── multiagent/ (Created by bots)
    ├── core/ (Bot 1)
    ├── agents/ (Bot 2)
    ├── models/ (Bot 2)
    ├── infrastructure/ (Bot 3)
    ├── api/ (Bot 4)
    ├── cli/ (Bot 4)
    ├── web/ (Bot 4)
    └── tests/ (All bots)

Built with: Claude Code (×4) Approach: Parallel bot development Innovation: Meta-orchestration with 80-95% cost savings Timeline: 12 weeks to production MVP Status: 📋 Ready to start!


Let's build the future of multi-agent systems - with multiple agents! 🚀

About

Slice-of-life snapshot of a meta-circular multi-agent orchestration framework — built by 4 parallel Claude Code bots via LangGraph. Archive only.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages