CORAL
CLI

CLI Reference

Complete reference for all CORAL CLI commands.

Getting Started

coral init

Create a new task directory with scaffolded config and grader.

coral init <path> [--name NAME]
FlagDescription
pathPath for the new task directory
--nameTask name (default: directory name)
coral init my-task
coral init my-task --name "My Task"

coral validate

Validate task structure and dry-run the grader against seed code.

coral validate <path>
FlagDescription
pathPath to the task directory
coral validate my-task

Running Agents

coral start

Launch autonomous agents on a task. Auto-wraps in tmux by default.

coral start -c <config> [options]
FlagDescription
-c, --configPath to task config YAML (required)
--agents NNumber of agents to spawn
-m, --modelModel override (e.g. opus, sonnet, haiku)
-v, --verboseStream agent output to terminal
--research / --no-researchEnable/disable web search
--runtimeAgent runtime (e.g. claude_code, codex)
--uiAlso launch the web dashboard
--no-tmuxDon't auto-create a tmux session
coral start -c task.yaml
coral start -c task.yaml --agents 4 --model opus
coral start -c task.yaml --ui

coral resume

Resume agents from a previous run.

coral resume [--task TASK] [--run RUN] [options]
FlagDescription
--taskTask name (auto-detected if omitted)
--runRun ID (defaults to latest)
-m, --modelModel override
-v, --verboseStream agent output
--uiAlso launch the web dashboard
--no-tmuxDon't auto-create a tmux session
coral resume
coral resume --task my-task --model opus

coral stop

Gracefully stop the CORAL manager and all agents.

coral stop [--task TASK] [--run RUN] [--all]
FlagDescription
--allStop all active runs
--taskTask name
--runRun ID

coral status

Show manager/agent status and top leaderboard entries.

coral status [--task TASK] [--run RUN]

Inspecting Results

coral log

List and search attempts. Default: top 20 sorted by score.

coral log [options]
FlagDescription
-n, --count NNumber of results (default: 20)
--recentSort by time instead of score
--agent IDFilter by agent ID
--search QUERYFull-text search
--taskTask name
--runRun ID
coral log                     # Top 20 by score
coral log -n 5                # Top 5
coral log --recent            # Sort by time
coral log --agent agent-1     # Filter by agent
coral log --search "kernel"   # Full-text search

coral show

Show full details and diff for a specific attempt.

coral show <hash> [--task TASK] [--run RUN]
FlagDescription
hashCommit hash or prefix
coral show abc123

coral notes

List, search, or read agent notes.

coral notes [options]
FlagDescription
-s, --search QUERYSearch notes by keyword
-n, --recent NShow N most recent
-r, --read IDRead a specific note by number or name
coral notes                    # List all
coral notes --search "idea"    # Search
coral notes --read 3           # Read note #3

coral skills

List skills or show details of a specific skill.

coral skills [--read NAME]
FlagDescription
-r, --read NAMEShow details of a skill
coral skills
coral skills --read optimizer

coral runs

List all CORAL runs.

coral runs [options]
FlagDescription
-a, --allInclude stopped runs
-t, --task NAMEFilter by task name
-n, --count NNumber of results (default: 20)
-v, --verboseShow full paths
coral runs                    # Active runs only
coral runs --all              # Include stopped
coral runs --task my-task     # Filter by task

Dashboard

coral ui

Start the CORAL web dashboard.

coral ui [options]
FlagDescription
--port PORTPort (default: 8420)
--host HOSTHost (default: 127.0.0.1)
--taskTask name
--runRun ID
--no-openDon't auto-open browser
coral ui
coral ui --port 9000

Agent Internals

These commands are primarily used by agents during their eval loop, but can also be run manually.

coral eval

Stage all changes, commit, and run the grader.

coral eval -m <message> [--agent ID] [--workdir DIR]
FlagDescription
-m, --messageDescription of changes (required)
--agentAgent ID (default: read from .coral_agent_id)
--workdirWorking directory (default: cwd)
coral eval -m "Optimized inner loop with vectorization"

coral diff

Show staged and unstaged changes.

coral diff [--workdir DIR]

coral revert

Reset to HEAD~1, discarding the last commit and its changes.

coral revert [--workdir DIR]

coral checkout

Reset the working tree to a previous attempt's commit.

coral checkout <hash> [--workdir DIR]
coral checkout abc123

coral heartbeat

View or modify per-agent heartbeat configuration.

coral heartbeat [subcommand] [options]

Subcommands:

SubcommandDescription
(none)Show current heartbeat config
set NAME --every N [--global] [--prompt TEXT]Add or update an action
remove NAMERemove an action
resetReset to task YAML defaults
coral heartbeat                              # Show config
coral heartbeat set reflect --every 3        # Reflect every 3 evals
coral heartbeat set review --every 5 --prompt "Review alternatives"
coral heartbeat set consolidate --every 5 --global  # Use global eval counter
coral heartbeat remove consolidate           # Remove action
coral heartbeat reset                        # Reset to defaults