Manuscript Offprint

arXiv:2610.29250

Let Agents Design How They Search: Automatic Interface Optimization for Agentic Search

Sangjune An, Jaeyoon Jung, Yumin Choi, Jinheon Baek, Junmo Cho, Sung Ju Hwang, Hae Beom Lee

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Agentic search depends on the interface through which a language-model agent accesses and explores a corpus. Existing interface designs are fixed by hand and applied unchanged to every corpus, although effective designs may depend on the corpus. We introduce SearchWeaver, a framework for automatic search interface optimization guided by downstream search performance. A proposer uses execution trajectories and task rewards to jointly revise corpus artifacts, executable tools, and usage instructions. This process optimizes what information is prepared in advance, which operations tools perform, and which decisions remain with the search agent. With GPT-5.4-nano, the optimized interfaces improve answer accuracy from 71.6% to 78.4% on BrowseComp-Plus and average nDCG@10 from 45.7 to 55.0 across four BRIGHT subsets over Direct Corpus Interaction. These findings highlight the value of jointly optimizing corpus artifacts, executable tools, and usage instructions to develop effective search interfaces.

1 Introduction

Language-model agents search for evidence by issuing queries, inspecting retrieved information, and deciding what to explore next (Yao et al., 2023; Asai et al., 2024). These decisions depend on the search interface provided to the agent: how documents are organized, which operations are available, and what instructions guide their use. The interface determines what evidence the agent can access at each step and how it can act on that evidence. Designing this interface is therefore central to both the quality and the cost of agentic search.

Existing approaches provide different interfaces for accessing a corpus. Retrieval-augmented generation supplies passages selected by a retriever (Lewis et al., 2020), while Direct Corpus Interaction (DCI) lets agents search and read raw documents with general-purpose terminal tools (Li et al., 2026). More recent approaches combine retrieval with direct exploration: DR-DCI dynamically expands a local workspace with retrieved documents, and RISE constructs a bounded interaction space for the agent (Lu et al., 2026; Zhuang et al., 2026). Each approach makes design choices about which information to expose and which operations the agent can perform. However, these approaches generally specify an interface design in advance and apply it unchanged across corpora, despite the fact that the most effective design depends on corpus size and structure, the types of queries, and the language model used for search.

This raises the question of how to design a search interface for a given corpus and language-model agent. The goal is to determine what corpus information to prepare, which search operations to expose, and how to guide their use so as to improve the agent's downstream search performance. An effective search interface must align the information and operations it provides with how the agent uses them. For example, a title index can help locate documents about a candidate entity, but its usefulness depends on tools that expose those documents and instructions that guide the agent to inspect them and verify the query's clues. These components therefore need to be designed together.

To tackle this, we propose SearchWeaver, a framework that iteratively optimizes search interfaces using feedback from agent search trajectories and task rewards. Specifically, a proposer analyzes failures and bottlenecks in these trajectories to jointly revise which corpus artifacts to prepare, how to structure executable tools, and how to guide the agent in using them. Each revised interface is evaluated on search tasks, producing new trajectories and rewards that guide subsequent revisions. In this way, optimization shapes the division of

∗^{*}Equal contribution; †\daggerCorresponding author.

work between corpus preparation, tool execution, and agent reasoning.

Experiments with GPT-5.4-nano show that the optimized interfaces improve answer accuracy from 71.6% to 78.4% on BrowseComp-Plus (Chen et al., 2026b) and average nDCG@10 from 45.7 to 55.0 across four BRIGHT (Su et al., 2025) subsets over plain DCI, while reducing mean tool execution time by 42% on BRIGHT. The discovered interfaces use distinct strategies across corpora, including restricting retrieval to a topic directory and combining agent judgments with retrieval rankings. The BRIGHT interfaces also improve search performance and reduce tool execution time when reused by Gemini 3.5 Flash-Lite without re-optimization. These findings support treating the search interface as a reusable corpus resource that can be optimized through agent execution.

References (32)