Wink Pings

Will agents use your API? Stop guessing: Together AI open-sources Hurdle

Together AI has open-sourced its internal agent eval framework Hurdle, which uses npm to run tasks, code checks, dangerous-action blocking, and LLM judging, and supports repeated evaluations across multiple models and conditions with sandbox isolation.

Intro

Together AI has open-sourced its internal agent eval framework, Hurdle. Hassan said on X that this npm library is for testing how well your API, SDK, and docs work for coding agents. The context is straightforward: if developers access your platform through agents like Claude Code and Codex, manually clicking through once is not enough—you need to run evaluations with real tasks. Original tweet and article links here: Original tweet Article.

Why build it

Hassan wrote in the article that Together started doing evals last spring, and manually orchestrating models, harnesses, and conditions was painful. So they spent six months building Hurdle and are now open-sourcing it. Usage starts with writing a task: a task is the prompt a developer would give to an agent. Hurdle lets Claude Code and Codex run it, records the session, and then scores it.

How scoring is configured

Scoring can be mixed and matched. Code checks inspect API requests, files, and output data. Guards block dangerous actions—for example, starting an expensive GPU cluster; Hurdle blocks the request and records a failure. A judge uses an LLM to watch the recording according to the rubric you write and decide pass/fail. Conditions can also be set, such as running the same task with and without an MCP server. Multiple models, multiple conditions, repeated runs, and finally a pass rate.

A real task

Example task from the article: list available GPU cluster regions and instance types, print the cheapest option, and give the exact command to reserve one hour on-demand, but do not actually reserve. To pass, the agent has to query the API, check pricing in the docs, produce a valid command, and avoid creating a paid cluster. The guard is critical here. A suite can set verdict to hybrid and specify a judge model. The example suite has one task, two models, two conditions, and 15 runs per combination, for 60 runs total.

Run it and look at results

npx hurdle run runs the suite, and --view opens the results viewer. Results are stored in .hurdle/, and later npx hurdle view lets you view them again. The top shows pass rate, average duration, and average cost. The grid breaks down pass rate by task and condition. Clicking into an individual run shows the full transcript, tool calls, API requests, each check result, and the judge's verdict.

Local runs and sandbox runs

Local runs are good for quick testing. Hurdle starts the claude or codex CLI in a temporary workspace on your machine, with a clean configuration unaffected by your everyday Claude Code/Codex settings. The limitations are also clear: it cannot see or block API requests, so guards and request checks are unavailable; the agent runs as you, can read local files, and can use real keys. For complex or dangerous tasks, use a sandbox.

Sandbox runs use the Together Sandbox API to spin up an isolated environment. Each run gets a new sandbox, so the agent starts from a clean environment. The flow is: Hurdle starts a local proxy called Guardian, opens a WebSocket to Together, and starts the sandbox. The sandbox itself has no network; all of the agent's connections go back through Guardian, which allows or denies them. Your keys do not enter the sandbox; the agent receives random stand-ins, and when requests reach Guardian, they are swapped for the real key before being forwarded. Model provider calls go through the same path. This lets Hurdle inspect API requests and enforce guards; a guard can block a request with 403, and keys are not exposed. Note that by default the sandbox does not restrict endpoints, so the agent can use your key to call your API. Use a separate low-balance key for evals and add guards to dangerous endpoints. There is another limitation: Guardian only swaps the key into the Authorization header, so if an API passes the key somewhere else, authentication will not work in the sandbox.

Getting started

Requires Node.js 22.18 or higher, with Claude Code or Codex CLI installed. Create a new directory and run npx hurdle init; it generates evals/, a starter suite, and example tasks. Create .env.local and add an Anthropic API key; CLAUDE_CODE_OAUTH_TOKEN also works. To use the sandbox, also add TOGETHER_API_KEY. Run npx hurdle run --view. The starter task asks the agent to copy a file to answer.txt, and a code check confirms the contents match; this round runs locally. Sandbox example:
npx hurdle init api-evals --example together-api
npx hurdle setup api-evals
npx hurdle run api-evals --view
setup checks credentials, installs Guardian—currently only macOS or Linux is supported—and switches the project to the Together sandbox. The sandbox and one chat completion require Together credits, but on Together's side each run costs less than one cent. To evaluate your own product, add a key with any name to .env.local, such as MY_API_KEY=your_api_key, then add an api block in the suite with the variable name and API host. The agent will receive an environment variable with the same name, which you can reference directly in the prompt.

One take

The easiest way to fool yourself with evals is to run once, see green, and stop. Hurdle puts repeat counts and pass rates front and center, which is more practical than fancy scoring. Start by picking a task users are already handing to agents, write it as a prompt, add one check, and run it several times with the best model you can get and one tier lower. It's open source on GitHub, and the README has a guide to writing evals. Hassan says you can ask him if you have questions. Links: Original tweet Article.

发布时间: 2026-12-01 12:30