CAMEL-AI
Type: full-code · Vendor: CAMEL-AI.org · Language: Python · License: Apache-2.0 · Status: active · Status in practice: mature
Study agent scaling laws by providing a multi-agent framework whose core building blocks are ChatAgent (tool-calling LLM agent), RolePlaying (AI-assistant + AI-user dialectic), Workforce (managed multi-agent collaboration), MCP-backed toolkits, RAG pipelines, code interpreters, and large-scale simulated societies.
Description. CAMEL ('Communicative Agents for "Mind" Exploration of Large Language Model Society') is an Apache-2.0 Python multi-agent framework whose stated mission is 'finding the scaling laws of agents'. Building blocks: ChatAgent (atomic LLM-driven reasoning unit with tool use), RolePlaying (two-agent cooperative paradigm where an AI-assistant and an AI-user collaborate on a task), Workforce (manager-led multi-agent collaboration in camel/societies/workforce), 20+ toolkits including SearchToolkit, MCP support, RAG retrievers, code interpreters (Python/shell/browser), and OWL agent for reasoning. The framework is used at scale (up to ~1M agents in OASIS-style simulations).
Agent loop shape. ChatAgent inner loop is tool-calling: model emits messages and tool calls, tools (Python interpreter, shell, browser, MCP, search) execute, results return as messages. RolePlaying sits on top: a Society pairs an AI-assistant and an AI-user who exchange messages until the task converges or a step cap is hit. Workforce wraps this with a manager that decomposes tasks, assigns to workers, and synthesises results. Memory persists across turns; RAG pipelines combine chunking, retrieval, and generation; OASIS-style simulations scale this to large agent populations.
Primary use cases
- two-agent role-playing task solving (CAMEL paradigm)
- managed multi-agent collaboration via Workforce
- ChatAgent-based tool-using assistants
- MCP-backed agentic workflows over external infrastructure
- large-scale social simulation (e.g. OASIS, ~1M agents)
Key concepts
- ChatAgent (docs) — Atomic reasoning unit driven by an LLM, capable of tool calls and decision-making.
- RolePlaying / Society → camel-role-playing — Two-agent cooperative paradigm (AI-assistant + AI-user) for autonomous task solving.
- Workforce → supervisor — Managed multi-agent collaboration in camel/societies/workforce (e.g. 'Hackathon Judge Committee with Workforce').
- Toolkits + MCP → mcp — 20+ toolkits (search, web, code), with MCP support (ACI MCP, Cloudflare MCP CAMEL).
- Interpreters → code-execution — Execution backends (Python, shell, browsers) for live code evaluation and automation.
- RAG pipelines → agentic-rag — Combine chunking, retrieval, and generation for grounded responses.
Patterns this full-code implements —
- ·CAMEL Role-Playing
RolePlaying class (camel/societies/role_playing.py) implements the AI-assistant + AI-user paradigm that the framework was originally named for.
- ★★Supervisor
Workforce in camel/societies/workforce realises the manager + workers pattern; e.g. 'Hackathon Judge Committee with Workforce'.
- ★★Tool Use
ChatAgent accepts tools (e.g. SearchToolkit().search_duckduckgo); 20+ toolkits ship.
- ★★Model Context Protocol
MCP support is documented with real integrations (ACI MCP, Cloudflare MCP CAMEL).
- ★★Agentic RAG
Dedicated RAG pipelines documented; combine chunking, retrieval, and generation.
- ★★Code Execution
Execution backends include Python, shell, and browser interpreters for live code evaluation.
- ★★Cross-Session Memory
Memory and storage layers persist chat history and tool outputs.
- ★Agent-as-a-Judge
Workforce examples include a 'Hackathon Judge Committee' — a judging society over candidate solutions.
- ★Browser Agent
Browser interpreter is one of the execution backends; not framed as a dedicated 'browser agent' class.
- ★Computer Use
The Hybrid Browser Toolkit provides GUI-level browser control; can be exposed via MCP to give AI assistants direct browser control.
- ★Code-as-Action Agent
CodeExecutionToolkit supports executing model-emitted code across sandboxes; the framework treats execute_code as a first-class action. Does not adopt the CodeAct label.
- ★World-Model Separation
OASIS-style large-scale simulation distinguishes simulated environment from agent reasoning, but the framework does not document an explicit world-model API.
Neighbourhood
Click any neighbour to follow the lineage. Scroll to zoom, drag to pan.