πŸš€
MassGen Orchestrator
Task Distribution & Coordination
↓
πŸ—οΈ
Agent 1
Anthropic/Claude
πŸ‘¨β€πŸ’»
Agent 2
Claude Code
🌟
Agent 3
Google/Gemini
πŸ€–
Agent 4
OpenAI/GPT
⚑
Agent 5
xAI/Grok
↕ Real-time Collaboration ↕
↓
πŸ”„
Shared Collaboration Hub
Real-time Notification & Consensus
Orchestrator Central Context Hub Snapshot Storage agent1/ agent2/ User Context Paths Read-Only Write Read: All agents | Write: Final agent only Agent 1 Permanent Temp Context Agent 2 Permanent Temp Context Final Agent Selection Agent 2 β†’ Write Access Granted βœ… βœ… Custom Context Integration + βœ… Granular Access Control + βœ… Direct Repository Access
πŸ”§

Tech Deep Dive: Backend Abstraction Challenges

🎭 Unified Interface Challenge Claude Code CLI Context sharing across agents Gemini API Can't mix builtin + custom tools GPT-5 API changes (reasoning, streaming) Most Backends Unable to autonomously collaborate 🎯 Unified ChatAgent Protocol βš™οΈ StreamChunk Normalization πŸ”€ Workarounds Backend-specific πŸ› οΈ Tool Integration MCP, Web, Code 🧠 Binary Decision Framework Intelligent agent coordination and workspace sharing
🎯

Tech Deep Dive: Binary Decision Framework Solution

Agent 1 Agent 2 Agent 3 Agent 4 Vote: 4 Writing Vote: 4 Vote: 4 βš–οΈ Binary Choice: vote OR new_answer Agent 2 provides new_answer β†’ ALL VOTES RESET After Reset: Deciding Deciding Deciding Deciding Async Results: Vote: 2 Vote: 2 Writing Deciding β†’ If new_answer: reset again
🎯 Key Innovation: Vote Invalidation Creates Dynamic Consensus
🧬

Feature: Code-Based Tools (CodeAct)

MCP tool schemas don't cloud agent context β€” tools become discoverable Python code

Workspace Structure

workspace/
β”œβ”€β”€ servers/     # MCP tools
β”œβ”€β”€ custom_tools/ # User tools
β”œβ”€β”€ skills/      # Openskills
└── utils/       # Agent scripts
Tool Discovery:
Agents explore filesystem, read docstrings, import what they need

execute_command

Central MCP tool that runs agent-written Python scripts

β†’ Docker execution
β†’ Timeout & security layers
β†’ Workspace confinement
# Agent runs their code
execute_command(
  "python utils/report.py"
)

Why It Matters

  • β†’ Context reduction
  • β†’ Transparent tool access
  • β†’ Native Python composition
  • β†’ Parallel async execution
Research: Apple CodeAct, Cloudflare Code Mode, Anthropic MCP
πŸ”„

Advanced Coordination Features

Task Planning

Agents create structured task plans with automatic dependency tracking.

β†’ 8 MCP planning tools
β†’ Dependency management
β†’ Progress: pending β†’ done

Orchestration Restart

Winner evaluates its own answer. If incomplete, auto-restarts with improvement instructions.

β†’ Self-correcting feedback loop
β†’ Configurable max attempts
β†’ Tailored guidance per retry

And Many More...

β†’ Broadcasting - Human or LLM answers
β†’ Diversity - Question paraphrasing
β†’ Novelty - No lazy rephrasing
β†’ Multi-Turn - Persistent sessions
β†’ WebUI - Real-time visualization
Result: Sophisticated coordination that goes beyond simple voting β€” agents plan, adapt, and execute without conflicts.
πŸš€

MassGen Evolution

πŸ—οΈ

Foundation Era

v0.0.1 - v0.0.3
Core framework, basic streaming,
Claude, Gemini, GPT/o, Grok
LATEST
πŸš€

Rapid Evolution

v0.0.3 β†’ v0.1.23
Models, agents, agent frameworks
MCP, browsing, coding, computer use, multimodal
Memory, skills, automation, evolution
Web UI, terminal UI, interactive sessions
55 Releases
β€’
Foundation→Expansion
🌟

Early Adopters & Community Growth

🏒 Industrial Institutions

  • Microsoft Azure
  • Gradient
  • Sparsity
  • Leading Trading Firm
  • AgentWeb

πŸŽ“ Academic Institutions

  • Simon Fraser University
  • UC Berkeley & Santa Cruz
  • University of Pennsylvania
  • University of Sydney
  • University of Toronto

πŸš€ Open Source Community

Active development
Growing contributor base
Global adoption
Research partnerships
MassGen Contributors Wall
🀝 Community Contributors - Thank you!
⚑

Get Started in 60 Seconds

# Install and run
uv pip install massgen && uv run massgen

# First run: Setup wizard guides you through:
# β†’ API key configuration
# β†’ Creates your default config
# β†’ Downloads skills & containers as needed

# Future runs: uses your default config, or specify another
uv run massgen "Your question"
uv run massgen --config @examples/basic/multi/three_agents_default "..." # No Docker
uv run massgen --config @examples/tools/filesystem/code_based "..." # With Docker

# Web UI: Real-time visualization of agent coordination
uv run massgen --web

βœ… Supported Models & Providers

🏒 Major Providers:
Anthropic Claude β€’ Google Gemini β€’ OpenAI GPT/Codex β€’ xAI Grok β€’ ZAI GLM
🏠 Local & Extended:
Cerebras β€’ Fireworks β€’ Groq β€’ LM Studio β€’ OpenRouter β€’ SGLang β€’ Together β€’ vLLM...

πŸ€– Agents & Frameworks

AG2 β€’ AgentScope β€’ Claude Code CLI β€’ LangGraph β€’ NLIP β€’ Smolagent

πŸ› οΈ Advanced Tools

Browser Automation β€’ Code Execution β€’ Computer Use β€’ File Operations β€’ MCP β€’ Memory β€’ Multimodal β€’ Skills β€’ Web Search

🎨 UI/UX Interfaces

Web UI (React + WebSocket) β€’ Terminal UI (Textual) β€’ CLI Streaming Display β€’ Interactive Multi-Turn β€’ Quickstart Wizard β€’ Session Resumption
πŸš€

Join the MassGen Community

πŸ’¬ Join our Discord!

Want to contribute to MassGen development or research? Contact @Yu in the Discord channel.

Discord QR

⭐ Try MassGen Today

Check out the repo and give us a star if you find it useful!

GitHub QR
1 / 24