Overview
Run containerised agent benchmark tasks in Hugging Face Jobs sandboxes with Harbor, choose Codex or Terminus-2 as the harness, and read each trial as a private trace.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Codex · Harbor · Terminus-2 · Hugging Face Jobs · Hugging Face Inference Providers
- Prerequisites
- A Hugging Face account or organisation that can pay for Jobs and Inference Providers, a token with the access the repository lists, tasks in Harbor format and a private dataset for traces.
How It Works
Niels Rogge of Hugging Face describes evaluating six open models on Google's Physical-Engineering's Last Exam (PLE) without a local workstation. Harbor ran inside a CPU Job, opened one HF Jobs sandbox for each trial, reached the models through Inference Providers and saved finished trials to a private dataset as session traces. Terminus-2 ran every model, and Codex served as a second harness for three of them, connected through adapters the author wrote and released in the harbor-hf-jobs repository. To try it on your own work, format your tasks for Harbor and upload them to a dataset (gate it if their terms call for that), copy that repository, and add a benchmark profile naming the task source at a pinned revision, sandbox defaults, harnesses, scoring and a private traces repository. Run the dry run on one task, which prints the job configuration without running it. Check the model, provider, harness, attempts, billing account and your own spending limit, and approve before any Job is launched. Commit your changes, set HF_BILL_TO and TRACES_REPO, and start with a single task through scripts/launch_job.sh. Read its trace and cost, then approve the full run separately. Follow progress in the job logs. If grading failed on some trials, the repository has a regrade mode that reruns only the graders; approve that Job too.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Codex, Harbor, Terminus-2, Hugging Face Jobs, Hugging Face Inference Providers.
- Check the prerequisitesA Hugging Face account or organisation that can pay for Jobs and Inference Providers, a token with the access the repository lists, tasks in Harbor format and a private dataset for traces.
- Gather your detailsCollect what the prompt asks for: Model to evaluate, Inference provider, Dataset holding your tasks, Agent harness, Attempts per task, Task used for the first check, Account that pays, Private dataset for traces, Spending limit.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Compare the resultCompare what you get with what the source at huggingface.co reports.
Practical Starter Prompt: Prepare a cloud benchmark run for approval
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In my copy of the harbor-hf-jobs repository, prepare an evaluation of [Model to evaluate] through the provider [Inference provider] on the Harbor-format tasks in [Dataset holding your tasks], using the [Agent harness] harness with [Attempts per task] attempts per task. Write or check the benchmark profile and run only the dry run for [Task used for the first check]. Then show me the job configuration, the exact launch command, the account billed ([Account that pays]), the private traces dataset [Private dataset for traces] and a cost estimate against my limit of [Spending limit]. Do not launch, rerun or regrade any Job until I approve that command. After approval, run only [Task used for the first check], report its trace and cost, and ask again before the full run. Never make the traces dataset public or print my token.Paste this into a coding agent such as Codex CLI opened in your copy of the repository. Approve the launch command, billing account and limit before the one-task run, then approve again before the full run and before any rerun or regrade. Check that the traces dataset is private and compare actual charges with the estimate.
Results and Benefits
Outcomes come from the cited source and were not reproduced by Top 200 Repos.
Marked reported from Niels Rogge's own account on the Hugging Face blog: he says six open models were scored on the 29 PLE development tasks with three attempts per task, with all pieces running on Hugging Face infrastructure. He reports that the harness changed results sharply, with GLM-5.3-Flash at 0.273 under Terminus-2 and 0.152 under Codex on the same tasks and judge, while noting that the two harnesses differed in image input and turn limits. He puts a full run at roughly $7 to $220, reports that some trials failed because of his own setup and were run again, and calls the figures community results. No independent evaluation is cited.
Limitations and Considerations
Jobs, sandboxes, model tokens and any judge model cost money, so check current prices, whether your account can start Jobs and whether your organisation can cap spending. The repository says the token needs read access to public gated repositories (and to the benchmark's dataset), Inference Providers access, permission to write Jobs and, for traces, repository write access; use a dedicated token and read the code before giving it one. Hugging Face labels sandboxes experimental. The repository says UDP is not blocked and that the port-based confinement used for the multi-app PLE tasks is weaker than having no network, so do not treat tasks as fully sealed. It also lists task types the backend cannot run, so check yours first and do not compare a partial score with a full leaderboard. PLE's terms forbid redistributing its tasks, and its traces contain them, so keep traces private. The author notes that attempts at one task can vary widely. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
Original Implementation
The code published by the people behind this use case.
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Evaluating agents entirely on the Hub (opens in a new tab)
Vendor post · huggingface.co · Published 28 Nov 2026 · Source checked 4 Dec 2026, 12:21 UTC
What this source supports
- The benchmark's tasks are a gated dataset, the models are served through Inference Providers, and the evaluation framework, Harbor, runs each task in an HF Jobs sandbox, which is serverless CPU and GPU compute.
- Publish your tasks in Harbor format in a dataset, gated if the terms require it.
- harbor-hf-jobs: HF Jobs sandbox backend for Harbor, PLE runner and trace export (opens in a new tab)
Project documentation · github.com · Undated · Source checked 4 Dec 2026, 12:26 UTC
What this source supports
- Everything runs in HF Jobs; the committed code is shipped to the job as an archive (no GitHub access needed), so commit before launching.
- Sandboxes (opens in a new tab)
Project documentation · huggingface.co · Undated · Source checked 4 Dec 2026, 12:26 UTC
What this source supports
- Sandboxes are an experimental feature.
- openai/codex: Lightweight coding agent that runs in your terminal (opens in a new tab)
Project documentation · github.com · Undated · Source checked 4 Dec 2026, 12:26 UTC
What this source supports
- Codex CLI is a coding agent from OpenAI that runs locally on your computer.
