Together AI Releases Open Source Agent Evaluation Framework 'Hurdle'

Together AI has released the npm library 'Hurdle' as open source, which automatically evaluates the API, SDK, and documentation utilization capabilities of coding agents. Hurdle supports task definition, code checks, guards, LLM judging, condition comparisons, and repeated executions, providing two execution modes: local and sandbox. Security is ensured by monitoring and blocking API requests through the Guardian proxy and isolating keys. Developers can start evaluations immediately with `npx hurdle init`.

Background: The Need for Agent Evaluation and Limitations of Existing Methods

As coding agents have become central to developer workflows, the need to quantitatively measure how friendly our API, SDK, and documentation are to agents has grown. Together AI began internal evaluation work last spring and felt the extreme hassle of manual orchestration, leading to the development of Hurdle over the past six months to automate this process. Previously, developers primarily threw prompts and visually checked results, but as the combinations of models, harnesses, and conditions increased, systematic comparisons became impossible due to combinatorial explosion.

Core Architecture and Operating Principle of Hurdle

Hurdle is composed of a Task → Suite → Run → Viewer pipeline. A task is a unit containing the prompt and verification logic that the developer gives to the agent, while a suite is a configuration file that bundles multiple tasks, agents, conditions, and repetition counts. When a suite is executed with `npx hurdle run`, repeated evaluations are performed for all specified combinations, and the results are stored in the `.hurdle/` directory, which can be re-queried with `npx hurdle view`.

  1. task creation
  2. suite configuration
  3. repeated execution
  4. result collection
  5. viewer analysis

Evaluation Pipeline: Task, Check, Guard, Judge, Condition

Hurdle can use three verification methods in a hybrid or standalone manner.

The Conditions feature allows the same task to be executed under different initial states. For example, you can compare effects by providing the MCP server installation status as a condition or quantify performance differences by inputting multiple models (Claude Code, Codex) into the same task. In an internal example at Together AI, the pass rate was calculated with 1 task × 2 models × 2 conditions × 15 repetitions = 60 executions.

Verification MethodExecution TimingMain UseSandbox Requirement
Code CheckAfter ExecutionConfirm required API calls and file creationNo
GuardDuring ExecutionBlock risky actions (returns 403)Yes
LLM JudgeAfter ExecutionQualitative rubric evaluationNo

Trade-offs Between Local and Sandbox Execution

Hurdle supports both local mode and sandbox mode. Local mode runs the `claude` or `codex` CLI in a temporary workspace, ensuring that all agents start with a clean setup to exclude the influence of existing environments. However, in local mode, guards and request checks cannot be used, and agents can access actual API keys and local files, making it unsuitable for risky operations.

Sandbox mode provisions an isolated environment using the Together Sandbox API. A new sandbox is created for each execution to block remnants of previous states. The sandbox has no network access rights, and all outbound connections go through the local proxy Guardian.

Guardian Proxy and Security Model

During sandbox execution, Hurdle launches a Guardian proxy locally and connects to the sandbox via a single websocket. All external requests from the agent (to its own API, Anthropic, OpenAI, etc.) are relayed to the Guardian through this socket, which performs the following:

"Basically, the sandbox does not restrict the endpoints that the agent can call. Issue a dedicated key for evaluation with a low balance and add guards for risky actions."

Developer Workflow and Practical Application Guide

Getting started is simple. In an environment with Node.js 22.18 or higher and Claude Code or Codex CLI installed, follow these steps:

1. Create a project with `npx hurdle init` (use `--agent codex` for Codex) 2. Check the starter suite and tasks in the generated `evals/` directory 3. Set the Anthropic API key (`CLAUDE_CODE_OAUTH_TOKEN` possible) and Together API key (if using sandbox) in `.env.local` 4. Execute with `npx hurdle run --view` and open the viewer

The starter task is a simple operation that copies a file to `answer.txt`, and the code check verifies whether the copy was successful. In practice, model tasks for real developer scenarios such as querying internal API documentation, price comparisons, and generating booking commands, while combining guards to block the creation of paid resources and judges to evaluate response quality. The viewer summarizes pass rates, average time spent, and average cost per execution at the top, allowing for drill-down into failure points through a task × condition grid.

Verified figures

Our take

Hurdle has significant potential to become the standard tool for evaluating agent experiences. The guard and guardian architecture differentiates it from other frameworks by achieving both security and evaluation accuracy, and as the open-source ecosystem expands, plugin and shared task libraries are expected to form.

Open questions

Source

Back to catalog