Skip to content
프로젝트

alexshpunt/explicit-edit-benchmark

GitHub에서 보기

소개

Benchmark coding agents and agent harnesses on 226 deterministic file-editing tasks with byte-exact verification and a public leaderboard.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Explicit Edit — Multi-Agent

Explicit Edit Benchmark: Multi-Agent

25 agents make hundreds of exact edits in one generated C++ file at the same time.

Explicit Edit Multi-Agent Benchmark: CI/CD status Explicit Edit Multi-Agent Benchmark: MIT license Explicit Edit Multi-Agent Benchmark: Hugging Face Dataset Explicit Edit Multi-Agent Benchmark: leaderboard

explicit-edit-multi-agent: 0 suites explicit-edit-multi-agent: 0 runs explicit-edit-multi-agent: 0 contributors explicit-edit-multi-agent: 0 observations explicit-edit-multi-agent: 0 models explicit-edit-multi-agent: 0 configs explicit-edit-multi-agent: 0 harnesses

Multi-Agent tests whether a harness keeps its edits exact while other agents change the same file at the same time.

How it works

A seed generates one main.cpp whose functions add weighted contributions to a checksum that main prints. Every task is a mechanical edit stated as exact text, as in the original suite, and has exactly one correct result. No two tasks edit the same text, so the reference does not depend on the order in which agents finish.

Each edit belongs to a cluster that isolates one way an edit can go wrong: a missed occurrence, a look-alike target, a block whose end must be found, supplied text with escapes, whitespace that must stay as it is, and more. Every cluster has a trap variant, which contains the difficulty, and a control variant, which is the same kind of edit without it. The hard preset takes 28 clusters with 186 edits, and full takes 53 clusters with 336 edits, each in a file of about 20,000 lines.

An observation is two runs of the same tasks with the same prompts:

  • Isolated: every task goes to a new agent in its own copy of the start project, and its result must equal the task's reference byte for byte.
  • Shared: up to 25 agents work on one main.cpp at once, a new agent for each task, in one shared sandbox. The final file is graded edit by edit, together with the build, the printed checksum and the functions that no task touches.

The prompt does not say that other agents edit the file: avoiding collisions is the harness's job. The two runs give four numbers:

Number Meaning
Precision The share of edits done right alone
Resilience Of the edits done right alone, the share that stay right in the crowd
Integrity The edits divided by the edits plus the untouched functions the crowd damaged
Final Precision × resilience × integrity

Run it

You need clang++ with the C++17 standard library and one participant config per harness. The prepare-checksum-harnesses skill builds them for Pi, Pi Agent IDE, pi-hashline-edit-pro, Codex CLI, Claude Code, GitHub Copilot CLI, OpenCode, Oh My Pi and Dirac.

node scripts/multi-agent/checksum.mjs isolated-run 7 NEW_ISOLATED_RUN \
  --config PRIVATE_JSON --preset hard --allow-model-calls
node scripts/multi-agent/checksum.mjs shared-run 7 NEW_SHARED_RUN \
  --config PRIVATE_JSON --preset hard --allow-model-calls
node scripts/multi-agent/checksum.mjs compare 7 NEW_ISOLATED_RUN NEW_SHARED_RUN

The design documents every cluster and the scoring.

Explicit Edit 1.0

Explicit Edit Benchmark

Exact text changes across 226 deterministic editing tasks.

Explicit Edit Benchmark 1.0: CI/CD status Explicit Edit Benchmark 1.0: MIT license Explicit Edit Benchmark 1.0: Hugging Face Dataset Explicit Edit Benchmark 1.0: leaderboard

explicit-edit/explicit-edit: 1 suites explicit-edit/explicit-edit: 160 runs explicit-edit/explicit-edit: 6 contributors explicit-edit/explicit-edit: 40249 observations explicit-edit/explicit-edit: 34 models explicit-edit/explicit-edit: 177 configs explicit-edit/explicit-edit: 36 harnesses

Explicit Edit (explicit-edit) is an open benchmark for measuring how accurately coding agents and agent harnesses edit files across 226 deterministic, byte-exact tasks.

The tasks are small on purpose. None of them needs deep reasoning or domain knowledge: the agent finds the right text, changes it, and leaves every other byte as it was. That keeps the attention on what actually differs between setups, which is the model, the tools, and the harness around them.

There are 226 of them: replacements, insertions, deletions, copies, moves, large files, several file types, and Unicode edge cases. A verifier compares the result byte for byte.

What the tasks actually are: Benchmark tasks lists every task family, explains what each scale means, and shows how the generator increases context, matches, files, decoys, block size, and Unicode risk. The original methodology and Score stay unchanged.

Shared setup and results

Each badge block counts only that benchmark's published data. suites counts published benchmark versions; contributors counts attributed Dataset submitters. The scheduled Dataset-to-README sync refreshes both blocks.

Results live in the Benchmark Explorer and the Hugging Face Dataset. The Explorer source lives in this repository. Run either suite with your own model and harness, then share the observation. New task ideas and harness contributions are welcome.

Data contributors

Thank you to everyone who shares benchmark observations. Your work makes this public comparison possible.

Contributor Accepted runs Configurations
@alexshpunt 15 15
@ashokkumards 1 1
@dirac-run 4 4
@TreyThomasCodes 7 7
@user2221 5 5
@xuankunv1 22 19
@Yugimob 23 23

Accepted harnesses

Harness Accepted runs Configurations
anchor-edit 1 1
baseline-agent 30 28
bb 7 7
codex-cli-default 2 6
d3ara1n-pi-hashline-edit 1 1
dirac-default 4 4
dsh-code 2 6
dsh-standard 2 6
github-copilot-cli-default 2 6
jerryan-pi-hashline-edit 1 1
oh-my-pi-default 3 7
opencode-default 2 6
personal-pi-extensions-opencode 1 1
pi-agent-ide 45 47
pi-agent-ide-codemode 33 33
pi-apply-patch 1 1
pi-better-edit 23 20
pi-better-read-edit 1 1
pi-codex-conversion 1 1
pi-codex-edit 1 1
pi-codex-minimal-tools 1 1
pi-codex-tools 1 1
pi-default 27 21
pi-edit-safe 1 1
pi-hash-anchored-edit 1 1
pi-hash-edit 1 1
pi-hashline-context-edit 1 1
pi-hashline-edit 1 1
pi-hashline-edit-pro 24 24
pi-hledit 1 1
pi-lean-edit 1 1
pi-lector 1 1
pi-mono-multi-edit 1 1
pi-openai-codex-compat 1 1
pi-semantic-edit 1 1
pi-str-replace-editor 1 1
pi-wayfinder 1 1

What you need

  • Linux or WSL2
  • Node.js 24 or newer
  • Python 3
  • Bubblewrap (bwrap)
  • the agent CLI you want to test, installed and logged in
  • access to the model you want to test
  • for Multi-Agent: clang++ with the C++17 standard library
  • a free Hugging Face account to submit the result

Clone the repository, then install it and the Hugging Face CLI:

git clone https://github.com/alexshpunt/explicit-edit-benchmark.git
cd explicit-edit-benchmark
npm ci
python3 -m pip install --upgrade huggingface_hub
hf auth login

Pick your agent

The benchmark has ready adapters for these CLIs. Use the name in the --harness flag.

--harness Runs Binary
pi-default Pi pi
baseline-agent Pi with bash only and an empty system prompt pi
pi-agent-ide Pi Agent IDE, without native Codemode pi
pi-agent-ide-codemode Pi Agent IDE with native Codemode and standalone tools pi
codex-cli-default Codex CLI codex
opencode-default OpenCode opencode
oh-my-pi-default Oh My Pi omp
github-copilot-cli-default GitHub Copilot CLI copilot
dsh-standard DeepSeek Harness, native tools dsh
dsh-code DeepSeek Harness, code mode dsh

The name in the flag is the published harness family, so a result lands in the leaderboard under the name you ran. The binary column is what actually runs; pass a different path with --command when yours is not on PATH. Both IDE profiles run pi. Use pi-agent-ide-codemode for current IDE evaluations; pi-agent-ide keeps native Codemode disabled for historical comparisons. They publish as separate families.

You install and sign in to that CLI yourself. Local runs copy explicit credential files into isolated private state; they do not update your original account files. Treat retained run state and logs as sensitive, never as publishable evidence.

For anything not in this list you write your own adapter. Benchmark automation and public data documents the config API, and examples/bb is a worked example for a harness that is more than one CLI call: it starts a server, runs another agent in a thread, and reads that thread's timeline. We ship the example and a smoke run, not a bb result.

Run and publish

Choose whether you want a local or official observation. These commands spend model credit and submit a result. The automatic smoke check also calls the model. Confirm the scope and account before starting.

Local observation

# All 226 tasks, default concurrency 10
npm run benchmark -- run --local \
  --harness pi-default --model PROVIDER/MODEL --thinking low

Each selected configuration first passes a one-task model/auth smoke check, then runs independent trials. The command exports and validates the common safe bundle, then opens a Dataset contribution. Local observations are marked unverified.

Official observation

Official mode uses a registered preset and exact installed package versions. For example, replace PI_VERSION with the version you intend to measure:

npm run benchmark -- run --official \
  --harness pi-default --model PROVIDER/MODEL --thinking low \
  --agent-version PI_VERSION

Pi Agent IDE also requires --harness-version; Oh My Pi requires --runtime-version. Official mode does not accept custom configs or provider files.

This command checks gh and hf login, creates a public caller repository if needed, uploads Pi and Hugging Face credentials as Actions secrets through stdin, dispatches the workflow, and waits for acceptance. Approve those effects before running it. Credentials are never placed in command arguments.

Approved workflow results are marked verified. Both verified and unverified observations remain visible. Use --caller-repository OWNER/REPO for an existing caller or --no-wait to return after dispatch, and --task TASK_ID to run one task. Official community runs explains signing, acceptance and submit-only recovery.

Configuration and lower-level commands

Option Meaning
--harness, --model, --thinking The installed harness, exact selector and reasoning level
--config FILE Custom adapter or model × harness matrix, instead of a preset; local only
--concurrency N Parallel trials, default 10
--timeout-seconds N Local delivery limit, default 120

Local provider routes use --provider-file and --env-file; explicit credential files use --auth-file. Keep those files private. The configuration guide covers runtime mounts, account routes and adapter details. For execution without automatic submission, use the common raw-run, export and inspect workflow in development commands. Do not bypass readiness to start a run.

What gets published

The pull request holds benchmark facts: task results, exact versions, timings, tool-call categories, and a safe copy of the configuration recipe. It holds no credentials, local paths, prompts, model prose, raw commands, command output, sessions, or workspaces. Local submission credentials go to the Hub API. Official mode also stores the token in the approved caller's GitHub Actions secrets, as described above.

Keep the failures, timeouts, and recovery attempts in the result, because a published number is only useful when it is the real one. If a row is wrong, fix it at its source and rerun instead of editing the exported file.

Show your result

Once your run is accepted, you can show its score in your own README:

[![Explicit Edit Benchmark](https://img.shields.io/endpoint?url=https://huggingface.co/datasets/alexshpunt/explicit-edit-benchmark/resolve/main/badges/pi-agent-ide-codemode.json&style=flat-square)](https://huggingface.co/spaces/alexshpunt/benchmark-explorer?card=harness%3Api-agent-ide-codemode%40latest)

The Dataset publishes one badge per harness family under badges/, named after the family. Badges show original-suite Scores. A family's badge file appears after its first accepted observation. Clicking a badge opens the latest harness version’s card while keeping the full comparison visible. Badge endpoints use these family names:

Family Badge
pi-default Explicit Edit Benchmark
pi-agent-ide Explicit Edit Benchmark
pi-agent-ide-codemode Explicit Edit Benchmark
codex-cli-default Explicit Edit Benchmark
opencode-default Explicit Edit Benchmark
oh-my-pi-default Explicit Edit Benchmark
github-copilot-cli-default Explicit Edit Benchmark
dsh-standard Explicit Edit Benchmark
dsh-code Explicit Edit Benchmark

Each badge shows that family's score across its accepted configurations, on the same scale the Explorer uses. The color follows the score: 90% and up is bright green, then green from 75%, yellow from 50%, orange from 25%, and red below that.

The badge is a small JSON file served by the Dataset, so shields.io renders it and it refreshes whenever acceptance rebuilds the Dataset.

Check the code without spending money

npm ci --prefix explorer
npm run check

It runs formatting, linting, type checks, the unit and integration tests, and one deterministic sandbox trial. It needs no paid model calls or GitHub API access.

CI separately runs npm run check:pins to verify trusted commit revisions on GitHub. That online check is not required for local development or benchmark runs.

Where to read more

Document What it adds
Official community runs GitHub template, verified provenance, automatic acceptance, and submit-only recovery
Configuration guide Per-adapter model and auth details, provider routes, mounts, lower-level commands
Share a result The submission flow step by step, and what happens after you open the pull request
Benchmark automation and public data The config API, the normalized data format, and the Dataset views
Explicit Edit tasks Original task families, scales, languages and generation rules
Explicit Edit methodology Original Score, byte-exact verification and recovery
Multi-Agent design Clusters, presets, scoring, and what each round of runs measured
Architecture Shared infrastructure, suite boundaries and accepted evidence

Skills for coding agents

Public work skills live in .agents/skills/. The whole .pi/ directory is ignored for personal skills, settings and runtime data. Do not force-add it to Git.

These are instructions that a coding agent loads on its own rather than documents to read.

Skill The job it covers
configure-codex-account Run Codex on a ChatGPT subscription, an API-key route, or a Chinese provider such as Z.AI or DeepSeek
configure-copilot-account Run Copilot on its own GitHub account, a provider key, or an OAuth-only plan through a local bridge
add-benchmark-harness Add an adapter for another agent CLI
publish-benchmark-observation Select a registered suite, configure the run and publish its observation
review-benchmark-candidate Review, validate, and accept a contributed result
prepare-checksum-harnesses Rebuild the harness participants of Multi-Agent runs on one subscription model

관련 프로젝트 살펴보기

불러오는 중…