#AI#Coding Agents#Testing#Developer Experience#Claude Code

Can a Coding Agent Actually Use Your API? Running Agent Evals with Together AI's Hurdle

webhani·

More of the code that calls your API is now written by a coding agent, not by a person reading your documentation. That changes what "good docs" means. A page that reads well to a human can still fail an agent that follows it literally, and you will not find out until a customer's agent run breaks.

Together AI recently open-sourced Hurdle, a tool aimed at exactly this gap. It does not test your API. It tests whether an agent can use your API, your docs and your published skills to finish a task.

What Hurdle does

Based on Together's announcement and the coverage we reviewed, Hurdle is an npm library that:

  • runs Claude Code and Codex against tasks you define for your platform
  • scores each run with code checks, guards and an LLM judge
  • repeats each combination of model and condition, so you get a pass rate rather than one lucky or unlucky result
  • shows results by model and condition in a local view

Setup requires Node.js 22.18 or later and either the Claude Code or the Codex CLI. You initialize with npx hurdle init and run suites with npx hurdle run --view; results land in a .hurdle/ folder.

By default agents run with your local permissions. Together recommends a sandbox for anything risky, and for production-style evaluations it points to its own Sandbox API, which needs an API key and credits. We have not tested Hurdle ourselves yet, and we have not seen independent results, so treat the details above as the vendor's description.

Why repeated runs matter

The most useful design choice is repetition. Agents are not deterministic, so a single pass tells you almost nothing. If a task passes 9 of 10 times with your docs and 4 of 10 times without a particular skill file, that difference is a real signal. One run of each would not show it.

This is the same reason we run flaky-test detection in CI. An agent eval is a test with a non-trivial failure rate, and it needs statistics rather than a green checkmark.

What to put in an eval suite

You do not need Hurdle to start. The structure is simple enough to sketch, and the thinking carries over to any harness.

A task definition for a hypothetical internal billing API might look like this (our own illustration, not Hurdle's schema):

type AgentTask = {
  id: string;
  prompt: string; // what a customer would ask the agent
  conditions: Array<"docs-only" | "docs+skill" | "openapi-only">;
  checks: Array<(workdir: string) => Promise<boolean>>;
  guards: Array<(trace: string) => boolean>; // e.g. never calls a deprecated endpoint
  repeats: number;
};
 
export const createInvoiceTask: AgentTask = {
  id: "create-invoice-with-idempotency",
  prompt:
    "Create an invoice for customer cus_123 for 5000 JPY. Retrying must not create a duplicate.",
  conditions: ["docs-only", "docs+skill"],
  checks: [
    async (dir) => (await runProjectTests(dir)).passed,
    async (dir) => fileContains(dir, "Idempotency-Key"),
  ],
  guards: [(trace) => !trace.includes("/v1/invoices/legacy")],
  repeats: 10,
};

Three parts of this are worth copying:

  1. Conditions. Run the same task with different context. Comparing "docs only" against "docs plus a skill file" tells you whether the skill earns its maintenance cost.
  2. Deterministic checks first. Tests that run, a header that is present, a file that compiles. Use an LLM judge only for what code cannot decide, such as whether the explanation to the user was accurate.
  3. Guards. Failures that must never happen regardless of the final result, like calling a deprecated endpoint or printing a secret into a log.

What this tells you about your docs

When we have looked at agent failures against documentation, they cluster into a few causes:

  • Examples that omit required setup. A snippet that skips authentication or an idempotency header works as a human reference and fails as an instruction.
  • Ambiguity between old and new endpoints. If both appear in search results, an agent picks one at random.
  • Error messages that do not say what to do. Agents recover well from "missing field currency" and badly from "invalid request".
  • Pagination and rate limit behavior left implicit. The agent writes a loop that works on ten items and falls over at ten thousand.

None of these are new documentation problems. An eval just makes them visible with a number attached, which makes them easier to prioritize.

Cost, security and limits

A few cautions before adding this to a pipeline.

  • Cost. Each run is a real agent session. Ten repeats across three conditions and five tasks is 150 sessions. Decide how often the suite runs (per release, nightly) rather than on every commit.
  • Isolation. An agent with local permissions can run arbitrary commands. Use a sandbox or a throwaway container, and never give eval runs production credentials. Use scoped test keys instead.
  • Judge drift. If an LLM judge changes model versions, your pass rate can move without any change to your docs. Pin the judge and keep a small set of human-labeled cases to check it.
  • Vendor coupling. Results for Claude Code and Codex describe those tools at a point in time. They say less about every agent your customers use.

Takeaways

  • Treat "can an agent use this?" as a testable property of your API, not an assumption.
  • Run each task many times and compare conditions. A single run is noise.
  • Prefer deterministic checks and guards, and reserve LLM judges for what code cannot verify.
  • Isolate eval runs and use test credentials only.

If you maintain a public API or an internal platform that other teams consume through agents, a small suite of five to ten real tasks is a reasonable starting point. We help teams design these evaluations and the documentation fixes that follow; if that is relevant to your situation, get in touch.

Source: Together AI's Hurdle announcement and press coverage. Tool behavior may change; check the project README for current details.