Mercor-Intelligence/archipelago
Harness for running and evaluating AI agents against RL environments
What it solves
Evaluating AI agents is hard because you need to give them tasks, run them in a controlled environment, and objectively score their performance. Archipelago provides a complete pipeline for that: it creates an isolated sandbox, exposes tools through the Model Context Protocol (MCP), lets an agent work, and then grades the outcome by comparing the filesystem state before and after the run.
How it works
Archipelago has three main pieces that run in Docker containers:
- Environment – A headless service that acts as a gateway for MCP servers. It can load data from S3 into the sandbox, and create snapshots (tar.gz archives) of the entire environment state. Agents connect to it over HTTP.
- Agents – An extensible runner that automatically spawns environment sandboxes, populates them with task data, configures MCP servers, runs the agent, and saves a final snapshot. It uses a registry of agent implementations (for example, a default ReAct‑style agent) that you can extend.
- Grading – A separate service that takes the initial and final snapshots, computes what changed, extracts embedded images (like charts from PDFs or slides), and then uses an LLM to judge the results against task‑specific criteria. It outputs a final weighted score.
A typical run looks like: start environment → load world snapshot → configure MCP tools → run agent → save snapshot → grade. The provided examples show how to do this end‑to‑end.
Who it's for
Archipelago is aimed at researchers and engineers who need to evaluate AI agents in a repeatable, automated way. It ships with a benchmark dataset of 480 professional services tasks (from the APEX‑Agents dataset) and is intended strictly for evaluation – the README explicitly forbids using it for training, fine‑tuning, or scraping.
Highlights
- Full pipeline: environment, agent runner, and grading all packaged as Docker containers
- MCP gateway that can hot‑swap tool configurations at runtime
- Snapshot‑based grading: compares filesystem state before and after an agent run
- Extracts visual artifacts (charts, diagrams) from documents to inform grading
- Extensible agent registry – add your own agent implementations
- Includes ready‑to‑run examples for a HuggingFace benchmark task and a simple sandbox task
Related
- Project
- Project
- Project
- Project