PreAct Accelerates Computer-Using Agents on Repetitive Tasks

Bojie Li· June 17, 2026 View original

Summary

PreAct is a new system that enables computer-using agents to learn and execute repeated tasks significantly faster. It compiles successful task runs into state-machine programs, which are then replayed directly, bypassing costly language model calls while maintaining robust error checking.

Computer-using agents, which interact with software by simulating clicks and typing, typically process every task as if it were new. This means that even when asked to repeat a task, the agent re-analyzes the screen and re-reasons each action, incurring the full computational cost every time. This approach limits efficiency for repetitive operations. A new system called PreAct addresses this by allowing agents to accelerate on tasks they have previously completed. When an agent successfully performs a task for the first time, PreAct compiles that entire execution into a compact state-machine program. This program consists of states that verify screen conditions and transitions that execute actions. For subsequent runs of the same task, PreAct directly replays this compiled program, leading to an 8.5 to 13 times speed improvement by eliminating per-step language model calls. Crucially, this replay mechanism is not "blind"; at each step, PreAct verifies that the screen state matches expectations. If a discrepancy is detected, control is immediately returned to the agent for dynamic problem-solving, ensuring robustness. A rigorous validation process ensures that only correctly completed task programs are stored for reuse, preventing the accumulation of faulty programs.

Why it matters

For professionals building or deploying AI agents that interact with user interfaces, PreAct offers a significant leap in efficiency and cost reduction for repetitive tasks. This can lead to faster automation, lower operational expenses, and more reliable agent performance in real-world applications.

How to implement this in your domain

  1. 1Investigate integrating PreAct's state-machine compilation approach into your existing agent frameworks for UI automation.
  2. 2Benchmark the performance gains of using a replay mechanism like PreAct for frequently executed agent tasks.
  3. 3Develop robust validation routines to ensure compiled task programs are accurate and complete before deployment.
  4. 4Design agent workflows to identify and categorize repetitive tasks suitable for acceleration through compiled programs.
  5. 5Explore how PreAct's screen-checking and fallback mechanisms can enhance the reliability of your automated processes.

Who benefits

Software DevelopmentIT OperationsBusiness Process AutomationCustomer ServiceQuality Assurance

Key takeaways

  • PreAct significantly speeds up computer-using agents on repeated tasks by compiling successful runs.
  • It uses state-machine programs for replay, reducing reliance on expensive language model calls.
  • The system includes robust screen-state checking and a fallback to the agent for unexpected conditions.
  • A rigorous validation process ensures only correct task programs are stored for reuse.

Original post by Bojie Li

"arXiv:2606.17929v1 Announce Type: new Abstract: Computer-using agents drive real software through the screen -- clicking and typing -- but they solve every task from scratch: asked to repeat a task, an agent re-reads the screen, re-reasons every tap, and pays the full cost again.…"

View on X

Originally posted by Bojie Li on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses