SuperAPIAI Directory

agent12

github.com · Other AI tools

Agent-12 is an open-source agent capability leaderboard and evaluation tool for local large models, released by nicedreamzapp on GitHub. It focuses not on a model's scores on knowledge Q&A, but on whether the model, when running locally on personal hardware that users can actually buy, can reliably complete real file-operation agent tasks, such as creating files, fixing defects, renaming functions, deleting the correct backup files, and so on. The evaluation method is to have the model execute 20 real tasks in a disposable sandbox (12 easy tasks and 8 hard tasks), and then have a filesystem judge check the file results the model leaves behind, rather than scoring based on the model's textual explanations. The project emphasizes a controlled evaluation environment: the reference test harness is a native terminal engine of about 550 tokens, with tool-calling dialects adapted for different models; all judges must be validated in both directions with known-correct and known-wrong solutions before official scoring. Evaluation is completed on a single Apple Silicon consumer-grade device, and results record the score, actual elapsed time, and hardware information. The project requires Python 3.10 or later and provides a runner, adapters, task sets, judge validation scripts, and a leaderboard page generation script.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Agent-12 is a local agent leaderboard project, and its core question is: can a model running locally on hardware the user can actually afford truly act as a reliable agent? It does not evaluate a model's ability to answer general-knowledge questions; instead, it has the model actually perform file-operation tasks in a sandbox, and then scores by checking the results on the filesystem, not based on explanatory text the model writes itself.

Main capabilities

  • Task set: 20 real agent tasks in total, divided into 12 easy and 8 hard. Easy tasks include creating and running a file, fixing a failing test, renaming across files, extracting a configuration value, precise editing, handling escapes, counting, CSV summation, deleting the correct file, and other everyday operations. Hard tasks include interval merging with edge cases, multi-defect debugging with a hash-locked test file, an LRU+TTL cache, CSV parsing with the csv module disabled, lexicographic topological sorting, timestamp normalization, 10-rule validation, and a cache key collision hidden behind distractors.
  • Judging method: each task has a filesystem judge that runs the model's artifacts in a fresh subprocess. Tasks with attached test files lock the test file hash; modifying the test file scores zero.
  • Judge validation: validate_judges.py runs a known-correct solution (must pass) and a known-wrong solution (must fail) against each task's judge before scoring; failure in either direction exits with a non-zero exit code.
  • Test harness control: the project treats the test harness itself as an experimental variable; the same model may score full marks in a lean, model-tuned harness, but may run out of control for a long time in a heavy harness. The reference harness is a native terminal engine of about 550 tokens with per-model tool-calling dialects; other harnesses can be connected via command adapters and labeled separately.
  • Hardware and records: all local leaderboard rows are produced on a single Apple Silicon machine, recording the score, actual elapsed time, and hardware information.
  • Visual testing: a side-test project is included in which the model writes a single HTML file and a script then runs it in a headless browser.

Usage

  • The repository provides runner.py (single model, single suite, a fresh sandbox per task), adapters/ (anvil.py, anvil_dflash.py, command.py), tasks/easy.py and tasks/hard.py, validate_judges.py, build_site.py (renders results/ into docs/index.html), furball_bench.py and showdown.py, etc.
  • Requires Python 3.10 or later; the judge uses the interpreter running the test framework to execute the model solution, so a correct solution using newer type syntax will be judged as failed on 3.9, validate_judges.py refuses to run below 3.10, and this can be overridden with AGENT12_MIN_PYTHON. The interpreter version is recorded on each run.
  • The first step can be run on a fresh clone without installation; the third step can use any agent CLI; the second step requires the Anvil engine (agent.py), which is not in this repository, adapters/anvil.py imports from AGENT12_ENGINE_DIR, and on Apple Silicon it also requires MLX and the weights in configs/models.json. Visual tests require websocket-client and Brave at the default macOS path. run_task.sh, glimmer_night.sh, and lyric_ab.py hardcode paths on the author's machine and cannot be run directly in other environments.
  • Evaluation discipline: temperature 0, fixed step/token limits per suite, a fresh sandbox and fresh conversation for each task, and only one variable changed per comparison.

Use cases Suitable for developers, model evaluators, and local deployment enthusiasts who want to understand how local models perform on real file-operation agent tasks, and also suitable for reproducing or supplementing evaluation results on their own hardware.

Limitations

  • The Anvil engine is not in the repository, so the model leaderboard rows cannot be reproduced from a clone alone.
  • The held-out task pool is private, and build_site.py does not yet render its contamination markers; leaderboard scores come from 20 public tasks.
  • A sample of 20 tasks is small, and repeated runs may differ by one task.
  • Some scripts hardcode paths on the author's machine.
  • Models, MLX, mlx-lm, mlx-dspark, the DFlash 2 drafter, ds4.c, and Brave are upstream components and are not built within this project.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools