Web Agents Should Adopt the Plan-Then-Execute Paradigm

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Piet, Julien, Chow, Annabella, Hou, Yiwei, Lyu, Muxi, Venuto, Sylvie, Zhu, Jinhao, Popa, Raluca Ada, Wagner, David
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910218898636800
author Piet, Julien
Chow, Annabella
Hou, Yiwei
Lyu, Muxi
Venuto, Sylvie
Zhu, Jinhao
Popa, Raluca Ada
Wagner, David
author_facet Piet, Julien
Chow, Annabella
Hou, Yiwei
Lyu, Muxi
Venuto, Sylvie
Zhu, Jinhao
Popa, Raluca Ada
Wagner, David
contents ReAct has become the default architecture across LLM agents, and many existing web agents follow this paradigm. We argue that it is the wrong default for web agents. Instead, web agents should default to plan-then-execute: commit to a task-specific program before observing runtime web content, then execute it. The reason is that web content mixes inputs from many parties. An e-commerce product page may combine a seller's listing, customer reviews and sponsored advertisements. Under ReAct, all of this content flows into the model when deciding on the next action, creating a direct path for prompt injections to steer the agent's control flow. Plan-then-execute changes this boundary: untrusted data may influence values or branches inside a predefined execution graph, but it cannot redefine the user task or cause the model to synthesize new actions at runtime. We analyze WebArena, a popular web agent benchmark, and find that all tasks are compatible with plan-then-execute, while 80% can be completed with a purely programmatic plan, without any runtime LLM subroutine. We identify the main barrier to adopting plan-then-execute on the web: For it to work well, tools must map cleanly to semantic actions, with effects known before execution, so agents have enough information to plan. The web does not naturally expose that interface. Browser tools such as click, type, and scroll have page-dependent meanings. Planning at this layer is near-sighted: the agent can only see actions on the current page, and later actions appear only after it acts. Closing this gap requires typed interfaces that turn website interactions from clicks and keystrokes to task-level operations. This is an infrastructure problem, not a modeling problem. Web tasks do not need reactivity by default; they need typed, complete, auditable website APIs.
format Preprint
id arxiv_https___arxiv_org_abs_2605_14290
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Web Agents Should Adopt the Plan-Then-Execute Paradigm
Piet, Julien
Chow, Annabella
Hou, Yiwei
Lyu, Muxi
Venuto, Sylvie
Zhu, Jinhao
Popa, Raluca Ada
Wagner, David
Cryptography and Security
Artificial Intelligence
Computation and Language
Software Engineering
ReAct has become the default architecture across LLM agents, and many existing web agents follow this paradigm. We argue that it is the wrong default for web agents. Instead, web agents should default to plan-then-execute: commit to a task-specific program before observing runtime web content, then execute it. The reason is that web content mixes inputs from many parties. An e-commerce product page may combine a seller's listing, customer reviews and sponsored advertisements. Under ReAct, all of this content flows into the model when deciding on the next action, creating a direct path for prompt injections to steer the agent's control flow. Plan-then-execute changes this boundary: untrusted data may influence values or branches inside a predefined execution graph, but it cannot redefine the user task or cause the model to synthesize new actions at runtime. We analyze WebArena, a popular web agent benchmark, and find that all tasks are compatible with plan-then-execute, while 80% can be completed with a purely programmatic plan, without any runtime LLM subroutine. We identify the main barrier to adopting plan-then-execute on the web: For it to work well, tools must map cleanly to semantic actions, with effects known before execution, so agents have enough information to plan. The web does not naturally expose that interface. Browser tools such as click, type, and scroll have page-dependent meanings. Planning at this layer is near-sighted: the agent can only see actions on the current page, and later actions appear only after it acts. Closing this gap requires typed interfaces that turn website interactions from clicks and keystrokes to task-level operations. This is an infrastructure problem, not a modeling problem. Web tasks do not need reactivity by default; they need typed, complete, auditable website APIs.
title Web Agents Should Adopt the Plan-Then-Execute Paradigm
topic Cryptography and Security
Artificial Intelligence
Computation and Language
Software Engineering
url https://arxiv.org/abs/2605.14290