Wink Pings

The trajectory an agent botched may be worth more than creating a new leaderboard

James Zhu laid out a very direct method on X: find failed segments in the run trajectories of Claude Code and Codex, then cut them into a terminal-bench-level evaluation task. Start by making one good task; don't rush to build a leaderboard. The four steps are find, cut, build the environment, and run, and there are also pitfalls in reading trajectories and writing verifiers.

If you want to build a benchmark, don’t rush to set up a leaderboard first. In a post on X titled “A Survival Guide for the Great Bench Era,” James Zhu offers a smaller, more practical starting point: dig through your own agent run trajectories. A trajectory is the record left behind when a user interacts with coding agents such as Claude Code and Codex over multiple turns—instructions, tool calls, file changes, errors, and outputs. It contains where the model got stuck, how it was corrected, and what it ultimately delivered.

He defines a benchmark bluntly: define the problems that are valuable and that models still cannot do well. The larger the gap between model performance and human expert expectations, the more economically valuable the problem is and the more it is worth building. terminal-bench can be understood as an evaluation set for terminal environments, real tasks, and verifiable results; tasks usually come with an environment, deliverables, and grading criteria.

The first step is to find. Have an agent go through local trajectories and filter for these characteristics: the user points out that the output is unsatisfactory and the result changes markedly after rework; the user and agent interact over multiple turns on a certain problem, and the agent has a long-horizon run trajectory; the difficulty is not caused by the user failing to provide enough information, and you can pinpoint a specific, seemingly reasonable wrong decision such that, using only the information available before the mistake, a solver has a chance to discover or avoid it; the task has clear inputs, deliverables, and testable criteria for good or bad. After filtering, a human still needs to review it to confirm whether it is a high-value, high-difficulty task in the field.

The second step is to cut. A session contains many things—literature review, experiment design, running computations, and writing are mixed together. You need to cut out the most central trajectory segment that truly causes the gap, with the starting point at the moment just before the model makes the mistake and the ending point at the moment the model produces the unsatisfactory output. You can have an agent help locate it, ensuring the segment has clear inputs and outputs and is a prototype task.

The third step is to build the environment. In essence, this is reconstructing the real task scenario at the time. All the context before the starting point of the trajectory is condensed into a task instruction and an initial database; the dependencies needed to execute the task—such as specialized software and tool libraries like Blender and Lean—are packed into a Docker container. For the specific operations, you can have an agent complete them by following the official terminal-bench tasks as a reference.

The fourth step is to run. Give the task statement and environment to a new agent with a clean context and see whether it fails on the expected problem. If the expected failure is not reproduced, check several possibilities: the task statement and environment did not sufficiently reconstruct the original scenario; the old model could not do it well, but the new model can already do it; the failure at the time was an incidental occurrence; the task statement over-hints and makes business judgments for the model that it should have made itself.

Long-horizon tasks also involve trade-offs. James Zhu mentions that you should not make things long just for the sake of length. If a large task A cannot be done correctly, and completing A requires first completing B, C, and D, while the model cannot do B, C, and D correctly on their own, then it is more valuable to first make B, C, and D into separate tasks. If B, C, and D can each be done correctly on their own but A still cannot be done correctly, then make A into a task. If several difficult points are mechanically mixed together, it is almost impossible for the model to produce a qualified output end to end, and the training signal will be too sparse and unstable.

After running, you also need to write a verifier. It can be designed as a 1/0 pass/fail, or as a continuous score from 0 to 100. The key is to avoid false negatives that kill good answers and false positives that let bad answers through, while also adding an oracle reference solution with full marks to ensure the task is solvable. The engineering implementation of the verifier can also be completed by an agent using the official terminal-bench tasks as a reference.

In the iterative running process, the core action is reading trajectories. Have an agent read the trajectories produced by the model and analyze: if the model fails, whether the place where it goes wrong is a meaningful difficulty; if the model succeeds, where it is too easy and whether the task gives too many hints; whether the verifier falsely rejects or misses judgments; whether the environment setup supports solving the task; how much time the model spent, how many steps it used, and where it mainly did its thinking. Use these results to revise the task repeatedly.

James Zhu’s judgment is that building a benchmark itself is not that hard; domain know-how and an understanding of the model’s intelligence level are what is valuable. Truly worthwhile problems plus robust evaluation engineering are scarce in the industry right now. Pure synthetic data from model-company researchers and data companies is not good enough in distribution and diversity, and leaderboard-chasing may go off course. Data needs to align with human needs. In the future, every company may be a data company, and every industry expert can be a bencher, because they are at the frontier of applying AI in their industry; as long as there is a gap between model output and human expectations, evals and benchmarks will keep emerging.

At the end of the article, he also mentions a detail: recently, several model companies have been offering free tokens to researchers. James Zhu says that model companies may not necessarily be interested in the research topic or paper; they are more interested in mining trajectories for things that can be turned into tasks. You have more context about your own workspace, so you might do this better than they can. The reminder is somewhat ironic, and also very real.

Source: James Zhu’s X article A Survival Guide for the Great Bench Era; material comes from this reposted tweet.

发布时间: 2026-11-28 11:32