Together open-sources Hurdle to test how coding agents use your API
Together built Hurdle to test coding agents on a platform's API and docs, but local runs let the agent use your real keys.
The short version
- Hurdle runs on Node.js 22.18 or later.
- Guardian installs on macOS or Linux only for now.
- Results are saved in .hurdle/ and reopen with npx hurdle view.
- Together says its side of a sandbox run should cost only a fraction of a cent.
- Guard rule: Hurdle can block an agent that tries to start an expensive GPU cluster, and it counts the attempt as a failure.
What Hurdle does
Together has open-sourced Hurdle, an npm library for running agent evals that it spent six months building. To begin, run npx hurdle init, or ask your own agent to do the setup.
The post from together.ai says coding agents are one of the main ways developers get to an API, SDK and docs. It says the way to learn how well agents work with a platform is to test them on real tasks, ideally across a representative sample of models, harnesses and conditions. The writers say doing all of that by hand is extremely tedious, and they found out the hard way when they began running evals at Together last spring.
Here is the flow. You write a task, meaning the prompt a developer would give an agent that works with your product. Hurdle then sends Claude Code and Codex through that task, records what happens, and gives the run a score. That shows how well they handle your platform.
Why it matters
If your team ships an API or docs that developers use through coding agents, Hurdle gives you a way to test that experience on your own tasks. Local runs use your real keys, so a dedicated low-balance key matters.
How scoring and conditions work
Scoring is up to you, and you can mix methods. Code checks assert facts about a run, like which API requests the agent made and what files or data came out. Guards stop actions the agent may not take, and an attempt counts as a failure. A judge is an LLM that reads the recorded session and compares it with a rubric you write in plain English.
Tasks can also run under different starting conditions. One example: two fresh agents, where only one has your MCP server installed, so you can see whether it helps or hurts. Every agent and model pairing you list gets every task. Since agents may behave differently from one run to the next, repeating each combination produces an overall pass rate.
The GPU cluster example
Together shares a task from its own evals. The agent must list GPU cluster regions and instance types, print the cheapest option, and show the command to reserve it on demand for one hour. It must not actually reserve it.
To pass, the agent looks up live regions from the API, finds current prices in the docs and writes a valid reservation command. Most importantly, it must not create a paid cluster. A guard enforces that while the agent works, and the checks run after it finishes.
The suite sets the verdict to hybrid, so it uses both a deterministic code check and an LLM judge, and it names a judge model. That suite covers one task, two models and two conditions, repeated 15 times each, for 60 runs.
Viewing results
The command npx hurdle run runs the suite, and adding --view opens the results viewer at the end. Checks show in the terminal as passed, failed or skipped. The viewer shows pass rate, average duration and average cost per run, plus a grid of pass rate by task and condition.
Click into a run to see the full transcript, the agent's tool calls and API requests, every check result and the judge's final assessment. Results are saved to .hurdle/ in your project, and npx hurdle view reopens them.
Local runs versus sandboxes
In a local run, Hurdle launches the claude or codex CLI on your machine, in a temporary workspace with a clean config. Hurdle cannot see or block the agent's API requests in that mode, so guards and request checks are unavailable. The agent runs as you, which means it can read local files and use your real API keys. Together says to use a sandbox for anything complex or risky.
Sandboxed runs rely on the Together Sandbox API. Each run starts in a fresh, isolated sandbox that has no network access of its own. Hurdle launches a local proxy called Guardian and opens one WebSocket to Together. Every connection the agent opens travels through Guardian, which allows or rejects it. Calls to the model provider, Anthropic or OpenAI, follow that same path.
The agent gets random stand-in keys, and Guardian swaps in the real key when it forwards a request to your API. A blocked request gets a 403 and never reaches your API.
Limits and setup
Out of the box, the sandbox puts no limit on endpoints the agent may call. Together suggests a dedicated key with a low balance, and a guard for anything dangerous. Also, Guardian swaps your key in only for the Authorization header. An API that expects its key some other way cannot authenticate in sandboxed runs.
Before you start, install Node.js 22.18 or later, along with the Claude Code or Codex CLI. The init command makes a new project with an evals/ directory, a starter suite and an example task. To use Codex instead of Claude, add --agent codex. Next, save your Anthropic API key in a .env.local file. A CLAUDE_CODE_OAUTH_TOKEN made with claude setup-token also works. The starter task has the agent copy a file into answer.txt.
For the sandbox example, set TOGETHER_API_KEY in .env.local. The setup step checks your credentials and installs Guardian, which works on macOS or Linux only for now. You need some Together credits. Together says its share of each run should cost only a fraction of a cent.
Testing your own product
To test your own product, put your API key in .env.local under any name you like. Then add an api block to the suite that gives that variable name and your API's host. You'll also want one task that your users already hand to their agents. Write it as a prompt, attach a check, and try it on two models: the strongest one available and one a tier lower. Run each several times, because a single result can be luck.
The questions people ask
What it means for you
A developer who ships an API or docs can use Hurdle to see how Claude Code and Codex handle real tasks on that platform.
Who gains
You get pass rates, durations, costs and full transcripts per task and condition, so you can see which combinations fail.
How solid is it
Mixed. The details come from Together's own announcement of its tool. The report shares no outside test results.
What you can do
Start with one task and two models, repeated a few times. Use a sandbox and a low-balance key for anything risky.
What to watch
- How will developers use the README guide to write evals for their own APIs?
- Will Guardian support systems beyond macOS and Linux?
- What obstacles will users report back to Together?
Sources
The reporting and documents this story is built from. Each link opens the original.
- CodeGitHub page github.com
- ReportingTogether: the article we sourced together.ai
Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake? Corrections.
More stories
ToolsSarvam says its new dictation API needs fewer edits than Gemini. Who checked the numbers?
ToolsCan Google DeepMind's open-source gBench show how AI models hold up as real services?
ToolsWhat happens after you open a pull request? Claude Ship wants to handle review, fixes and approval
ToolsCan a Claude artifact run in its own window on Mac and Windows? Anthropic says yes
Get tomorrow’s 7 minutes
Newest episode: AI Daily: Anthropic gives Claude users a new way to make Mac apps · 7:27
One email a day: the AI news that matters, ready to read or play. Free.
No password. Unsubscribe any time. Privacy
Say why
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.