Can coding agents rebuild real-world applications from black-box observation?
37 applications · 5 categories · 8 hours per task
Overview · Run the benchmark · Results · All tasks · Citation
ProgramBench Pro asks a coding agent to reconstruct a complete application from scratch. The agent receives a runtime contract and access to a running reference through the blackbox interface. It has eight hours to explore, implement, and self-test its reconstruction. The solving agent runs in an offline container, without access to the reference application's source code, binaries, feature lists, or evaluation episodes.
The tasks span five software categories across different interaction surfaces and technology stacks, including widely used applications such as Gitea, Joplin, Zotero, Audacity, and lazygit. Evaluation tests complete usage scenarios, including the visible interface, persistent state, APIs, command-line behavior, and file formats.
| Category | Tasks | Examples | What the agent must reconstruct |
|---|---|---|---|
| Full-stack web | 7 | Gitea, Grocy, Mealie | Browser workflows, services, APIs, and persistent state |
| Browser front-end | 7 | BentoPDF, Piskel, SVG-edit | Interactive editing, document state, and import/export |
| Desktop document | 8 | Joplin, Gnumeric, Zotero | Native interfaces, documents, and application semantics |
| Desktop media | 7 | Audacity, darktable, MuseScore Studio | Media workflows, processing, and file conversion |
| Terminal TUI | 8 | lazygit, micro, VisiData | Keyboard interaction, terminal state, CLI behavior, and files |
See the complete task catalogue for pinned reference versions, interfaces, and episode counts.
An episode is one complete usage scenario, starting from a clean application state. It passes only when every scored checkpoint passes.
| Check | How it is evaluated |
|---|---|
| Frontend | An agentic verifier operates the candidate and compares its functional behavior with recorded reference observations. Pixel-identical appearance is not required. |
| Backend | Deterministic scripts check APIs, CLI output, clipboard contents, files, and application state against frozen reference results. |
Task reward = fully passed episodes / total episodes
Benchmark score = 100 × mean(task reward across all 37 tasks)
The paper evaluates 11 models at 21 model–effort configurations, with one selected submission per task and configuration: 777 submissions in total. The best overall score is 69.1%.
The figure selects each model's best overall configuration. See all 21 configurations and the aggregate results in JSON for the paper's reported results.
Tasks use the Harbor format. The paper uses Harbor 0.24.0; follow its documentation for installation, agent configuration, and model access.
Use Linux x86_64, Python 3.12+, Docker Engine 23+, a recent Docker Buildx, Docker Compose v2 or newer, and a kernel with Landlock ABI 1+ enabled.
The agent has a 4-vCPU / 16-GiB quota. Reference and verifier containers need additional resources, and verification has its own time and API budget. See resource planning before running several tasks concurrently.
Build a task. Check the Landlock prerequisite, then run from the repository root. This example builds micro, a terminal editor:
TASK_DIR=tasks/terminal-tui-app/micro
RUN_DIR="$(mktemp -d /tmp/programbench-pro.XXXXXXXX)"
mkdir -p "$RUN_DIR/tmp"
export TMPDIR="$RUN_DIR/tmp" PYTHONDONTWRITEBYTECODE=1
bash "$TASK_DIR/environment/build.sh"This builds and checks the task's base, agent, reference, and verifier images. The program-only smoke test checks one reference episode without model API calls. Keep run outputs, temporary files, and credentials outside the checkout.
Configure the frontend evaluator. Verification uses a separate model through a host-side bridge because verifier containers are offline. Set its endpoint and credential, and connect a private bridge directory to each assessment as described in benchmark setup. The paper uses kimi-k3 at high effort. The task images preinstall Codex CLI 0.162.1 and Claude Code 2.1.296.
tasks/<category>/<task>/
task.toml Harbor configuration and resource limits
instruction.md Agent-facing task and delivery contract
environment/ Build scripts, images, and black-box runtime
solution/ Reference installation and third-party notices
tests/ Episode definitions, verifier, and frozen reference data
tools/ Shared scoring and parallel verification
The benchmark's own code and documentation are released under Apache-2.0. Reference applications, dependencies, and other third-party material retain their own licenses. Each task records these in solution/LICENSE, solution/NOTICE, solution/LICENSES/ where present, and solution/SOURCE.json.
TODO

