翻篇收录说明
翻篇网页快照

BenchFlow documentation — BenchFlow

https://www.benchflow.ai/docs/benchflow

最近抓取:2026-12-05 07:40:33(北京时间)

最近内容变化:2026-12-02 19:08:20(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

Run AI agents on benchmark tasks in sandboxes, score every attempt with the task's own tests, and keep everything they did.

正文摘录

BenchFlow pagesBenchFlow documentationBenchFlow is a command-line tool, bench, and a Python package, benchflow (these pages cover 0.9.2), for evaluating AI agents. It runs an agent on each task in a fresh sandbox, scores what the agent left with the task's own checks, and keeps a record of each attempt that can explain its score: what the agent did, each model call through BenchFlow's proxy with the settings it carried, and the workspace it left. SkillsBench and Robo Use run on it. What do you want to do? Run my first eval: Quick start See what that record lets you decide, where BenchFlow stops, and how its parts fit: Why BenchFlow, How BenchFlow works Measure an agent or a model on a benchmark: Find a benchmark, then Run a benchmark Check a benchmark, or a published score: Check a benchmark, Reproduce a published score Publish a score others can check: Report a result Build tasks, or a whole benchmark: Write a task Grade design work by blind pairwise votes, from people or a model (0.10): Human preferences Score an agent I wrote: Run your own agent Run simulated robot tasks from several seeds: Embodied tasks Train a model on scored attempts: BenchFlow as an RL environment Run thousands of trials in the cloud: Sandboxes Bring tasks, results or trajectories from another tool: Bring what you have Move a project from 0.7: Upgrade from 0.7 Try it You need uv and Docker running. Install BenchFlow: ShellCopyuv tool install --python 3.12 'benchflow==0.9.2' \ --constraints https://raw.githubusercontent.com/benchflow-ai/benchflow/v0.9.2/constraints.txt The constraints file pins every dependency to the version the release was tested with (Install). Score a public task with its reference solution, the oracle agent, which needs no model and no key: ShellCopybench run benchflow-ai/skillsbench/tasks/econ-detrending-correlation -a oracle It prints Score: 1/1 when the solution passes the task's tests. The Quick start then runs Claude Code on the same task and shows how to read what it did. Not in these guides Two features of 0.9.2 have only their reference here: branching a trial from a saved sandbox snapshot (bench branch and bench run --checkpoints), and hosted environments (bench hub and bench run --source-env). Versions These pages document BenchFlow 0.9.2, the current release. 0.9.2 is 0.9.1 with five grading-integrity fixes and nothing else (Changelog). Outputs from runs on 0.9.1 say so, and hold for 0.9.2 unless a task's grading meets one of those fixes. Commands that download BenchFlow's example files name the repository's main branch in this Markdown. On the published site they fetch from v0.10.0rc3 instead, the 0.10.0rc3 release tag, which holds these pages and their example files, so a page always runs against the files it was written with. The repository's Markdown and preview builds keep main. A page that needs 0.10.0rc3 says so in its first line, and the sidebar tags it 0.10; it's on PyPI as a pre-release (Install). A section that needs it ends its heading with "(0.10)". What's in 0.10.0rc3 lists them all. For coding agents Every page is also Markdown: add .md to its URL, or send Accept: text/markdown. /docs/llms.txt lists every page with its sections, and links one file per section with that section's pages in full.All pagesStartInstallInstall bench and the Python package at a pinned version, check the machine, and move between versions.Quick startScore one task with its reference solution, with an agent that does nothing, and with Claude Code, then read the results.How BenchFlow worksThe rollout, BenchFlow's unit: what goes into one (task, environment, agent, model), what comes out (trajectory, reward, artifacts), and what reads them.Why BenchFlowSee what each rollout records, what BenchFlow decides from that record, and where it stops, against Han-chung Lee's posts.Evaluate an agentFind a benchmarkSee which benchmarks you can run: the registry, any folder of tasks in a Git repository, and your own folders.Agents and modelsPick an agent (Claude Code, Codex, OpenCode, Pi and more), log in or set a key, and choose the model and effort.Before you run an evalSettle the settings that change a score (harness, effort, sampling, tries, limits, controls, cost) and see the plan before anything runs.Run a benchmarkRun an agent on many tasks at once, choose which tasks and how many tries, and know where the results go.Read the resultsRead a job's score, each trial's outcome and reward, what the agent did and what it cost, from the shell, the browser or Python.When a trial failsFind out why a trial failed or has no score, whose problem it is, and what to do next.SkillsGive the agent skills, confirm it used them, and measure whether they help.Run your own agentScore an agent you wrote, over ACP or as a script, like any built-in agent.Embodied tasks (Robo Use)Run Robo Use's simulated robot tasks from several seeds, read the results seed by seed, and give the reference solution its token.Bring what you haveRun tasks in the Terminal-Bench (task.toml) format, convert or export them, read old BenchFlow jobs, and hand trajectories to tools that read ATIF; see what doesn't carry over yet.Audit and reportCheck a benchmarkBefore trusting a benchmark's scores, show that every task can be solved, none passes for free, the verifiers hold, and the tasks aren't flaky.Compare runsPick the metric, count failures the right way, and tell with an interval whether two runs really differ.Reproduce a published scoreTake a published number, match its settings, rerun it, and say whether it holds.Report a resultPublish a score with the settings, controls, intervals and files another researcher needs to check it.Known pitfallsProblems that quietly change a score or break a run, each with its symptom, cause, how to detect it, and the fix.Build a benchmarkWrite a taskWrite a small research task (data in, a number out, a stated tolerance), check it, prove it with the controls, and run an agent on it.Task formatThe files of a task, what each is for, and the task.toml layout BenchFlow also reads; where both forms exist, they must match.Multi-turn tasksGive the agent several prompts in one sandbox: a scripted user that writes each next prompt, or several agents taking turns.Multi-step tasks0.10Split a task into steps that are each checked before the next one starts.VerifiersScore a trial with a test script: pass or fail, partial credit, tolerances, and a separate verifier for long tasks.Rubric reviewGrade the work a test can't check, such as the method behind an answer, with a weighted rubric and a reviewer agent, and read its verdicts.LLM judgeGrade what no script can check, a piece of writing or a web page, with a model and criteria you write, and know what the judge records.Human preferences0.10Judge two outputs at a time, blind, live and with reasons, by a person or a model, then rank the agents with intervals.Network and secretsControl what the agent can reach, keep it off the web or away from given sites, and know which keys and files enter the sandbox.Stop reward hackingMake sure an agent can't score without doing the work, and prove it with probes.Publish a benchmarkShare a folder of tasks through Git or the registry, version it, and declare the setup runs should match.Run at scaleSandboxesChoose where trials run, and set up Docker, remote Docker or AgentCore.DaytonaRun trials in Daytona cloud sandboxes: setup, limits, and cleanup.ModalRun trials in Modal sandboxes, including tasks that need GPUs.Concurrency and budgetsRun many trials at once, cap what a job may spend, and watch a long run.Usage and telemetryWhat BenchFlow records for every model call (tokens, cost, timing, settings), where each number comes from, and what happens when an agent exports no OpenTelemetry.Resume, retries and regradeContinue a stopped job, know which failures are retried, and rescore saved work with a fixed verifier.Configs and variablesKeep a whole run in a YAML file, and send each environment variable where it's needed.Run in CIRun a benchmark in CI and fail the build when the pass rate drops.Train with RLBenchFlow as an RL environmentRun groups of rollouts on a task, score them, and read rewards and advantages, with token capture on from the start.Export training dataTurn finished trials into rows a trainer reads, check the rows, and know each file a trial writes for trainers and other tools, with its schema.Connect a trainerStream rollouts to a trainer while a job runs, check token capture, launch a Prime-RL SFT job, and connect other trainers through files.VersionsUpgrade from 0.7Move an install and a project from 0.7.x to 0.9.2, and go back if you need to.What's in 0.10.0rc30.10The prerelease's features, how to install it, and what may still change.ChangelogEvery release's changes, from the repository's CHANGELOG.ReferenceCommandsLook up every bench command and flag, including the ones --help hides and the ones new in 0.10.Python APILook up every public name in the benchflow package.CLI and PythonFind the Python argument that does what each bench flag does.Files BenchFlow reads and writesLook up every key of the task files you write and every field of the job and trial files BenchFlow writes.Error messagesLook up a fixed message BenchFlow prints and what to do about it.Environment variablesEvery variable BenchFlow reads, and where it goes: your machine, the sandbox, the agent or the verifier.GlossaryEvery term in these docs, one line each, with the page that covers it.