█

AI/TLDR

Buy me a coffee
Buy me a coffee

CORAL

Give it a codebase and a grader, and a team of coding agents keeps improving the score

Autonomous Coding AgentsOpen source
Latest
v0.7.21
Updated
6 Sep 2026
Language
Python
License
Apache-2.0

What's new

v0.7.216 Sep 2026

Added Frontier-SWE example task ports and an optional header_provider hook in the LLM gateway, plus fixes to the CLI, the DeepSeek Harness runtime and gateway request logging.

IN SHORT

What is CORAL?

CORAL is open-source infrastructure for autoresearch: you hand it a codebase and a grader that turns the code into a score, and it runs a group of autonomous coding agents that keep editing, testing and sharing what they learn until you stop them. 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.

Updated Markdown version ↗

Overview

CORAL is open-source infrastructure for autoresearch: you hand it a codebase and a grader that turns the code into a score, and it runs a group of autonomous coding agents that keep editing, testing and sharing what they learn until you stop them. It is a Python command-line tool (`coral`) from the Human-Agent-Society group, released under Apache 2.0 and described in the paper "CORAL: Towards Autonomous Multi-Agent Evolution for Open-Ended Discovery", accepted at COLM 2026.

CORAL architecture diagram: initialization creates shared state and per-agent workspaces, each agent loops through reading, editing, evaluating and sharing notes, while a manager watches attempts and triggers heartbeats
How a CORAL run is organized: per-agent workspaces, a shared .coral/public/ directory, the eval loop and the manager's heartbeats.CORAL README ↗

Each agent works in its own git worktree, so the agents never overwrite each other. Shared state (past attempts, notes and reusable skills) lives in a `.coral/public/` directory that is symlinked into every worktree, so each agent can read what the others have tried in real time. A grader daemon scores every commit an agent submits with `coral eval`, and a manager process periodically interrupts the agents with heartbeat prompts such as `reflect`, `consolidate` and `pivot`.

CORAL does not ship its own model or agent. It drives coding agents you already have installed and signed in: Claude Code (the default), Codex, OpenCode, Cursor Agent, Kiro, DeepSeek Harness and Pi, with a LiteLLM gateway for custom models. Example tasks in the repo range from circle packing and a math conjecture to GPU kernel optimization, MNIST and Kaggle competitions.

What it does

  • Parallel agents, each isolated in its own git worktree, with a shared `.coral/public/` directory for attempts, notes and skills that every agent can read and write.
  • Pluggable graders packaged as small Python projects: subclass `TaskGrader`, return a float or a score bundle, and CORAL scores every `coral eval` submission against it, with hidden answer keys kept in `.coral/private/`.
  • Works with several coding-agent runtimes selected by `agents.runtime`: `claude_code`, `codex`, `opencode`, `cursor`, `kiro`, `dsh` and `pi`.
  • A manager that watches all attempts and sends heartbeat prompts (`reflect`, `consolidate`, `pivot`), plus multi-island runs that split agents into isolated groups with migration between them.
  • A CLI for the whole run (`coral init`, `validate`, `start`, `status`, `log`, `stop`) and a web dashboard (`coral ui`) showing score curves, per-agent progress and recent attempts.
  • A skills-first plugin for Claude Code and Codex that scaffolds a task in your own repo, writes the grader and loops `coral validate` until the task is ready to launch.

Getting started

You need Python 3.11+, git and at least one supported coding agent installed and authenticated (Claude Code is the default). tmux is recommended, since CORAL wraps runs in a tmux session. These steps follow the README and the Quick Start in the CORAL docs.

Install the coral CLI

The install script sets up uv if needed and installs `coral` globally with `uv tool install`. Set `CORAL_VERSION=<tag>` to pin a release.

bashbash
curl -fsSL https://raw.githubusercontent.com/Human-Agent-Society/CORAL/main/install.sh | sh
coral --version

Scaffold a task

This creates `my-task/` with a `task.yaml`, a `seed/` folder holding the baseline code the agents iterate on, and a `grader/` Python package.

bashbash
coral init my-task

Describe the task and the agents

Edit `my-task/task.yaml` to point at the grader, choose whether higher or lower scores win, and set how many agents to run and which runtime they use.

yamlyaml
task:
  name: my-task
  description: "Optimize the function in solution.py to print a higher score."

grader:
  entrypoint: "my_task_grader.grader:Grader"
  setup:
    - "uv pip install -e ./grader"
  timeout: 300
  direction: maximize
  args:
    program_file: "solution.py"

agents:
  count: 2
  runtime: claude_code
  model: claude-sonnet-4-6

workspace:
  repo_path: "./seed"

Write the grader

The scaffolded stub runs `solution.py` and parses a number from stdout. Change `evaluate()` to compute your own metric.

pythonpython
from coral.grader import TaskGrader
from coral.types import ScoreBundle


class Grader(TaskGrader):
    def evaluate(self) -> float | ScoreBundle:
        program_file = self.args.get("program_file", "solution.py")
        result = self.run_program(program_file)

        if result.returncode != 0:
            return self.fail(f"Program crashed: {result.stderr[:200]}")

        try:
            return float(result.stdout.strip())
        except ValueError:
            return self.fail("Could not parse output as a number")

Validate, then launch the agents

`coral validate` runs the grader once against the seed code and shows the score. `coral start` then creates the `.coral/` shared state, one git worktree and `CORAL.md` instruction file per agent, and spawns the agents.

bashbash
coral validate my-task
coral start -c my-task/task.yaml

Watch progress and stop the run

Each agent submits its changes with `coral eval -m "description"`, reads the score and feedback, and writes notes for the others. Follow along from the terminal or the web dashboard, and stop the run when you are done.

bashbash
coral log      # leaderboard
coral status   # agent health and status
coral ui       # web dashboard
coral stop
The CORAL web dashboard for a kernel-builder run, showing a score chart, an attempts table and per-agent status for four agents
The CORAL dashboard during a four-agent kernel-optimization run: score per attempt, the attempts leaderboard and each agent's recent activity.CORAL README demo ↗

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Optimizing a measurable piece of code, such as a GPU kernel or a hot function, by letting several agents try different strategies against the same benchmark overnight.
  • Running autoresearch on ML tasks like Kaggle competitions or model training scripts, where a grader can score each attempt automatically.
  • Attacking open-ended optimization or math problems where you can write a scorer but do not know the solution approach.
  • Driving long multi-agent experiments from inside Claude Code or Codex through the CORAL plugin, without learning the CLI first.

How CORAL compares

CORAL alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
opencode★ 230kOpenCode is an open source AI coding agent that runs in your terminal, with built-in build and plan agents and an optional desktop app.
Claude Code★ 158kAnthropic's agentic coding tool for the terminal, IDE and GitHub: it understands your codebase, executes routine tasks, explains code and handles git workflows from natural-language commands.
Orca★ 147kOpen-source desktop workspace that runs Claude Code, Codex, OpenCode and other CLI coding agents in parallel, each in its own git worktree, with a mobile companion app.
OpenAI Codex★ 137kOpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel.
Pi★ 125kMinimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks.
Gemini CLI★ 109kAn open-source command-line AI agent from Google that connects your terminal to Gemini models for reading code, editing files, running shell commands, and searching the web.
autoresearch★ 101kKarpathy's minimal harness that hands a coding agent a single-GPU LLM training script and lets it run fixed five-minute experiments, keeping or discarding each change on its own.
CORAL★ 1.2kGive it a codebase and a grader, and a team of coding agents keeps improving the score