# Arbor

> An autonomous research agent that grows a hypothesis tree of code experiments and merges only the gains that hold up on held-out data

- Category: AI Coding / Autonomous Coding Agents
- Language: Python
- Licence: Apache-2.0
- Repository: https://github.com/RUC-NLPIR/Arbor
- Website: https://ruc-nlpir.github.io/Arbor/
- Canonical page: https://ai-tldr.dev/tools/arbor-agent/
- Updated: 2026-07-12

## In short

Arbor is an open-source autonomous research agent from Renmin University of China's Gaoling School of Artificial Intelligence and Microsoft Research. You give it a benchmark and a goal; it proposes hypotheses, edits code, runs real experiments and keeps only the changes that survive held-out data. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in Python and licensed Apache-2.0.

## Overview

Arbor is an open-source autonomous research agent from Renmin University of China's Gaoling School of Artificial Intelligence and Microsoft Research. You give it a benchmark and a goal; it proposes hypotheses, edits code, runs real experiments and keeps only the changes that survive held-out data. It is aimed at any task with a target to improve and a metric to measure — the README names model training, harness engineering and data synthesis — and it records every attempt, including the failures, in a persistent Idea Tree rather than letting them scroll out of context.

Two cooperating agents do the work. A long-lived Coordinator acts as research director: it maintains the Idea Tree and drives a six-step cycle of observe, ideate, select, dispatch, backpropagate and decide. Executors act as research engineers: each takes one idea, implements it in its own git worktree on a dedicated branch, iterates on a dev split and reports evidence. A change is merged into a per-run `trunk` branch only when it clears a configurable margin on the held-out test split, and `main` is never touched until you merge `trunk` yourself. Insights from each result are abstracted upward to ancestor nodes so later ideas start from what earlier ones learned.

Arbor ships three ways in. The native `arbor` CLI (Python 3.10+, `pip install arbor-agent`) is the full runtime, with an intake conversation that produces a one-screen Research Contract, a live dashboard, checkpoint and resume, plugins and a final `REPORT.md`; it talks to Anthropic, OpenAI's Responses API or any OpenAI-compatible endpoint, including local models through Ollama or vLLM. For coding agents on a subscription plan, a keyless integration installs an Agent Skill Suite into Claude Code or Codex and exposes Arbor's tree, evaluation, merge and report tools over MCP while the host agent's own model does the reasoning. The project is built on claw-code and released under the Apache-2.0 license.

## What it does

- A persistent Idea Tree of hypotheses, results, failure modes and distilled insights that propagate up to ancestor nodes
- Coordinator and Executor agents running a six-step cycle: observe, ideate, select, dispatch, backpropagate, decide
- Experiment discipline: each Executor works in an isolated git worktree, iterates on a dev split, and merges only gains that clear a margin on the held-out test split
- Keyless literature search over the alphaXiv API, with `arbor idea-check` for novelty and prior-art checks on an idea before compute is spent
- Four interaction modes from fully autonomous `auto` to `collaborative`, plus run commands such as `/tree`, `/evidence`, `/pause` and `/report`
- Runs as a native CLI with a live dashboard and read-only web monitor, or inside Claude Code and Codex as a skill suite backed by an MCP server

## Getting started

Arbor needs Python 3.10 or newer and Git; a virtual environment is recommended. The literature-search backend is bundled only on Python 3.12 and above.

1. Install the CLI

   `pipx install arbor-agent` works too if you want `arbor` available globally. `arbor doctor` checks PATH, git and API keys.

```bash
pip install arbor-agent   # or: uv pip install arbor-agent
arbor doctor
```

2. Watch a recorded run first

   Replays a bundled sample run in the live dashboard with no API key or config. Add `--html` to write a self-contained interactive page instead.

```bash
arbor replay --demo
```

3. Connect a model

   `quickstart` gets you running with a free Gemini or Groq key or a local Ollama model; `setup` runs the full provider, model, base_url and key flow. Both write `~/.arbor/config.yaml`.

```bash
arbor quickstart
# or
arbor setup
```

4. Prepare a benchmark

   The target directory needs a runnable evaluation script, evaluation data (ideally a dev split and a held-out test split) and a clean git repository. Project settings go in a `research_config.yaml`.

```yaml
task: >
  Optimize the agent's accuracy on the benchmark.
  Do NOT modify the evaluation harness or data files.

coordinator:
  max_cycles: 10
  max_depth: 2
  merge_threshold: 5.0
  ui:
    interaction_mode: review

executor:
  max_turns: 100
```

5. Run it

   Arbor opens with an intake conversation that turns your goal into a Research Contract; once you confirm it, the dashboard takes over. Verified gains land on `research/<run>/trunk` for you to merge.

```bash
arbor --cwd ./benchmark --config research_config.yaml --max-cycles 3
# later
git merge research/run_xxx/trunk
```

6. Or run it inside Claude Code without an API key

   The plugin installs the skill suite and registers `arbor mcp`; then invoke `/arbor-research-agent` in your project and describe the objective.

```bash
claude plugin marketplace add RUC-NLPIR/Arbor
claude plugin install arbor
```

## When to use it

- Hand an agent a benchmark with an evaluation script and let it search for code changes that raise the score over many cycles
- Tune an agent harness, training recipe or data-synthesis pipeline while guarding against overfitting with a held-out test split
- Check whether a research idea already exists in the literature before spending compute on it
- Run a structured research loop from a Claude Code or Codex subscription when there is no raw API key to give a separate tool

## Version history

- 2026-07-12 v0.1.4: v0.1.4 added training-ready run traces and on-by-default capture and reuse of concrete findings from past runs, and enforced scoped boundaries in the interactive intake.
- 2026-06-25 v0.1.3: v0.1.3 added a zero-config alphaXiv search backend with `idea-check` novelty review, the arbor-zoo benchmark format with `arbor benchmark verify` and `add`, a redesigned read-only dashboard and evaluation-discipline checks.
