Skip to content

Together AI open-sources Hurdle, an agent eval tool for APIs

Short answer

Together AI has open-sourced Hurdle, an npm library that runs Claude Code and Codex against tasks you write for your own API, then scores each run with code checks, guards and an LLM judge. It reports pass rates by model and condition, so you can see where agents fail.

What this means for operators

If your company sells software with an API, a documentation site or an MCP server, customers' coding agents are now a way people reach it, and Hurdle gives you a repeatable test instead of guesswork. Pick one task a customer would hand an agent, such as creating a record through your API. Run it on a top model and one tier below, repeat it several times, and compare runs with and without your skill or MCP server. The guard feature also suits internal automation: you can block a destructive call and count any attempt as a failure. Use a dedicated key with a low balance, and run anything risky in a sandbox.

Together AI has released Hurdle, an open-source npm library for testing how well coding agents cope with a platform's API, skills and documentation. The company says it built the tool over about six months after running these evals by hand became tedious.

What it does

You write a task, which is simply the prompt a developer would give an agent working with your product. Hurdle runs Claude Code or Codex against it, records the session and scores the result. Scoring can combine three methods:

  • Code checks assert what the run must have done, such as particular API requests or files produced.
  • Guards block actions the agent must not take. Together's example is starting a paid GPU cluster. A blocked request counts as a failure.
  • A judge is an LLM that reads the recorded session against a rubric written in plain English.

Tasks go into a suite file that lists the agents and models, the conditions and the number of repeats. Conditions set the starting context, so the same task can run with and without your MCP server or a skill. Because agents do not behave identically twice, each combination can be repeated to get a pass rate. In Together's example, one task, two Claude models, two conditions and 15 repeats add up to 60 runs.

Results and viewer

The npx hurdle run --view command runs the suite and opens a viewer. It shows pass rate, average duration and average cost per run, plus a grid of pass rate by task and condition. Each run opens to a full transcript, the agent's tool calls and API requests, every check result and the judge's verdict. Results are saved in a .hurdle/ folder in the project.

Local and sandboxed runs

Local runs start the claude or codex CLI in a temporary workspace on your machine. They cannot see or block API requests, so guards and request checks are unavailable. The agent also runs with your permissions and can read local files and use real keys, so Together advises a sandbox for anything complex or risky.

Sandboxed runs use the Together Sandbox API. Each run gets a fresh environment with no network access of its own. A local proxy called Guardian relays the agent's connections, allows or rejects each request and swaps a real key in for the stand-in the agent holds. Guardian currently installs only on macOS or Linux. By default the sandbox does not restrict which endpoints the agent can call, so Together recommends a dedicated low-balance key and guards for dangerous operations. One limit: Guardian only substitutes keys in the Authorization header, so APIs that take credentials another way cannot authenticate.

Getting started

You need Node.js 22.18 or later and the Claude Code or Codex CLI. npx hurdle init creates a starter suite, and a bundled Together API example demonstrates a sandboxed run. Sandbox runs need Together credits and a Together API key, though the source says the Together side of each run should cost a fraction of a cent. Model and agent costs come on top. Together suggests starting with one real user task, two models and a few repeats.

Source: Together AI · In the Atlas: Together AI →

The tools in this story

  • Claude - price, who uses it, alternatives
Next step

Visibility Analyzer

An AI news item will not tell you how assistants see your own site. The Visibility Analyzer checks that on your live site: which answers cite you, which pages an engine cannot retrieve, and what to fix first. Free to run.

Run a free visibility audit

Free to run. No card.

Fee
Free
Length
One run, minutes

Free tier: two analyses a day, no card required.