← Latest papers
💻 computer science

ClawForge: Generating Executable Interactive Benchmarks for Command-Line Agents

This paper introduces ClawForge, a generator-backed benchmark framework that evaluates command-line agents on executable workflows with persistent state conflicts, revealing that current frontier models struggle significantly with inspecting existing states and handling pre-existing artifacts, achieving at most 45.3% strict accuracy.

Original authors: Yuxiang Lai, Peng Xia, Haonian Ji, Kaiwen Xiong, Kaide Zeng, Jiaqi Liu, Fang Wu, Jike Zhong, Zeyu Zheng, Cihang Xie, Huaxiu Yao

Published 2026-05-15
📖 5 min read🧠 Deep dive

Original authors: Yuxiang Lai, Peng Xia, Haonian Ji, Kaiwen Xiong, Kaide Zeng, Jiaqi Liu, Fang Wu, Jike Zhong, Zeyu Zheng, Cihang Xie, Huaxiu Yao

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Picture: The "Messy Desk" Problem

Imagine you hire a very smart robot assistant to organize your life. Most tests we give these robots are like giving them a brand new, empty desk and saying, "Please write a to-do list." The robot writes the list, and we check if the words are correct.

But in the real world, your desk is never empty. It's covered in half-finished projects, old sticky notes, conflicting instructions, and files that are outdated. A real test of a robot's intelligence isn't just "Can it write a list?" but "Can it look at this messy desk, figure out what's broken, fix the old stuff without deleting the good stuff, and finish the job?"

This paper introduces ClawForge, a new way to test AI agents (robots) that focuses entirely on this "messy desk" scenario.


What is ClawForge? (The "Scenario Factory")

The authors realized that creating these "messy desk" tests by hand is too hard and too slow. If you want to test 100 different messy scenarios, you'd have to manually build 100 different messes.

ClawForge is an automated factory.
Instead of humans writing every test, the researchers built a system that generates the tests. It takes a template (like "Fix a broken release schedule") and automatically fills in the details (different cities, different dates, different errors).

  • The Output: It creates a complete "executable task." This isn't just a question; it's a mini-simulation with a starting state (the messy desk), a set of rules, and a way to grade the result.
  • The Goal: To see if the AI can handle State Conflict. This means dealing with things that are already there, some of which might be wrong, stale, or duplicate.

How the Test Works (The "Game Loop")

Think of the test like a video game level where the AI is the player:

  1. The Setup: The game loads a "save file" that already has some items on the board. Maybe there's a task called "Fix the Server" that is already there but marked as "Low Priority" (which is wrong).
  2. The Instruction: The AI gets a command: "The server fix is wrong. Fix it, but don't delete the other valid tasks."
  3. The Action: The AI types commands one by one (like a human using a command line).
  4. The Grading: This is the most important part. The system doesn't check if the AI typed the exact same words the human would have. Instead, it checks the final state of the desk.
    • Did the old, wrong task get removed?
    • Is the new, correct task there?
    • Did the AI accidentally create a duplicate of the task?
    • Did it leave the valid stuff alone?

If the final desk looks perfect, the AI passes. If it looks messy, it fails.

The Results: The Robots Are Still Learning

The authors tested seven of the smartest AI models available (from companies like OpenAI, Anthropic, and Kimi) on this new benchmark. The results were surprising and humbling:

  • The "Perfect Score" is Rare: Even the best AI model only got about 45% of the tasks perfectly right. This means the benchmark is hard and hasn't been "solved" yet.
  • The "Wrong Fix" Problem: One specific type of failure was very common. When asked to replace a wrong item, the models often got stuck. They might delete the wrong item but forget to add the new one, or they might add the new one but leave the old, broken one sitting there.
    • Analogy: Imagine you are told to swap a flat tire. The AI takes the flat tire off but forgets to put the spare on. Or, it puts the spare on but leaves the flat tire rolling on the ground.
  • The "Don't Touch It" Problem: Another common failure was when the desk was already mostly done. The AI would see a task that was already correct and, instead of just leaving it alone, it would try to "fix" it again, creating a duplicate.
    • Analogy: You tell the robot, "The coffee is already brewed." The robot says, "Okay," and then immediately brews a second pot, creating a mess.
  • Efficiency Matters: Some models took way too many steps to solve simple problems, while others were fast but made mistakes. The best performers were those that checked the existing state first before acting.

The Two Hardest Challenges

The paper highlights two specific types of "messy desk" scenarios that stumped almost all the models:

  1. Wrong-State Replacement: The AI has to identify something that is wrong and replace it with something right, while keeping everything else safe. This was the hardest task; the best model only got it right 17% of the time.
  2. Interrupted Workflow Resume: The AI has to walk into a room where someone else started a project, finish the missing pieces, and not redo the parts that were already done. The gap between the best and worst models here was huge (from 17% to 90%), showing that some models are much better at "reading the room" before jumping in.

Why This Matters

The authors argue that we can't just test AI on "clean" tasks anymore. Real work involves dealing with history, mistakes, and partial progress. ClawForge is a tool to measure if an AI is truly ready to work in a real office, where things are rarely perfect and starting from scratch is rarely an option.

In short: ClawForge is a gym for AI agents to learn how to clean up a messy room without breaking the furniture that's already working. Right now, even the strongest AI agents are still tripping over their own feet in this gym.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →