/app/timer.sh so the agent can check its remaining wall-clock budget.
The swe_marathon Benchmark is built on the Harbor Benchmark. On first use, AgentCompass clones the pinned upstream release v1.1-official (7bce7b29e1f2413633eb5ed6eb10dc2efb036712) into data/swe_marathon/7bce7b29e1f2/ and reuses that checkout on later runs. Task loading, verifier execution, and the job_config parameter follow the Harbor page.
Tasks and resource requirements
The pinnedv1.1-official suite contains 20 tasks: 15 CPU-only tasks and 5 GPU tasks.
Tasks declare 4 to 8 CPUs and 16 to 64 GiB of memory in
task.toml. The 5 GPU tasks require a GPU-capable Environment such as Modal, Daytona, or a GPU-enabled Docker host; on CPU-only Environments, select the 15 CPU tasks through sample_ids. GPU model constraints remain fail-closed by default; on GPU providers without model selection (such as docker or opensandbox), or when you intentionally want any available GPU, set resources.ignore_gpu_type=true after confirming hardware compatibility (this clears inherited gpu_type while preserving GPU counts and leaving CPU-only tasks unchanged; see Resource Limits).
Scoring and judge model
Everyswe_marathon run requires an explicit judge_model (see Judges overview). AgentCompass does not fall back to the upstream hard-coded Anthropic model when judge_model is omitted. Before inference starts, the runtime validates judge_model and probes it for both text and image input because the CUA verifier inspects live browser screenshots.
For the 4 CUA tasks, upstream computes a binary trial reward (1 only when both unit/e2e correctness gates and the CUA browser rubric pass, otherwise 0) and records partial_score = 0.5 * unit_tests_score + 0.5 * cua_rubric_score in /logs/verifier/metrics.json. If the CUA grader hits an infrastructure failure (missing/invalid key, rate limit, model error, or browser launch error), upstream writes /logs/verifier/ux/cua_error.json, removes the reward files, and exits non-zero. AgentCompass detects this hard-fail signal and records a FATAL judge_failed issue with no score so the attempt is retried or invalidated instead of being scored 0. Legitimate failures where the built app cannot start or fails early gates keep a valid score of 0. See Error Handling.
Images, Recipe, and Harness setup
On every image-capable Environment, the built-inswe_marathon Recipe applies these defaults while preserving explicit user overrides:
- Selects the official task image
ghcr.io/abundant-ai/swe-marathon-<task_id>:v1.1whensetup.imageis unset. - Sets
setup.workdirfrom the task’s DockerfileWORKDIRwhen neithertask.tomlnorsetup.workdirdeclares one. - When running with Terminus-2 and
install_system_dependenciesis not explicitly set, addstmuxtosystem_dependenciesso the runtime installstmuxbefore closed-internet lockdown.
max_turns to null (unlimited, bounded by each task’s agent.timeout_sec) when running full evaluations with claude_code instead of its 400-turn default.
Parameters
swe_marathon accepts every Harbor Benchmark parameter and Shared Benchmark Field, plus:
| Parameter | Type | Default | Description |
|---|---|---|---|
judge_model | object | required | Required judge Model spec for the 4 CUA tasks. Must support text and image input over openai-chat or anthropic, with a container-reachable endpoint. Omitted connection fields inherit the evaluated Model settings; custom params are not supported because the upstream CUA verifier manages its own request parameters. |
dataset_path | string | "" | Local path to a revision-verified tasks/ directory. Omit to clone the pinned v1.1-official commit automatically. |
Run examples
agentcompass run takes three positional arguments in order: Benchmark, Harness, and Model. The examples use swe_marathon.
Before running, prepare a container Environment such as Docker or Modal, and export MODEL_NAME, MODEL_BASE_URL, MODEL_API_KEY, and JUDGE_API_KEY (or ANTHROPIC_API_KEY when judging with Claude).
Recommended harness
Claude Code is the primary Harness used on the official SWE-Marathon v1.1 leaderboard.- Smoke test (single task end-to-end)
- Custom parameters
- AgentCompass recommended config
Run one CUA task (
excel-clone) with a small turn limit to verify image startup, rollout, CUA endpoint reachability, and rubric scoring end to end.Other optional harnesses
You can also run SWE-Marathon with Codex or Terminus-2.- Codex
- Terminus-2
Run
codex on a GPU-enabled Docker host with an openai-responses model endpoint. Configure judge_model separately over openai-chat or anthropic because the upstream CUA verifier does not support openai-responses.Evaluation Results
See the run directory, aggregate scores, and per-task files and common fields for shared result structures.Scoring Metrics
A CUA grader infrastructure failure leaves the attempt with no score and a FATAL
judge_failed issue rather than 0.0. See Metrics and Aggregation for repeated attempts and aggregation rules.
Task Results and Scoring Evidence
Each attempt stores two SWE-Marathon objects underextra in the task result record: eval_raw_data and score_provenance.
eval_raw_data contains:
score_provenance records the pinned upstream commit (7bce7b29e1f2413633eb5ed6eb10dc2efb036712), resolved judge model metadata, and the non_official flag indicating whether the judge differs from upstream.
Limitations and alignment
- GPU tasks:
embedding-eval,jax-pytorch-rewrite,parameter-golf,post-train-ifeval-gpu, andtrimul-cudadeclare H100 or A100 GPU model requirements intask.toml. Running them on a CPU-only provider fails resource validation. To run on a GPU provider without model selection (such asdockeroropensandbox) or on a different GPU model, setresources.ignore_gpu_type=true(defaultfalse) only after confirming hardware compatibility, and note the hardware difference when comparing results. - Unmapped Harbor extensions: Upstream
task.tomlfiles include customverifier.typeandgrader.restore_pathsfields. AgentCompass preserves their raw declarations in task metadata and runstests/test.shin the reused task Environment without executing custom checkpoint restoration hooks. - Judge model parity: Official SWE-Marathon v1.1 scores use
anthropic/claude-opus-4-7for the 4 CUA tasks. Configuring a differentjudge_modelchanges CUA grading behavior and marksscore_provenance.non_officialastrue.
