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`.
- task creation
- suite configuration
- repeated execution
- result collection
- viewer analysis
Evaluation Pipeline: Task, Check, Guard, Judge, Condition
Hurdle can use three verification methods in a hybrid or standalone manner.
- Code Checks: Validates API requests that the agent must call, files, and data that must be generated through assertions.
- Guards: Blocks actions that the agent should not perform (e.g., creating paid GPU clusters). In case of guard violations, a 403 response is returned to prevent the request from reaching the actual API.
- LLM Judge: Evaluates session transcripts using a plain rubric to determine pass/fail status. By specifying `verdict: hybrid` and the judging model in the suite, it combines the results of checks and judgments.
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 Method | Execution Timing | Main Use | Sandbox Requirement |
|---|---|---|---|
| Code Check | After Execution | Confirm required API calls and file creation | No |
| Guard | During Execution | Block risky actions (returns 403) | Yes |
| LLM Judge | After Execution | Qualitative rubric evaluation | No |
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:
- API Request Checks: Records actual call histories to provide evidence for code checks
- Guard Enforcement: Returns 403 if it matches blocking rules, preventing requests from being forwarded to the higher-level API
- Key Isolation: Exposes only a temporary stand-in key to the agent, while the actual key is injected and delivered by the Guardian
"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.