Skip to main content
SWE-Marathon (website, repository, paper) evaluates coding agents on 20 ultra-long-horizon software engineering tasks spanning full-stack clones, systems rewrites, compilers, algorithmic optimization, and GPU machine learning workloads. Each task runs for 4 to 10 hours in its own container image and ships /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 pinned v1.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

Every swe_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-in swe_marathon Recipe applies these defaults while preserving explicit user overrides:
  • Selects the official task image ghcr.io/abundant-ai/swe-marathon-<task_id>:v1.1 when setup.image is unset.
  • Sets setup.workdir from the task’s Dockerfile WORKDIR when neither task.toml nor setup.workdir declares one.
  • When running with Terminus-2 and install_system_dependencies is not explicitly set, adds tmux to system_dependencies so the runtime installs tmux before closed-internet lockdown.
The official SWE-Marathon v1.1 runs use Claude Code or Codex. Because SWE-Marathon tasks run for 4 to 10 hours, set 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:
ParameterTypeDefaultDescription
judge_modelobjectrequiredRequired 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_pathstring""Local path to a revision-verified tasks/ directory. Omit to clone the pinned v1.1-official commit automatically.
See the Run Parameter Reference for CLI flag precedence.

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).
Claude Code is the primary Harness used on the official SWE-Marathon v1.1 leaderboard.
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.
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 under extra 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, and trimul-cuda declare H100 or A100 GPU model requirements in task.toml. Running them on a CPU-only provider fails resource validation. To run on a GPU provider without model selection (such as docker or opensandbox) or on a different GPU model, set resources.ignore_gpu_type=true (default false) only after confirming hardware compatibility, and note the hardware difference when comparing results.
  • Unmapped Harbor extensions: Upstream task.toml files include custom verifier.type and grader.restore_paths fields. AgentCompass preserves their raw declarations in task metadata and runs tests/test.sh in the reused task Environment without executing custom checkpoint restoration hooks.
  • Judge model parity: Official SWE-Marathon v1.1 scores use anthropic/claude-opus-4-7 for the 4 CUA tasks. Configuring a different judge_model changes CUA grading behavior and marks score_provenance.non_official as true.