Letting AI Agents Build Their Own Tools: Self-Evolution for Computer-Use Agents

    Computer-use agents often know a faster path exists yet still click through tasks one cell at a time, because their interfaces are frozen at deploy time. This article explains that bottleneck, why extra sampling and reusable “skills” cannot expand the action space, and how agents can synthesize, register, and sandbox new tools from usage traces so the interface evolves like software.

    A Counterintuitive Pattern: Code-Capable Agents Take the Slowest Path

    Imagine giving a computer-use agent a task: fill a spreadsheet in bulk. A human would open a script editor, write a short loop, and finish in seconds. Many agents instead move the mouse, click the first cell, type, confirm, click the second cell, and repeat that thousands of times.

    This is not an extreme thought experiment. Researchers repeatedly observe it in computer-use agents—systems that complete work by watching the screen and simulating mouse and keyboard, for tasks such as booking, file organization, and email. At the understanding level they “know” a more efficient method exists; they still follow the least efficient path.

    The problem is not that the model is not smart enough. The toolset never offered a smarter option.

    A second typical case: locating a function in a 2,000-line source file. The natural approach is a text search that jumps to the line. Some agents instead page the entire file through a terminal and “read” it visually, screen by screen. That is slow, but from the agent’s view it is the only action sequence the current interface allows.

    Root Cause: Who Defines the Tool Interface, and Why That Matters

    1. Current Paradigm: Human-Designed, Locked for Life

    Mainstream computer-use agents follow the same route: before deployment, engineers design a fixed interaction interface—usually screenshots (observation space) plus mouse and keyboard (action space), sometimes plus a few hand-written tools. Once set, that interface is the agent’s unchanging “hands and feet” for its whole lifetime.

    The design assumes engineers can predict, from experience, which capabilities the agent will need. Computer work is highly open-ended: new apps, workflows, and interaction styles keep appearing. Each environment shift can make a carefully designed interface clumsy and outdated.

    2. Analogy: A Car With the Gearshift Removed

    The paper offers a representative example. The agent wants to run a shell command. The natural step is to call a terminal and pass the command text. In many systems it must click to open a terminal, type the command character by character, then inspect a screenshot of a window that is often half-occluded to guess whether the command succeeded.

    That is like asking a skilled driver to operate a car whose shift mechanism was deliberately removed—pull over, check a manual for gear positions, then operate cautiously. The driver can drive; the vehicle design removed the intuitive channel and forced the most tedious procedure.

    3. Limits of Existing Fixes

    Industry responses fall into two classes, both with structural gaps.

    Spend more compute at test time. Sample and retry more within one task so inference cost papers over a poorly designed interface. The ceiling is clear: actions the interface does not support never appear no matter how often you sample. Cost is high and behavior is brittle; a slight task change can break it.

    Turn experience into reusable skills. Distill successful test-time traces into “skills” or recipes for later tasks. That helps, but those skills are still permutations of the original observation and action sets. They optimize inside a fixed frame; they do not expand the interface’s capability bound.

    Both approaches dance in chains. The chains—the upper bound of the interface—never move.

    Core Claim: Interfaces Should Be Iterated Like Software

    Researchers therefore argue that interaction-interface design should not be a one-shot human decision at deploy time, locked forever. It should be researched, improved, and refactored from real use, like a software product.

    That claim has three layers:

    1. The interface is an evolvable asset, not a fixed config. Real software versions iterate on user feedback; an agent’s tool interface should have a versioning mechanism as well.
    2. Improvement is driven by use. While executing tasks, the agent exposes interface shortfalls—detours, repeated action combinations, needs with no corresponding tool. Those traces are the most valuable signal for change.
    3. The agent can design its own interface. Human presets cannot cover open-ended demand. Letting the agent write, register, and call new tools for the task is the direct fix. If it finds itself clicking spreadsheet cells one by one, it can wrap a “batch write cells” script, register it in its action space, and call it next time.

    Illustrative pseudocode for that self-evolution loop:

    1. # Abstract flow: agent synthesizes its own tools
    2. def execute_task(task):
    3. plan = planner(task, current_tools)
    4. for step in plan:
    5. if is_tedious_repetition(step):
    6. # Detect inefficient action pattern; generate a dedicated tool
    7. new_tool = synthesize_tool(step)
    8. tool_registry.register(new_tool)
    9. step = replace_with(new_tool)
    10. result = act(step)
    11. return result

    Practical Implications: Building a Self-Evolving Tool Layer

    Teams that want to apply this idea can start from these points:

    • Keep meta-level privileges. Besides mouse and keyboard, the action space should include a script runtime and filesystem so the agent has a material basis to write tools.
    • Register and retrieve tools. New tools need unified management: names, parameter descriptions, versions, and call logs, so later tasks can reuse them instead of reinventing them.
    • Validate in a sandbox. Self-generated code has correctness and safety risk. Test it and run it in a controlled environment before promoting it to the official toolset.
    • Close the feedback loop. Record each tool’s call frequency, success rate, and latency as quantitative input for the next interface iteration—the same idea as logging and monitoring: without observability there is no continuous improvement.

    Conclusion

    The next leap for computer-use agents may not be a larger model or more samples, but breaking the habit of one-shot human-preset tools. When an agent can write tools for itself, the interface stops being a static shackle and becomes a growing asset. That is not only an efficiency issue; it is a step from an executor that is fed capabilities toward a problem-solver that evolves itself. For engineers building agent systems, evolvability of the tool layer deserves the same architectural weight as model capability.