Wink Pings

Those 100 rounds when you make AI redo work could be a good benchmark problem

James Zhu shared a problem-creation workflow on X: don't rush to build a leaderboard; first find failure scenes from Claude Code and Codex agent trajectories, cut out segments, reconstruct the environment, let a model with clean context run it, and then write a verifier. The hard parts are path overfitting and scoring.

James Zhu wrote a long post on X on a very specific topic: how to create a terminal-bench-level benchmark problem from your interaction trajectories with agents such as Claude Code and Codex. The original tweet is here, and the long post is here.

A bit of background first. terminal-bench is a terminal task evaluation set that gives an agent a runnable environment, has it complete a specific task, and then scores it based on the result. James Zhu's judgment is that creating one good problem is more valuable than starting by building a leaderboard. Benchmarks are used to define valuable problems that models still cannot do well. The larger the gap between the model and the expectations of human experts, the more economically valuable the problem is and the more worth creating a problem around it.

Where does the raw material come from? From your own agent usage trajectories. You ask AI to do a research task, it makes a big mess in the workspace, you keep correcting it, and after a hundred rounds of interaction in one session, it finally delivers something pretty good. That session is over for you, but for someone creating benchmark problems, it contains quite a few cases the model originally did not handle well. You need to analyze the cause: was it because you did not provide enough context, or is the model's capability genuinely insufficient? If it is the latter, you can start creating a problem.

The workflow can be broken down into finding, cutting, reconstructing the environment, running, writing the verifier, and reviewing trajectories.

Find: start with the failure scene

The first step is to find cases and original trajectories. Agent run trajectories are stored on your computer, so you can directly ask an agent to find them. James Zhu listed several characteristics:

  • The user points out that the output is not ideal, and the result changes significantly after rework
  • The user and the agent interact over multiple rounds on a certain issue, and the agent has a long-running trajectory on that issue
  • The difficulty is not because the user failed to provide all information; a specific, seemingly reasonable erroneous decision can be identified, and using only the information available before the mistake, a problem solver would have a chance to discover or avoid it
  • The task has clear inputs, deliverables, and a testable standard for good versus bad

After the agent filters them, a human still needs to review. Check whether these cases meet expectations and whether they are high-value, high-difficulty tasks in their domain.

Cut: take only the segment around the mistake

A session contains a lot of things—literature review, experiment design, running computations, writing drafts, and all sorts of miscellaneous work. You need to cut out the most central segment of the trajectory—the one that truly causes the gap. The starting point is the moment before the model makes a mistake, and the ending point is the moment the model produces an unsatisfactory output. Today's models are not that dumb, and it is hard to have an absolute sense of making a mistake. You can combine your own understanding and ask an agent to help locate the segment, ensuring the segment has clear inputs and outputs, like a prototype of a task.

Reconstruct the environment: restore the world as it was

Reconstructing the environment is essentially restoration. Align the problem as closely as possible with the real task scenario at the time. The context before the start of the trajectory—that is, what the model knows when the task begins—can be condensed into a task instruction and a starting database. Dependencies needed to execute the task, such as specialized software and tool libraries like Blender and Lean, should be packed into a Docker container. For the specific operations, you can ask an agent to complete them by referring to official terminal-bench problems.

Run: let a model with clean context try again

Once you have a task prototype, you still need to validate it. Give the problem statement and environment to a new agent with clean context and run it to see whether the model fails on the expected issue. If it does not reproduce, there may be several situations: the problem statement and environment did not sufficiently reconstruct the failure scenario from that time, so ask the agent to find the diff again; the old model version did poorly but the new model version can already do it well; the failure at the time was a sporadic phenomenon, so run it several more times; the problem statement over-hints and makes the business judgment for the model that it should have made itself.

Do not make long-horizon tasks long just for the sake of being long. A friend asked how long a task should let the model run, and whether the longer the horizon the better. James Zhu's view is that this is not necessarily so. If a problem merely mechanically mixes several hard points together, and the model cannot reliably get each hard point right, it is almost impossible for the model to produce an end-to-end output that meets the requirements. From a training perspective, the signal is too sparse and unstable. For example, to do a large task A correctly, the model must first complete B, C, and D. If B, C, and D individually cannot be done correctly, it is more valuable to first turn them into separate problems; if B, C, and D individually can all be done correctly but A still cannot, then making A into a problem is fine.

Scoring: the verifier must withstand false kills and missed judgments

After the model produces results, based on the output and knowhow, you can roughly know how many points it should get. Scores cannot be decided by gut feeling; you need to write scoring criteria like a college entrance exam paper—that is, a verifier. It can be designed as 1/0 pass or fail, or as a continuous score from zero to one hundred. Designing the verifier requires special care to avoid false negatives that kill good answers and false positives that let bad answers pass. You should also add an oracle full-score reference solution to ensure the problem is solvable. For engineering implementation, you can ask an agent to complete it by referring to official terminal-bench problems.

Review trajectories: the daily work of evaluation engineering

During repeated runs, you need to keep checking trajectories. The essence of evaluation engineering is looking at trajectories. Ask an agent to help read the trajectories produced by the model. You can analyze: if the model fails, whether the place where it goes wrong is a meaningful difficulty; if the model succeeds, which parts are too easy and whether the problem gives too many hints; whether the verifier has false negatives or missed judgments; whether there are problems with environment setup; how much time and how many steps the model spent solving the problem, and where it mainly spent time thinking. By looking at trajectories, you can discover many problems, and you may need to improve the problem multiple times until you feel it is flawless.

An easy pitfall: encoding the execution path into the problem

A user asked in the replies how to ensure the problem still holds when switching to another model, fearing that the problem might encode the execution path from that particular run. James Zhu replied that the problem statement must be written by a human, the environment must be kept clean and reproducible, and all materials needed to solve the problem should be placed in a public environment, so that every model sees the same things when it starts solving the problem. Another concern is creating the problem and answering it yourself, which makes it easy to get everything right. His suggestion is to switch to a session or subagent with clean context to run it.

Another user, Wilson, reminded that mining problems from failure trajectories is suitable for building a regression set, but it is best to keep a separate set of randomly sampled real tasks. The hard-case set answers whether this pit has been fixed, while the random sample answers whether everyday tasks have improved overall. Mixing the two groups into one score can easily misread fixing hard cases as an overall capability improvement. This reminder is very specific and also very important.

Someone mentioned that some benches have very low pass@k even for frontier models, and the problems themselves may be flawed. James Zhu replied, 'Hard for the sake of being hard.' This response is quite direct. The purpose of creating problems is still to define valuable problems that models currently cannot do well; difficulty itself does not constitute value.

The calculation behind free tokens

There is another detail at the end of the post. James Zhu said that several model companies have recently been offering free tokens to researchers, and you can apply. They are not interested in your project or paper; they want to mine things that can be turned into benchmark problems from your trajectories. If you do this yourself, you may do it better than they do, because you have more context about your own workspace.

Creating benchmarks is not originally an extremely difficult thing. Domain knowhow and an understanding of the model's intelligence level are the truly valuable things. Problems worth solving plus robust evaluation engineering are scarce in the industry today, and are also what long-term improvements in model intelligence need. Pure synthetic data from model-company researchers and data companies is not good enough in distribution and diversity. It may be okay for topping leaderboards, but it can also lead you astray. Data, in essence, still needs to align with human needs.

In the future, every business company may be a data company, and every industry expert can be a bencher. They are truly at the frontier of applying AI in the industry. As long as there is a gap between model output and human expectations, evals and benches will keep emerging. After you have done one problem well, you can crystallize the experience into a skill to scale to more scenarios.

发布时间: 2026-11-28 08:27