XAgent adds a planner and human help to the autonomous agent stack
An experimental autonomous LLM agent that breaks tasks into subtasks, runs tools in a sandboxed container, and asks humans for help when stuck.

What it does
XAgent is an open-source autonomous agent that uses LLMs to decompose complex tasks into subtasks, execute them via tools, and refine plans as it goes. It runs its actions inside a Docker container for isolation and provides both a web GUI and a CLI. The system requires OpenAI API access—ideally GPT-4 or GPT-4-32k, with GPT-3.5-turbo-16k as a fallback—and explicitly warns against using standard GPT-3.5-turbo due to context limits.
The interesting bit
Unlike monolithic agent loops, XAgent splits responsibilities across a Dispatcher that routes tasks, a Planner that generates milestones and revises them, and an Actor that executes tools. When the Actor hits a wall, it can invoke an AskForHumanHelp tool rather than hallucinating forward. The project also claims a “total win” over AutoGPT in human preference evaluations across 50 real-world tasks, though it offers no quantitative breakdown—just a bar chart and a Google Drive link.
Key highlights
- Three-part architecture: Dispatcher, Planner, and Actor, designed to let developers add new agents and tools modularly.
- Sandboxed ToolServer with a file editor, Python notebook, web browser, shell, and Rapid API access.
- Built-in human collaboration: the agent can request clarification mid-task instead of guessing.
- System-level reproducibility: records of every run (configs, queries, errors, tool calls) can be saved and replayed, with API keys stripped out.
- Early-stage project with an explicit “super-intelligent agent” aspiration.
Caveats
- Explicitly experimental and “in its early stages.”
- Tightly coupled to OpenAI’s API; the authors recommend GPT-4-32k and do not support GPT-3.5-turbo.
- Evaluation claims against AutoGPT are qualitative (“significant improvement”) and lack disclosed metrics in the README.
Verdict
Worth a look if you’re building autonomous agents and want a more modular, human-in-the-loop alternative to AutoGPT. Skip it if you need a mature, model-agnostic framework or can’t budget for GPT-4-tier API costs.
Frequently asked
- What is OpenBMB/XAgent?
- An experimental autonomous LLM agent that breaks tasks into subtasks, runs tools in a sandboxed container, and asks humans for help when stuck.
- Is XAgent open source?
- Yes — OpenBMB/XAgent is open source, released under the Apache-2.0 license.
- What language is XAgent written in?
- OpenBMB/XAgent is primarily written in Python.
- How popular is XAgent?
- OpenBMB/XAgent has 8.5k stars on GitHub.
- Where can I find XAgent?
- OpenBMB/XAgent is on GitHub at https://github.com/OpenBMB/XAgent.