What is auto-arch-tournament?
auto-arch-tournament is an autonomous research loop pointed at hardware instead of software. It sits in the Autonomous Coding Agents category of the AI Coding tools and is open-source, written in SystemVerilog. To get started: install the toolchain.
Overview
auto-arch-tournament is an autonomous research loop pointed at hardware instead of software. Each round, a coding agent proposes a microarchitectural hypothesis for a SystemVerilog RV32IM CPU, implements it in an isolated git worktree, and then runs it through a verification gauntlet: riscv-formal, Verilator co-simulation, and three-seed FPGA place-and-route. Only a hypothesis that beats the current champion on CoreMark/MHz gets merged, which is what keeps the loop from drifting into changes that look clever and measure worse.
The repository is multi-core by design. Every architecture lives under `cores/<name>/` with its own RTL, tests, log and `core.yaml`, and `make loop TARGET=<name>` runs the loop on one core at a time on a dedicated `core-<name>` branch inside its own worktree — so two cores can iterate in parallel without colliding on the git index. Within a round the work is split between a hypothesis agent, which writes a schema-validated YAML proposal after reading the source RTL, recent log entries, `LESSONS.md`, `CORE_PHILOSOPHY.md` and `core.yaml`, and an implementation agent that edits the RTL.
The published run that produced `cores/v1/` from `cores/baseline/` tried 73 hypotheses over 9 hours 51 minutes and accepted 10. The champion went from 301.04 iter/s (2.226 CoreMark/MHz, 135 MHz) to 577.76 iter/s (2.908 CoreMark/MHz, 199 MHz) — a 92% fitness gain with 40% fewer LUTs — with accepted winners including a backward-branch taken predictor, a cold multi-cycle DIV/REM unit, a one-deep store retirement slot and several I-fetch replay predictors. Setup is macOS-only for now and needs a coding-agent CLI; Codex is the default and Claude Code is supported with `AGENT=claude`.
What it does
- A full propose → implement → verify → merge loop, where only measured improvements over the reigning champion are kept
- Verification gauntlet on every candidate: riscv-formal, Verilator co-simulation and 3-seed FPGA place-and-route
- Multi-core repository layout — each architecture under `cores/<name>/` with its own RTL, tests, log and `core.yaml`
- Isolated git worktrees on per-core branches, so several cores can iterate in parallel without stomping each other
- Configurable per-target fitness goals (`LUT=`, `COREMARK=`) and parallel candidate slots per round (`K=`)
- `setup.sh` fetches the whole toolchain — Verilator, OSS CAD Suite (yosys, nextpnr-himbaechel, sby, bitwuzla) and a RISC-V cross compiler — reusing anything already on PATH
Getting started
The project is macOS-only at present. Install the toolchain once, then drive everything through the Makefile — every core-touching target requires an explicit TARGET.
Install the toolchain
One-time setup that fetches Verilator, the OSS CAD Suite, the riscv-none-elf cross compiler and a few Python dependencies into .toolchain/.
bash setup.shSmoke-test one round
Runs a single round in a single slot so you can watch the pipeline end to end. You also need a coding-agent CLI installed; Codex is the default.
make next TARGET=v1Run the tournament
N sets the number of rounds and K the parallel candidate slots per round. Fitness goals can be set per target.
make loop TARGET=v1 N=10
make loop TARGET=v1 N=10 K=3
make loop TARGET=v1 N=10 LUT=3000 COREMARK=400
make loop TARGET=v1 N=10 AGENT=claudeFork your own core and read the results
Start a new architecture from the locked baseline, then summarise what the loop accepted and rejected.
make loop TARGET=mycore BASE=baseline N=10
make report TARGET=v1Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Run an overnight optimisation tournament on your own RTL core and wake up to only the changes that passed formal checks and synthesis
- Study how an agent-driven design loop behaves when every merge is gated by a hard, measurable fitness function
- Iterate on several microarchitectures in parallel, each on its own branch and worktree
- Use it as a worked template for agent loops in other verifiable domains, where a verifier — not the model — decides what is kept
How auto-arch-tournament compares
auto-arch-tournament alongside other open-source autonomous coding agents tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| opencode | ★ 230k | OpenCode 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 | ★ 158k | Anthropic'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 | ★ 147k | Open-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 | ★ 137k | OpenAI's cloud and CLI coding agent that writes features, fixes bugs, and proposes code changes across a repo, running tasks in parallel. |
| Pi | ★ 125k | Minimal terminal coding agent harness with four built-in tools, extended through TypeScript extensions, skills and prompt templates instead of forks. |
| Gemini CLI | ★ 109k | An 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 | ★ 101k | Karpathy'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. |
| auto-arch-tournament | ★ 216 | An autonomous loop that evolves a RISC-V CPU, verified before every merge |
