benchflow
AGENTS.md363 starsChanged 5 days agoApache-2.0View on GitHub
Multi-turn agent benchmarking with ACP. Docs live in docs/. The checks test.yml's unit job runs: Allow about 7 GB of free space for a full suite's temporary files, in addition to the checkout, environment and caches. Check df -h /tmp and the filesystem that holds your chosen temporary folder before starting. Give each lane and each invocation its own --basetemp. pytest clears that folder at the start of a run, so never point it at a shared folder or a…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- benchflow-experiment-reviewSkill
- benchflowSkill
- benchflow-traj-upload-opsSkill
- benchflow-traj-uploadSkill
- skill-creatorSkill
- task-creatorSkill
- task-reviewSkill
- thermo-nuclear-code-quality-reviewSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Keep the default tmp_path_retention_policy=all.
- Distinctive: line 47
Never clean a shared pytest root or another lane's temporary folder.
- Distinctive: line 59
When running tasks experiments on Daytona, keep in mind that Daytona supports up to 100 parallel VMs.
- Distinctive: line 60
When running tasks experiments by default use the highest inference level for all the model calls (For example, xhigh for GPT5.5, or MAX …
- Very specific: line 66
When reviewing task-run result trajectories, agents must use the installed benchflow-experiment-review skill from the active harness's …
- Very specific: line 85
Keep the two review skills distinct: task-review is pre-merge task-PR review, benchflow-experiment-review is post-run trajectory auditing.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
benchflow
Multi-turn agent benchmarking with ACP. Docs live in docs/.
Setup + test
The checks test.yml's unit job runs:
uv sync --extra dev --locked
uv run ruff check src tests tools
uv run ruff format --check src tests tools
uv run ty check
uv run python -m pytest tests/ -n autoSuite temporary folders on build VMs
Allow about 7 GB of free space for a full suite's temporary files, in addition
to the checkout, environment and caches. Check df -h /tmp and the filesystem
that holds your chosen temporary folder before starting.
Give each lane and each invocation its own --basetemp. pytest clears that
folder at the start of a run, so never point it at a shared folder or a folder
holding evidence you want to keep. Without --basetemp, pytest retains only
the last three runs under /tmp/pytest-of-<user> across all lanes using that
user; another lane can remove your earlier run's files.
suite_tmp=$(mktemp -d "$HOME/w/bench-suite-XXXXXX")
uv run python -m pytest tests/ --basetemp="$suite_tmp"Keep the default tmp_path_retention_policy=all. Do not use
-o tmp_path_retention_policy=failed: successful tests can produce fixtures
that later tests still need, so early removal breaks the suite.
Some tests freeze files and directories read-only. After the run and all its workers have exited, preserve any evidence you need, then make only that run's folder writable before deleting it:
chmod -R u+w "$suite_tmp"
rm -r -- "$suite_tmp"Never clean a shared pytest root or another lane's temporary folder.
Conventions
- Don't rewrite passing tests to match new behavior. Update for shape changes, not for semantic changes you don't understand. No tautological tests.
- Regression tests must name the PR/commit they guard in the docstring (e.g.
Guards the fix from PR #198 against the regression introduced by PR #193). - Human review before
main. PRs only. No force-pushes tomain. Self-approval doesn't count. - Trunk-based: branch off
main, PR back tomain. No long-lived release branches. - Releases: current mechanics live in
docs/release.md. Merges tomainpublish internal preview.devNbuilds after CI passes; public releases require a reviewed stable-version PR, a matchingv<version>tag onmain, then a bump back to the next.dev0.
Experiment guidance (when using benchflow to run batch tasks experiments)
- When running tasks experiments on Daytona, keep in mind that Daytona supports up to 100 parallel VMs.
- When running tasks experiments by default use the highest inference level for all the model calls (For example, xhigh for GPT5.5, or MAX for Opus4.8).
- When running tasks experiments, for each API key that available to you, verify 1. whether the key is still working by sending basic LLM calls; 2. ask the user how many parallel tasks can each key support / figure it out by yourself. Thus you can use highest available concurrency when running experiments.
- A revoked/wrong model key shows up as an opaque agent error, not an auth error. With
openhands, a dead key surfaces only asACP error -32603: Internal erroron the first model call (and--usage-tracking off/--agent-env LLM_CACHING_PROMPT=falsedo not help). So before any run, verify the exact key string with a raw provider call: Geminicurl ".../v1beta/models/<model>:generateContent?key=$GEMINI_API_KEY"must return 200; Bedrock aconversecall withAuthorization: Bearer $AWS_BEARER_TOKEN_BEDROCKmust return 200. Keys of the same provider can rotate format (e.g. Google AI StudioAQ.…vs legacyAIza…) — only the live one works, so never assume a.env/keys.enventry is current. - Daytona hard-caps each sandbox at 10 GB (a larger storage request is clamped — see the
Clamping storage_mb … -> 10240log line). Tasks with heavy images — large HuggingFace model snapshots, Playwright, LaTeX/marker, e.g.latex-formula-extraction— overflow during bootstrap and fail withNo space left on device, or hang silently at "Sandbox user agent ready" with no trajectory (this is an infra/disk failure, not a model or auth bug). On Daytona pick light tasks (e.g.citation-check,3d-scan-calc); for heavy tasks use--sandbox docker(host disk, no 10 GB cap). - Opus-4.8 (and other Claude 4.8+) on Bedrock needs the adaptive-thinking patch. Without it the first call 400s (
thinking.type.enabled is not supported … use thinking.type.adaptive). It ships in the LiteLLM proxy assrc/benchflow/providers/litellm_bedrock_patch.py(loaded into the proxy process viasitecustomize), so it applies the same way on both backends — there is no separate host Bedrock proxy. Model string isaws-bedrock/us.anthropic.claude-opus-4-8withAWS_REGION=us-west-2. The run defaults to adaptivehigh; current LiteLLM Bedrock support also clamps requestedxhigh/maxtohighfor Claude 4.8 models. Verify the applied value intrajectory/llm_trajectory.jsonlrather than trusting a requested-effort label. - Use Huggingface as the ground truth of tasks traj database. The target is making sure number_of_tasks * 2 (with/without skills) * number_of_trials (usually 3 / 5) for each model + each harness is complete. Each traj on Huggingface must be "healthy" - "healthy" means 1. the trial has complete traj information (agent pass / fail / timeout the task); 2. the trial has complete meta information (for example: token usage; timing; etc.). For each traj, we should use subagents to audit 1. whether the fail / timeout is due to agent capability instead of task config or env setting; 2. there is no reward hacking behavior; 3. in "no-skill" trials the agents do not have access to any skill files or accessed any skill files in traj.
- When reviewing task-run result trajectories, agents must use the installed
benchflow-experiment-reviewskill from the active harness's skill root; in this repo the canonical copy lives at.agents/skills/benchflow-experiment-review, with.claude/skillskept as a symlink for Claude Code compatibility.
Skill catalog (.agents/skills, mirrored at .claude/skills)
| Skill | Use it for |
benchflow | Running benchmarks, creating tasks, inspecting results via the CLI/SDK. |
benchflow-experiment-review | Auditing already-published run trajectories: traj health, reward hacking, no-skill leakage, Daytona/Docker parity. Also covers speed and A/B comparisons, and reviews of changes to sandbox and security code. Wired into .github/scripts/codex_review.py and integration-final-review.yml. |
benchflow-traj-upload | Uploading trajectories to the HuggingFace/GCS traj database. |
skill-creator | Creating, improving, evaluating, and packaging reusable skills. Vendored from anthropics/skills@f6656c1. |
task-creator | Authoring a new SkillsBench task, idea → submission-ready PR. |
task-review | Reviewing a SkillsBench task PR pre-merge — track routing, policy checks, oracle+agent benchmarks, report bundle. |
thermo-nuclear-code-quality-review | Deliberately harsh maintainability review of a branch. User-invoked only (disable-model-invocation: true). |
task-creator and task-review are verbatim copies from
benchflow-ai/skillsbench; they operate on a
skillsbench checkout, not on this repo. Re-sync by copying .agents/skills/{task-creator,task-review}
from there. skill-creator is a verbatim copy from
anthropics/skills@f6656c1.
Keep the two review skills distinct: task-review is pre-merge task-PR review,
benchflow-experiment-review is post-run trajectory auditing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

