Paper deep dive
AgentDisCo: Towards Disentanglement and Collaboration in Open-ended Deep Research Agents
Jiarui Jin, Zexuan Yan, Shijian Wang, Wenxiang Jiao, Yuan Lu
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 92%
Last extracted: 7/8/2026, 2:09:16 PM
Summary
This paper introduces AgentDisCo, a novel agentic architecture for open-ended deep research that disentangles information exploration and exploitation into an adversarial optimization loop between a critic agent and a generator agent. The framework iteratively refines research outlines, supported by a meta-optimization harness that automatically discovers design strategies via a policy bank. AgentDisCo is evaluated on established benchmarks (DeepResearchBench, DeepConsult, DeepResearchGym) and a new lifestyle-oriented benchmark (GALA), outperforming leading closed-source systems. It also includes a rendering agent for poster generation and a product demo for personalized research recommendations.
Entities (14)
Relation Signals (15)
AgentDisCo â evaluatedon â DeepConsult
confidence 95% ¡ evaluate AgentDisCo on three established deep research benchmarks (...DeepConsult
AgentDisCo â evaluatedon â DeepResearchBench
confidence 95% ¡ evaluate AgentDisCo on three established deep research benchmarks (DeepResearchBench
AgentDisCo â evaluatedon â DeepResearchGym
confidence 95% ¡ evaluate AgentDisCo on three established deep research benchmarks (...DeepResearchGym
AgentDisCo â introduces â GALA
confidence 95% ¡ we introduce GALA (General AI Life Assistants), a benchmark that mines latent research interests
Gemini 2.5 Pro â powers â AgentDisCo
confidence 95% ¡ using Gemini-2.5-Pro as our base model
AgentDisCo â uses â Critic Agent
confidence 95% ¡ employs a critic agent to evaluate generated outlines and refine search queries
AgentDisCo â uses â Generator Agent
confidence 95% ¡ and a generator agent to retrieve updated results and revise outlines accordingly
Rendering Agent â converts â research reports
confidence 90% ¡ rendering agent that converts research reports into visually rich poster presentations
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:In this paper, we present AgentDisCo, a novel Disentangled and Collaborative agentic architecture that formulates deep research as an adversarial optimization problem between information exploration and exploitation. Unlike existing approaches that conflate these two processes into a single module, AgentDisCo employs a critic agent to evaluate generated outlines and refine search queries, and a generator agent to retrieve updated results and revise outlines accordingly. The iteratively refined outline is then passed to a downstream report writer that synthesizes a comprehensive research report. The overall workflow supports both handcrafted and automatically discovered design strategies via a meta-optimization harness, in which the generator agent is repurposed as a scoring agent to evaluate critic outputs and generate quality signals. Powerful code-generation agents (e.g., Claude-Code, Codex) systematically explore agent configurations and construct a policy bank, a structured repository of reusable design strategies, enabling the framework to self-refine without extensive human intervention. We evaluate AgentDisCo on three established deep research benchmarks (DeepResearchBench, DeepConsult, DeepResearchGym) using Gemini-2.5-Pro, achieving performance comparable to or surpassing leading closed-source systems. Observing that existing benchmarks inadequately reflect real-world user needs, we introduce GALA (General AI Life Assistants), a benchmark that mines latent research interests from users' historical browsing behavior. We further develop a rendering agent that converts research reports into visually rich poster presentations, and demonstrate an end-to-end product, AutoResearch Your Interest, which delivers personalized deep research recommendations derived from individual browsing histories.
Tags
Links
- Source: https://arxiv.org/abs/2605.11732v2
- Canonical: https://arxiv.org/abs/2605.11732v2
Trouble viewing inline? Open PDF directly â
Full Text
153,737 characters extracted from source content.
Expand or collapse full text
2026-04-30 AgentDisCo: Towards Disentanglement and Collaboration in Open-ended Deep Research Agents Jiarui Jin, Zexuan Yan, Shijian Wang, Wenxiang Jiao, Yuan Lu Xiaohongshu Inc. Abstract Open-ended deep research agents have emerged as a promising paradigm for au- tonomously performing comprehensive information gathering and synthesis. However, existing approaches typically integrate information exploration and exploitation into a single unified moduleâsuch as an outline generator or a report generatorâthereby limiting their flexibility and optimization potential. In this paper, we introduce AgentDisCo, a novel Disentangled and Collaborative agentic architecture that formulates deep research as an adversarial optimization problem be- tween information exploration and exploitation. Specifically, a critic agent is optimized to evaluate and critique the generated outlines (serving as information exploitation states) and subsequently refine the search queries (serving as information exploration states), while a generator agent is optimized to retrieve updated search results based on the refined search queries (serving as information exploration states) and accordingly up- date the generated outlines (serving as information exploitation states). The resulting outline, progressively refined through iterative adversarial optimization, is subsequently delivered to a downstream report writer module. This module leverages the struc- tured outline alongside the accumulated search results to synthesize a comprehensive, coherent, and well-grounded research report. The above agentic workflow can be optimized through either handcrafted or automati- cally discovered design strategies by constructing a meta-optimization harness over the adversarial optimization loop, where the generator agent originally tasked with produc- ing target outlines is repurposed as a scoring agent that evaluates and generates quality signals over the critic agentâs outputs, thereby enabling systematic optimization of the search queries. Concretely, powerful code-generation agentsâsuch as Claude-Code or Codexâare employed to systematically explore the space of agent configurations and automatically construct a policy bank, a structured repository of reusable and compos- able design strategies over search query generation across diverse research tasks and search domains, enabling the framework to self-refine its own design strategies with- out requiring extensive human intervention. We evaluate AgentDisCo on three widely adopted deep research benchmarksâDeepResearchBench, DeepConsult, and Deep- ResearchGymâwith Gemini-2.5-Pro as our base model, demonstrating performance comparable to or surpassing that of leading closed-source deep research agents. Furthermore, we observe that existing benchmarks predominantly focus on academic or domain-specific consulting queries, which diverge significantly from the breadth and diversity of real-world user needs. To bridge this gap, we introduce GALA (General AI Life Assistants), a novel benchmark constructed via an agentic workflow that auto- matically mines latent deep research interests from usersâ historical browsing behavior, enabling a more faithful reflection of organic, everyday information needs. As an intuitive and user-friendly interface is essential for bridging the gap between research outputs and end-user consumption, we develop a rendering agent capable of transforming structured research reports into visually rich (rednote-style) poster presenta- tions. Building upon this, we further construct a product demonstrationââAutoResearch Your Interestââwhich automatically curates and delivers personalized deep research recommendations tailored to individual user profiles derived from their browsing histo- ries. We publicly release our benchmark, code, demo, and evaluation harness to support and accelerate future research in open-ended deep research. Project page: https://agentdisco-project.github.io/ Correspondence: jinjiarui@xiaohongshu.com, wenxiangjiaonju@gmail.com, luyuan3@xiaohongshu.com 1 arXiv:2605.11732v2 [cs.IR] 4 Jun 2026 1 Introduction Open-ended deep research agentsâcapable of synthesizing vast web-scale information into comprehen- sive, well-cited reportsâhave emerged as a critical frontier for large language models (LLMs). On one hand, closed-source commercial offeringsâsuch as GPT Deep Research (OpenAI, 2025a) and Gemini Deep Research (Research, 2025a)âprovide neither technical reports nor open implementations. On the other hand, a growing body of open technical reports (Han et al., 2025; Li et al., 2025; Lei et al., 2025) shed light on architectural design choices. Yet, beneath these advances in released architectural designs lies a persistent architectural bottleneck. First, existing deep research agents entangle informa- tion exploitationâthe generation of structured outlines or reportsâwith information explorationâthe planning and generation of search queriesâinto a single, undifferentiated module, fundamentally lacking any guarantee of informational incrementality in the iterative optimization process. Second, current outline-guided iteration loops require LLMs to refine generated outlines without explicit optimization objectives, leaving the model without clear guidance on which parts of the outline are satisfactory and which require further improvement. This absence of structured feedback signals results in directionless and unstable iterative refinement, where the model oscillates between over-revision and under-revision without convergence. In this paper, we propose AgentDisCo, a novel Disentangled and Collaborative agentic architecture that formulates deep research as an adversarial optimization problem between information exploration and exploitation. We first argue that iterative optimization should operate on intermediate generated outlines rather than final reports, as outline-level representations offer greater structural flexibility and are more amenable to effective context management. Within the outline optimization loop, we further disentangle the generation of outlines and search queries into two specialized yet interacting agents: a critic agent and a generator agent. Specifically, the critic agent receives the current generator state (i.e., the information exploitation state) â comprising the evolving outlines along with their associated references â and is tasked with evaluating and critiquing the quality and completeness of the generated outlines, upon which it subsequently produces targeted and gap-aware search queries. To further structure this iterative optimization process, we design the critic agent to produce updated critic state (i.e., the information exploration state) including a set of blueprints, where each blueprint represents a key point to be covered in the final report and is accompanied by a dedicated list of targeted search queries, thereby ensuring that the information retrieval at each iteration is systematically aligned with the intended scope and coverage of the final report. Conversely, the generator agent receives the current critic state (i.e., the information exploration state), and is responsible for retrieving updated search results based on the refined search queries, and accordingly revising the generated outlines along with accompanying references, namely generator state (i.e., the information exploitation state). Through this adversarial yet collaborative interaction, the two agents iteratively drive each other toward more comprehensive information coverage and higher-quality outline generation. The aforementioned agentic workflow can be optimized through two broad classes of design strategies: handcrafted approaches and automatically discovered approaches. Handcrafted optimization relies on domain expert knowledge to manually engineer search heuristics and allocate computational resources across distinct components of the workflow, offering interpretability but limited scalability. To overcome these constraints, recent advances in meta-optimization (Lee et al., 2026) introduce an outer optimization harness that operates over the agentic workflow itself, enabling the agent to systematically explore and refine its own optimization strategies in an automated and adaptive mannerâwithout requiring exhaustive human intervention. Concretely, we employ Claude-Code as our primary code-generation agent and construct a meta-optimization harness around the critic agent. Within this harness, the generator agentâoriginally responsible for producing target outlinesâis repurposed as a scoring agent that evaluates the critic agentâs outputs and emits structured quality signals. This repurposing enables systematic optimization of search query generation without introducing additional model components. Leveraging the strong code-generation capabilities of state-of-the-art agents such as Claude-Code, the framework systematically explores the space of agent configurations and automatically constructs a policy bankâa structured repository of reusable and composable design strategies that govern search query generation across diverse research tasks and retrieval domains. By drawing upon and refining the entries in this policy bank, the framework iteratively self-evolves its design strategies, progressively improving retrieval quality while reducing the need for human intervention. We evaluate AgentDisCo on three widely adopted deep research benchmarks, namely, DeepResearch- Bench (Du et al., 2025), DeepConsult (Consult, 2025), and DeepResearchGym (Coelho et al., 2025) with Gemini-2.5-Pro (DeepMind, 2025a) as our base model, Specifically, AgentDisCo w/ Harness achieves a RACE score of 52.11 on DeepResearchBench and 6.86 on DeepConsult, surpassing leading closed- source systems such as Doubao-Research (Research, 2026a), Claude-DeepResearch (anthropic, 2025), and OpenAI-DeepResearch (OpenAI, 2025a). 2 However, we observe that existing benchmarks predominantly center on academic or domain-specific consulting queries, which diverge substantially from the breadth and diversity of real-world user needs. To bridge this gap, we introduce GALA (General AI Life Assistants), a novel benchmark designed to capture authentic, everyday information-seeking behavior. Specifically, we collect over 10,000 highly active users from the Rednote platform 1 along with their browsing and commenting histories, and devise an agentic workflow that automatically mines latent deep research interests and synthesizes personalized queries tailored to each userâs individual preferences. Compared with prior open-sourced benchmarks, the resulting queries exhibit a markedly more lifestyle-oriented character, with the dominant topics shifting from Science & Technology and Finance & Business toward everyday domains such as Home & Hobbies, Fashion & Beauty, and Travel. By grounding evaluation in organic user activity, GALA offers a more faithful reflection of everyday information needs and enables a more realistic assessment of deep research agents in practical deployment scenarios. Alongside the query set, we release a standardized evaluation protocol built upon Gemini-3-Flash (DeepMind, 2025b), in which reports generated by AgentDisCo serve as reference outputs against which competing systems are scored in a pairwise manner. To construct competitive baselines, our human annotation team manually collects reports from the official web interfaces of Doubao-Research (Research, 2026a) and Qwen-Research (Research, 2026c), as well as outputs from OpenAI o3-DeepResearch (Research, 2026b) obtained via its API. Experimental results demonstrate that AgentDisCo consistently outperforms these strong proprietary baselines. Moreover, we find that AgentDisCo achieves stronger performance when relying solely on the Rednote search engine than when relying solely on Google Search, highlighting the superiority of Rednote as a source of community-grounded content for everyday information-seeking tasks. Motivated by recent advances in AI-generated content (AIGC) and the emergence of paper-to-poster generation systems (Zhang et al., 2025b), we further explore the integration of deep research agents with automated visual presentation. Recognizing that an intuitive and user-friendly interface is essential for bridging the gap between research outputs and end-user consumption, we develop a rendering agent that transforms structured research reports into visually rich, Rednote-style poster presentations. Build- ing upon this capability, we construct a product demonstrationâAutoResearch Your Interestâwhich automatically curates and delivers personalized deep research recommendations tailored to individual user profiles inferred from their browsing histories. Contributions. Our main contributions can be summarized as follows. â˘A novel disentangled and collaborative agentic architecture. As illustrated in Figure 1, we introduce AgentDisCo, which formulates deep research as an adversarial optimization problem between infor- mation exploration and exploitation, decoupling outline generation from search query formulation and coordinating them through a dynamic critic-and-generator cycle. ⢠A meta-optimization harness for self-evolving search. We construct a meta-optimization harness over the adversarial optimization loop, in which the generator agentâoriginally responsible for producing target outlinesâis repurposed as a scoring agent that evaluates the critic agentâs outputs and emits structured quality signals. This design enables the systematic and automatic optimization of search query generation without introducing additional model components. â˘A new benchmark for lifestyle deep research needs. Observing that existing benchmarks predom- inantly focus on academic or domain-specific consulting queriesâdiverging substantially from the breadth and diversity of real-world user needsâwe introduce GALA, a benchmark that captures authentic, lifestyle-oriented information-seeking behavior mined from organic user activity. â˘An open-sourced deep research system with multi-modal render agent. Recognizing that an intuitive interface is essential for bridging research outputs and end-user consumption, we develop a rendering agent that transforms structured reports into visually rich, Rednote-style poster presentations. As depicted in Figure 2, AgentDisCo thus spans the full pipelineâfrom deep research interest mining (which underpins the GALA benchmark) to the generation of reports and posters. To support and accelerate future research on open-ended deep research, we publicly release our benchmark, code, demo, and evaluation harness. 2 AgentDisCo: A Disentangled and Collaborative Agentic Architecture 2.1 System Overview and Design Philosophy We consider open-ended deep research questions without ground-truth answers. Given such a questionq, the agentic system must perform information exploration (searching relevant evidence) and information exploitation (synthesizing the evidence into a structured report). We argue that iterative optimization should occur on intermediate outlines rather than final reports, and we further disentangle exploration 1 https://w.xiaohongshu.com/explore 3 Query Query Report Draft Denoised Draft Retrieve Search Queries Planner Outline Section #1 Section #2 Search Writer Writing Retrieve Document Bank Draft Report Report Document Bank Writer Agent Critic Agent Generator Agent Query Planner Report (a) Outline Generator and Search Query Generator in One Model Search Queries Plan ďĽ Section #3 Section #1 Section #2 Section #3 Section #1 Section #2 Section #3 Critic State Rating & Justification Report Blueprints Search Queries Information Exploration Generator State â ďĽ Generator State Information Exploitation Outline Draft Extracted References Critic State â (b) Report Generator and Search Query Generator in One Model Generator State â Critic State â ďĽ Report Report â ďĽ Web, Poster, etc. Render Agent (c) AgentDisCo (Ours): Disentanglement and Collaboration of Outline Generator and Search Query Generator Outline Optimization Loop Planner Agent Response Style Decision-Making OR Information-Seeking Figure 1: Comparison of deep research paradigms. (a) the outline-iterative-optimization paradigm couples outline generation and search query formulation within a single model; (b) the report-iterative- optimization paradigm similarly entangles report generation with search query formulation; (c) in contrast, AgentDisCo disentangles the outline generator and the search query generator into separate models, and further coordinates them through a dynamic critic-and-generator research cycle. and exploitation into two specialized but interacting agents â a critic agentĎ c and a generator agent Ď g â whose adversarial yet collaborative interplay drives convergence toward a comprehensive, well- grounded outline. We formalize this disentangled and collaborative interaction as a dual-agent cooperative MDP (Markov Decision Process): M =â¨S c ,S g ,A c ,A g ,P ,R, TâŠ,(1) where the joint environment state at timesteptis the pair s t = (s c t , s g t ) . The generator state (i.e., the information-exploitation state), denoted s g t = (O t , R t ), consists of the current outline O t and the set of references R t attached to it. The critic state (i.e., the information-exploration state), denoted s c t = (B t , Q t ) , comprises a set of blueprints B t together with their associated search queries Q t . Each blueprint in B t specifies a key point that the final report should cover, and each such key point is paired with a list of targeted search queries in Q t dedicated to filling its information gap. Together, the blueprints align retrieval with the intended scope and coverage of the report. Given a user queryq, the system initializes the generator state as s g 0 = (â ,â ), indicating an empty outline and an empty document pool. Conditioned solely onq, the critic agent then performs a coarse decomposition and proposes an initial blueprint set s c 0 âźĎ c (¡ | q ,â ,â ), which seeds the subsequent iterative refinement. At each iterationt, the two agents act sequentially rather than simultaneously, with the critic moving first. At the criticâs step, conditioned on the questionq, the previous generator state s g tâ1 and its own previous state s c tâ1 , the critic agent assesses the completeness and quality of the current outline and produces an updated blueprint set: s c t âźĎ c (¡| q, s g tâ1 , s c tâ1 ). That is, the criticâs action is to 4 Mine Query GALA (General AI Life Assistant) Benchmark AgentDisCo Render Agent UserInteractionHistory Critic Agent Generator Agent Writer Agent Planner Agent Figure 2: Overview of the architecture and applications of AgentDisCo. AgentDisCo spans the full pipeline from mining latent deep research queries in user interaction histories to producing structured reports and rendering visually rich posters. This end-to-end design realizes the vision of âAutoResearch Your Interestââautomatically tracking evolving user interests and delivering personalized deep research recommendations tailored to individual user profiles. instantiate the next exploration state. At the generatorâs step, conditioned on the freshly updated critic state s c t together with its previous state s g tâ1 , the generator agent executes the queries prescribed by each blueprint, retrieves new evidence via the search tool, and accordingly revises both the outline and its references: s g t âźĎ g (¡ | q , s g tâ1 , s c t ) . The generatorâs action thus realizes the exploitation counterpart of the criticâs exploration. As for environment dynamics, given the actions of both agents, the joint state transition is deterministic: each agentâs output directly instantiates the corresponding component of the next joint state, i.e., s c t+1 =a c t and s g t+1 =a g t . Consequently, all stochasticity of the trajectory originates from the agentsâ policies themselves. Under the above sequential protocol, an interaction trajectory of AgentDisCo unfolds as the alternating sequenceĎ = q, s c 0 , s g 0 , s c 1 , s g 1 ,¡, in which the critic and the generator alternately update their respective state components. The likelihood of samplingĎadmits the following equivalent factorizations: p(Ď) = Tâ1 â t=0 Ď c s c t+1 | q, s g t , s c t | z (1) Critic agent policy Ď g s g t+1 | q, s g t , s c t+1 | z (2) Generator agent policy = Tâ1 â t=0 Ď c a c t | q, s g t , s c t | z (1) Critic agent policy I s c t+1 = a c t P c s g t+1 | q, s g t , a c t |z (2) Environment dynamic of critic agent = Tâ1 â t=0 Ď g a g t | q, s g t , s c t+1 | z (1) Generator agent policy I s g t+1 = a g t P g s c t+2 | q, a g t , s c t+1 | z (2) Environment dynamic of generator agent (2) whereTdenotes the maximum number of optimization rounds andI(¡)is the indicator function. The first line presents the most compact policy-only factorization, while the latter two further decouple each agentâs stochastic decision from its (degenerate) environment transition, thereby making explicit the loci at which learning signals can be injected. Although both agents are optimized toward a common objective, their per-round roles are functionally adversarial, jointly forming a minimax-style yet cooperative loop. The critic agentĎ c adversarially probes the generatorâs current outline, surfacing missing evidence and uncovered key points through newly proposed blueprints â thereby pushing exploration outward. The generator agentĎ g defen- sively expands and grounds the outline using the freshly retrieved evidence â thereby consolidating exploitation inward. This adversarial-yet-aligned interaction progressively refines the outline along the axes of coverage, factual grounding, and structural coherence. To reconcile the two locally adversarial roles under a single global objective, both agents share a common cooperative reward that quantifies the 5 Query Planner Agent Optimization Scope Response Stylization Response Instruction Critic Agent Generator State â Rating & Justification ďĽ Search Engine Config Blueprints Search Queries Score Agent WebSearcher DocParser Completeness Diversity Search Coverage Internal Correlation demotes the components that can be operated by the Harness optimizer. Policy Bank Trace 1: Search Queries, Score ... Trace 2: Search Queries, Score Retrieve Figure 3: Overview of the harness optimization in AgentDisCo. AgentDisCo can automatically discover design strategies by constructing a meta-optimization harness around the adversarial optimization loop. Specifically, the generator agentâoriginally tasked with producing target outlinesâis repurposed as a scoring agent that evaluates the critic agentâs outputs and generates quality signals, thereby enabling systematic optimization of the search queries. quality of the updated outline for the subsequent writer agent and render agent. Below, we describe each component of AgentDisCo in detail (as depicted in Figure 1), including the aforementioned (outline) critic and (outline) generator agents. 2.2 Planner Agent Handcrafted Design. To accommodate the heterogeneous nature of deep research queries encountered on the industrial platform, we introduce a planner agent that classifies each incoming query into one of two top-level categories, each further subdivided into fine-grained intents, namely information seeking category (including fact query, status & progress, news & information, deep exploration, and resource locating) and decision making category (comparison & selection, recommendations & suggestions, how-to guide, travel planning, and purchase decision). Beyond the categorical label, the planner also infers an expected response style tailored to the predicted intent, which subsequently conditions the downstream critic and generator agents. We instantiate the planner with Gemini-2.5-Pro (DeepMind, 2025a) as the backbone, and provide the full prompt template in Appendix A.3. Harness Optimization. During harness optimization, we grant the planner agent access to generate instructions for the subsequent agentic workflows. Concretely, we observe that our code-generation agent (i.e., the Claude-Code agent) specifies instructions such as tips for formulating search queries and selecting hyperparameters for the search engines, which are then passed along to the downstream (outline) critic and generator agents. Detailed prompts are provided in Appendix B.2. Formally, we introduce the notationĎ Planner (¡)to denote the planner agent, whose function can be written as PâźĎ Planner (q). In the handcrafted design, P represents the intent type and response style conditioned on the input queryq, whereas during harness optimization, P additionally includes specified instructions. For ease of representation, we omit P, since it can be regarded as a complementary explanation attached to the query and thus integrated into q, namely q = [P; q]. 2.3 (Outline) Critic Agent and (Outline) Generator Agent Handcrafted Design. As described in Section 2.1, the core of AgentDisCo lies in the dual optimization between the critic and generator agents. Eq. (2) reveals that, although both agents assume functionally adversarial roles in each round, they jointly constitute a minimax-style yet cooperative loop: both are optimized toward a shared objective, namely, the production of a high-quality outline that can attain a sufficiently high score under the criticâs evaluation. The resulting artifact, denoted as O t and R t , serves as the foundation for the subsequent writing and rendering stages. To assess outline quality, our handcrafted design employs the critic agent to produce both a numerical score and an accompanying justification for each candidate outline. The optimization loop is further governed by three control parameters: an exit threshold that determines when the outline is deemed 6 acceptable by the critic, a minimum number of optimization rounds to ensure sufficient refinement, and a maximum number of rounds to bound the overall computational cost. Formally, the reward function for(O t , R t )can be expressed asR(s g t , a g t ), where a g t denotes the generatorâs action, i.e., the produced outline O t and its rendering R t . At iterationt +1, the critic agent receives(O t , R t )as input and outputs an evaluation score that constitutes the reward signal. Accordingly, the reward is sampled as r t âźĎ c (a c t+1 | s c t+1 ), with the criticâs state defined as s c t+1 = a g t , thereby coupling the generatorâs output directly to the criticâs input. A persistent challenge in multi-round outline optimization is reference management: as the optimization unfolds, the agent must continually decide which documents retrieved in earlier rounds are worth retaining for downstream use and which can be safely discarded. Naive strategies risk either prema- turely dropping high-quality evidence or overloading the context window with stale and redundant contentâboth of which degrade the quality of the final outline. To address this, we introduce the docu- ment bank, a lightweight recorder and tracker that maintains a persistent view of retrieved references across rounds. Once the critic agent produces a set of search queries, the document bank parses each retrieved document into fine-grained evidence snippets, scores documents in parallel for relevance, summarizes their content, and extracts key evidence triples; low-scoring documents are filtered out before reaching the generator agent. In this way, the document bank not only compresses raw search results into a structured, citation-ready memory, but also shields the generator agent from contextual noise and redundancy. To ensure stable progression and prevent information loss across rounds, each new optimization round enforces the following continuity constraints. Firstly, all documents contained in the reference set (i.e., R t in the outline O t ) are carried over as input to the next round (i.e.,t +1), guaranteeing that previously validated evidence remains accessible to both agents. The document bank correspondingly updates its document indices to align with the new round. Secondly, while outlines and search queries are fully re-generated at each round, the underlying blueprint is only permitted to be modified or expanded; deletion of existing key points is discouraged, thereby preserving the structural backbone established in earlier rounds. Moreover, each invocation of the critic agent (for refining search queries and blueprints) and the generator agent (for refining outlines) is explicitly conditioned on the concrete content produced in the preceding iteration, ensuring that optimization proceeds incrementally rather than restarting from scratch. Harness Optimization. Our central insight is that LLMs excel at extracting and summarizing information, but are comparatively weaker at generating effective search queries across heterogeneous retrieval sources and at organizing coherent outlines. In this paper, we therefore focus on harness-based optimization for search query generation, leaving outline organization to future work. Concretely, we develop a harness that optimizes the (outline) critic agent, whose responsibility is to formulate effective search queries and retrieve high-quality information from web-scale sources. As illustrated in Figure 3, we further repurpose the generator agent as a score agent that analyzes the returned search results and provides feedback signals to guide the criticâs query refinement. In practice, since the search queries are organized under a set of blueprints, evaluating individual results in isolation is insufficient. We therefore design several criteriaânamely completeness, diversity, search coverage, and internal correlationâand apply them to each search result, aggregating the per-result scores into statistics and distributions over the entire result set. These aggregated signals provide the critic with a holistic view of retrieval quality, enabling more targeted query refinement in subsequent rounds. The detailed prompt used by the score agent is provided in the Appendix B.2. A particularly noteworthy emergent behavior arises during harness optimization: prompted only by a minimal cueââyou are allowed to store and retrieve traces to evolveââthe coding agent (i.e., the Claude-Code agent) autonomously builds a policy bank that records and reuses relevant historical traces, including critic states, generator states, and the aforementioned criterion scores, to guide subsequent optimization. Formally, the likelihood of samplingĎ can be formulated as follows: p(Ď) = Tâ1 â t=0 Îź r m t | q, s g t , s c t , M t | z (1) Retrieve from policy bank Ď c a c t | q, s g t , s c t , m t |z (2) Critic agent policy Îź w M t+1 |¡ |z (3) Update policy bank I s c t+1 = a c t P c s g t+1 | q, s g t , a c t | z (4) Environment dynamic of critic agent (3) Here, m t denote the trace(s) sampled at steptfrom the policy bank M t . The retrieval process is formulated as m t âźÎź r ¡ | q , s g t , s c t , M t , whereÎź r denotes the retrieval function. In practice,Îź r is instantiated as a simple BM25-based retriever (Robertson & Zaragoza, 2009), which is autonomously implemented by the Claude-Code agent during harness optimization. After each step, the newly produced trace is written back into the policy bank, yielding the updated bank M t+1 âźÎź w ¡|q, s g t , s c t , m t , a c t , M t , whereÎź w is a lightweight writing function. Together,Îź r andÎź w constitute a simple yet effective read-write interface 7 Report PDFFiles Markdown Files Render Agent Information Extractor Data&Assets raw.md, figure.json, table.json, assets/ Plugin-Te m p l a t e s Web Composer HTML-Rendering Unit Generate HTML Web Pages Slides-Rendering Unit OrganizeReportintoSlides Plugin-Styles "style": "opening": "Title hand-lettered inside a ribbon-banner ..." "content": "Slide title hand-lettered in a paper-tag at TOP LEFT..." "ending": "Key takeaways as labeled sticky-note rectangles ...â, "prompt": Yo u a r e a p r o f e s s i o n a l a c a d e m i c p o s t e r f r o n t-end design assistant... 1.Follow the information architecture and visual style ... 2.Insert figures/tables into the page usingrel_pathcorrectly; "template":<html><head><style>... /* Text Content */ .content-text font-size: 1rem; line... .highlight-box background: ...; /* Inline citations */... ...</style></head></html> "content": Document Summarysummaryassets_section -id: Slide identifier -title: A concise title suitable for this slide -content: The main text for this slide. This is the MOST IMPORTANT field. Requirements:... Content Planner Slide Generator Poster OR PDF Files AND JPG Files ... ... ... Figure 4: Overview of the render agent in AgentDisCo. Our render agent accepts as input a report in either PDF or Markdown format. It first extracts the salient features and structural elements from the report, and then reorganizes the content into one of two presentation modalities: an HTML-based layout or a slide-style layout. Notably, both modalities support pluggable templates and styling components, enabling flexible visual customization. The final output is rendered as a PDF document or a sequence of images, depending on the chosen modality. that enables the policy bank to evolve continuously throughout the optimization process. 2.4 Writer Agent As introduced in Section 2.3, the document bank effectively filters out irrelevant content, thereby alleviat- ing the burden on the modelâs attentional capacity. Since the generated outline is inherently structured, it is straightforward to partition the outline together with its associated references into a sequence of self-contained chunks, following the strategy of Li et al. (2025). This decomposition reduces the complex task of long-context writing into a series of manageable, attention-focused subtasks, each operating on only the relevant evidence. Because each document has already been assigned a unique index within the outline, the relevant evidence for any given section can be retrieved directly from the document bank. The composition of each section is therefore not a single monolithic action, but rather a deliberate intra-sectional reasoning cycle: at each step, the writer conditions on the previously generated chunks and continues the narrative in a coherent, context-aware manner. This internal monologue is critical for moving beyond shallow summarization toward genuine synthesis across evidence. Finally, the system outputs a Markdown-formatted report in which every cited reference is accompanied by its correspond- ing URL, ensuring full source traceability. Notably, the writer agent is additionally conditioned on the response style produced by the planner agent (Section 2.2), ensuring that the generated report remains coherent with the input query and faithfully aligned with the userâs intent. As discussed in Section 2.3, our key premise is that extracting and summarizing information does not constitute the primary bottleneck for LLMs, in contrast to the more challenging task of generating effective search queries across heterogeneous retrieval sources. Accordingly, this paper focuses on harness-based optimization for search query generation, leaving the optimization of the writer agent to future work. 8 Critic State Justification Planner DocumentBank "query": "From 2020 to 2050, how many elderly people will there be in Japan? What is their consumption potential across various aspects such as clothing, food, housing, and transportation? " "intent": "Deep Exploration", "response style": "The opening section provides a 2â3 sentence overview of Japanâs ... The response structure includes: 1... Rating = 0.0 "justification": The current outline is completely empty, which results in ... To meet the user's requirements, the outline needs ... "blueprints": ["content": "Demographic Projection of Japan's Elderly Population (2020â2050)...", "search query": [ "Japan population projections 65 and older 2020-2050", "IPSS Japan elderly population statistics 2023 report",], "content": "Consumption Potential in Food ...", "search query": ["Japan elderly food consumption trends 2024", "Japanese silver economy apparel market analysis",],...] "search_result_turn_0": "id": "turn_0_27", "search from": "google_text", "content": "The Japan functional food for elderly market size reached USD 100.1 Million in 2025....", "title": "Japan Functional Food for Elderly Market Forecast 2034", "url": "https://w.imarcgroup.com/", "detail": "Title: Japan Functional Food for Elderly Market Generator State Chapter 1 Core Projections: 1.1 Demographic Growth 1.2 Transformation of Consumption ...... Chapter 2 Comprehensive Demographic Mapping: 2.1 Decadal Population Projections 2.1.1 Medium-Term Expansion 2.1.2 Long-Term Stabilization... "id": "turn_0_1" "search_from":x "search_note", "content": "...", "title": "..." "url": "https://...", " evidence": "...", "id": "turn_0_1" "search_from": x "search_note", "content": "...", "title": "..." "url": "https://...", " evidence": "..." "outline_chunk_0": "content": "Strategic Market Analysis of Japanâs Aging Population and Consumption Potential (2020â2050) ... "references": ["id" :"turn_0_1",x "id" :"turn_0_2",x] "Japan is undergoing a historic demographic transformation, serving as a global benchmark for the burgeoning \"silver economy.\" # Strategic Market Analysis of Japanâs Aging Population and Consumption Potential (2020â2050) ## Chapter 1 Core Projections: Initial outline:" " "justification": "The current outline is exceptional, demonstrating high professional standards across all dimensions. Strengths:1. Instruction Following & Coverage: It perfectly addresses... 2. Content Depth: It moves beyond generic descriptions to... â â Justification ďĽ Search Queries Blueprints "outline_turn_0": "web-search results": Search & Parse â Outline Blueprints Search Results ďĽ ďĽ Outline Extracted Reference Critic State Justification Rating = 9.7 Search Queries Blueprints Search & Parse â Outline ďĽ Writer divide_into_chunks get_docs_with_ref merge_chunks "report": Critic Generator ďĽ ďĽ Report Render Slides- Rendering Unit HTML- Rendering Unit Rating Figure 5: A showcase of AgentDisCo. The figure illustrates the end-to-end processing pipeline of an input query: starting from the planner agent, proceeding through the iterative optimization loop between the (outline) critic agent and the (outline) generator agent, and finally passing to the writer agent and the render agent. 2.5 Render Agent Considering that a clear, intuitive, and visually engaging interface is essential for bridging the gap between raw research outputs and end-user consumption, we develop a render agent that transforms structured research reports into visually rich presentationsâranging from RedNote-style posters to slide decks and HTML pagesâthereby allowing users to readily digest, share, and act upon the generated content. Existing open-source render agents (Sun et al., 2025; Zhang et al., 2025a; Ma et al., 2025; Pang et al., 2025; Yan et al., 2026) rely heavily on complex, tightly coupled pipelines that target a single output modality, making it difficult to accommodate heterogeneous user preferences over presentation forms. Moreover, their intricate iterative design and rigid workflow orchestration limit the extensibility of packaging multimodal pipelines as reusable tools or skills, while incurring additional deployment and debugging overhead. In contrast, we present a clean and flexible render agent that generalizes across diverse rendering tasks within a unified framework. As depicted in Figure 4, our render agent incorporates an information extractor to extract key information points from the report. To enhance its performance, we also feed the blueprints and response style into the information extractor as auxiliary inputs. To ensure flexibility in use, we construct a webpage template setT w and a slide template setT s . Given an input document, the information extractor first produces structured multimodal assets conditioned on eitherT w orT s . We then apply Gemini-2.5-Pro (DeepMind, 2025a) as the web composer to generate webpages in HTML format, or Gemini-3-Pro-Image (DeepMind, 2026b) as the slide generator to produce multiple images for constructing posters or slides. In addition, we provide an option to generate Rednote-style posters, in which the textual content is produced by Gemini-2.5-Pro (DeepMind, 2025a) acting as the content planner. We present multiple showcases of our rendered posters in the Appendix C.1, along with interactive demos. 9 GALA "topic": "Home & Hobbies", "query": "ććłä¸şĺŽ˘ĺ ćé ä¸ä¸Şčéçé 话âťďźçŽĺĺ¨čč䝼ä¸ĺ 个 ćšĺďź ďź1ďźçŽč䚌ć+ćäşşć˛ĺ+č˝ĺ°çŻçťĺ ďź2ďźé ĺ˘äšŚćś+ĺäşş ć˛ĺ+čĺłćé ďź3ďźç˝ŽçŠćś+č˝ĺ°éŁçŞĺŤ+ĺ°čžšĺ ćšćĄ 诡帎ćčŻäź°ďź ďź1ďźĺŞä¸ŞćšćĄçĺ¨çŠçŠşé´ĺŠç¨çćéŤďźä¸ĺ¨ĺ°çŠşé´ĺ ä¸äźćžĺžćĽć¤ďź ďź2ďźĺ¨ä¸ĺ˝ąĺéĺ çĺćä¸ďźĺŞç§ćšćĄççŻĺ é 罎ćéĺâťćśé´é čŻťďź ďź3ďźçĺŽç¨ćˇčŻäťˇä¸ďźĺŞç§çťĺçčé庌ĺčç¨ć§ć´ĺĽ˝ďź ďź4ďźččĺ°ĺçťçť´ć¤ĺ㏠ć´çäžżĺŠć§ďźĺŞä¸ŞćšćĄć´äźďź ďź5ďźĺ¨ä¸ ĺé˘çŽčĺ´ĺ ďź3000-5000ĺ ďźďźĺŞç§ćšćĄć§äťˇćŻćéŤďź 诡注ćďź - é 话âťä¸ťčŚç¨äşçĄĺćžćžĺé 话ďźé˘ç§ŻçşŚ3ĺšłçąłă - ĺ弽çŽć´ă 渊錨çâťć źă - ĺ¸ććšćĄĺ ĺŤĺşçĄççŻĺ ĺĺ¨çŠĺč˝ă ćçťčݎçťĺş ä¸ä¸Şćć¨čçćšćĄďźĺšśćäžć ¸ĺżĺĺçéč´ĺťşčŽŽă" DeepResearchBench DeepResearchGym DeepConsult GALA (Ours) "topic": "Science & Technology", "query": "诡ćťçťç˘łé˘ĺ¸¸ç¨çźčĺç§çąťďźĺšśĺććŻç§çźčĺćŻĺ ˇćććź ć´ťć§čżćŻçş˘ĺ¤ć´ťć§ă注ćĺŚććŻĺ¤ĺçźčĺéčŚĺĺŤĺćĺćťçťă" "topic": "Health", "query": "how can the concept of happiness impact biological factors and health across different cultures?" "topic": "Finance & Business", "query": "Analyze how Robinhood generates revenue, and how it's product lineup has evolved since launch. Investigate how they drive revenue growth, adapt their offerings to meet market demands, and navigate a changing financial landscape." "topic": "Travel", "query": "ä¸ćľˇĺşĺ2夊1ĺ¤ĺ Źĺ¸ĺ˘ĺťşćˇąĺşŚćšćĄďźĺŽĺäşä¸čĺvs čŤĺš˛ĺąą ćŁŽçłťçćďźĺŚä˝čŽžčŽĄâ轝ćĺą+é礞交âčĄç¨äťĽĺšłčĄĄéŤĺąäźčŽŽéćąä¸00ĺ ĺ塼çä˝éŞćďźĺšśćäžäşşĺ800ĺ é˘çŽçĺ ˇä˝é 罎襨ă" "topic": "Education & Jobs", "query": "ä¸ćľˇĺą ä˝čŻç§Żĺ来120ĺćĺŞäşéŤć§äťˇćŻčˇŻĺžďźé寚30-40ĺ˛ă ćĺŠĺĺ ĽĺŚéćąçčĺşäşşďźĺŻšćŻĺććäşşĺŚĺăä¸çş§čç§°ĺ礞äżçź´ çşłĺć°ĺ¨ç§Żĺčˇĺä¸çćśé´ććŹä¸âťéŠă" Figure 6: Comparison between our proposed GALA benchmark with existing benchmarks DeepRe- searchBench, DeepResearchGym, DeepConsult. . 2.6 A Running Example To illustrate the end-to-end workflow of AgentDisCo, we present a real execution trace in Figure 5 for the example query: âFrom 2020 to 2050, how many elderly people will there be in Japan, and what is their consumption potential across various aspects such as clothing, food, housing, and transportation?â. First, the planner agent generates a response style based on the input query, which is then passed, together with the query, into the optimization loop between the outline critic agent and the outline generator agent. At round 0, the critic agent observes an empty outline and assigns a rating of 0. At round 1, the critic agent evaluates the draft and identifies that the housing section is underdeveloped. Accordingly, it emits an updated set of blueprints with refined search queries specifically targeting elderly housing consumption. The generator then revises the outline in response, while the document bank preserves the valid citations accumulated from turn 0, ensuring incremental knowledge accumulation across turns. This trace illustrates how the outline critic and generator agents co-evolve through the exchange of blueprints, rather than one dominating the other. Finally, the outline that receives the highest score is forwarded to the downstream agents: the writer agent composes the report by sequentially elaborating each section of the outline, drawing on the associated references retrieved from the document bank, and the render agent subsequently transforms the report into the desired presentation format. 3 GALA: A Benchmark for General AI Life Assistants 3.1 Data Collection and Synthesis on Deep Research Queries Early deep research agents primarily focused on isolated tasks such as question answering and translation, and later advanced through tool integration to enable autonomous information retrieval and synthesis. To evaluate such systems, a variety of deep research benchmarks (Consult, 2025; Coelho et al., 2025; Du et al., 2025) have been developed, with their queries typically sourced from in-house datasets of raw user interactions with web-search-enabled LLM chatbots. However, these collected queries predominantly fall into a narrow set of categories, such as scientific reports or consulting-style solutions, and thus fail to reflect the diversity of real-world information needs. In contrast, Rednote has emerged as a popular search platform for daily-life information needs, covering a broad spectrum of topics ranging from travel and lifestyle to consumption and entertainment. Leveraging the massive user-interaction and content data on the Rednote platform, we collect the top 10,000 highly active users together with their historical interactionsâincluding clicks, comments, and browsing recordsâto mine their latent deep research needs. For example, as shown in Figure 2, if a user repeatedly browses or comments on notes related to âHong Kong Disneyland Duffy and Friends Springtime Festivalâ, we synthesize a corresponding deep research query that captures the userâs underlying intent, such as âDuring the âDuffy and Friendsâ Springtime limited-edition event at Hong Kong Disneyland in March 2026, how can one plan a counter- clockwise touring route to avoid crowds, and obtain the latest question bank and practical procedures for the staff survey gifts?â Concretely, we employ a strong LLM (i.e., Gemini-3-Flash (DeepMind, 2025b)) to 10 extract latent deep research interests from user interactions and reformulate them into well-structured deep research queries. Detailed prompts are provided in Appendix A.1. To ensure rigor and high quality, we further apply an inspection pipeline that distills 100 high-quality queries from an initial pool of 260,000 generated candidates. The pipeline combines automated LLM- based screening with human verification, together with an optional difficulty-expansion step in between. Specifically, we form a review committee powered by Gemini-3-Pro (DeepMind, 2026a) to automatically evaluate each query along the following criteria: (i) naturalness and clarity: whether the query is fluent, unambiguous, and faithfully reflects a plausible user intent; (i) indispensability of Rednote-specific knowledge: whether answering the query genuinely relies on Rednoteâs user-generated content or community insights, rather than being trivially solvable via generic web search, while ensuring that no user privacy is compromised; (i) real-world plausibility: whether the query type aligns with realistic information-seeking behaviors observed in daily life, rather than representing a contrived or synthetic use case. Queries that pass this automatic review are then forwarded to human annotators for final verification, ensuring that the resulting benchmark is both authentic and challenging. 3.2 Statistics and Comparisons with Existing Benchmarks Our GALA benchmark consists of 100 carefully curated deep research queries. Following the taxonomy proposed in DeepResearchBench (Du et al., 2025), each query is categorized into one of the following 22 topics: âFinance & Businessâ, âScience & Technologyâ, âSoftware Developmentâ, âEduction & Jobâ, âHealthâ, âLiteratureâ, âHistoryâ, âHardwareâ, âIndustrialâ, âArt & Designâ, âGamesâ, âCrime & Lawâ, âEntertainmentâ, âSports & Fitnessâ, âSoftwareâ, âTransportationâ, âReligionâ, âHome & Hobbiesâ, âTravelâ, âFood & Diningâ, âFashion & Beautyâ, âSocial Lifeâ. We adopt Gemini-3-Pro (DeepMind, 2026a) as the query classifier; the detailed prompts are provided in Appendix A.2. The comparison reveals a clear divergence in topical focus across benchmarks. Existing benchmarks are heavily skewed toward professional and technical domains: DeepResearchBench (Du et al., 2025) is dominated by âScience & Technologyâ (26.8%), âFinance & Businessâ (17.0%), and âEducation & Jobsâ (10.0%); DeepConsult (Consult, 2025) is overwhelmingly concentrated in âFinance & Businessâ (85.3%), followed by âScience & Technologyâ (7.8%); and DeepResearchGym (Coelho et al., 2025) is led by âFinance & Businessâ (20.0%), âScience & Technologyâ (15.0%), âHistoryâ (14.0%), âSocial Lifeâ (13.0%), and âHealthâ (11.0%). In contrast, GALA exhibits a markedly different distribution centered on everyday-life domains, with âHome & Hobbiesâ (25.0%), âTravelâ (18.0%), âFashion & Beautyâ (18.0%), and âEducation & Jobsâ (12.0%) as its dominant categories. This contrast highlights GALAâs unique role in complementing existing benchmarks: rather than re-emphasizing professional research scenarios, GALA targets authentic, daily-life information needs that have been largely underrepresented in prior evaluations. For clarity, Figure 6 illustrates the top six taxonomic categories of GALA along with their corresponding distributions across DeepResearchBench, DeepConsult, and DeepResearchGym. As can be observed, the proposed GALA serves as a critical complement to existing benchmarks, offering essential coverage for the âHome & Hobbiesâ, âTravelâ, and âFashion & Beautyâ domains that are notably underrepresented in the aforementioned datasets. 3.3 Evaluation Protocols One prevailing challenge in evaluating open-ended deep research reports is the absence of an exact ground truth for each query. To address this, we adopt the RACE metric proposed in DeepResearch Bench (Du et al., 2025). The evaluation proceeds in two stages: (i) dynamic dimension weight allocation: An LLM (i.e., Gemini-3-Flash (DeepMind, 2025b) in practice), acting as a meta-evaluator, analyzes the input query to determine the relative importance of four evaluation dimensions: Comprehensiveness, Insight, Instruction-Following, and Readability. (i) reference-based pair-wise scoring: A separate LLM (i.e., Gemini-3-Flash (DeepMind, 2025b) in practice) then scores the target report against criteria derived for each dimension. The final score is computed as a weighted summation over the per-dimension scores. Since RACE evaluation requires a reference report to produce pairwise scores, we releaseâalongside the open-sourced queriesâreports generated by our AgentDisCo to serve as the corresponding reference reports. We do not adopt the FACT metric, which is also developed in DeepResearch Bench (Du et al., 2025). FACT verifies the factual accuracy of references by fetching their corresponding web content; however, as time passes, many referenced web pages become inaccessible (e.g., returning 404 errors), making the metric unreliable for reproducible evaluation. 11 Table 1: Performance of agents on DeepResearch Bench in terms of comprehensiveness (Comp.), insight, instruction-following (Inst.), readability (Read.), effective citations (Eff. c.), and citation accuracy (C. acc.). The best results are highlighted with purple color, and the second-best results are highlighted with underlines. RACEFACT Agent systemsOverallComp.InsightInst.Read.Eff. c.C. acc. Langchain-Open-Deep-Research43.4442.9739.1748.0945.22-- Doubao-Research44.3444.8440.5647.9544.6952.6252.86 Kimi-Research44.6444.9641.9747.1445.59-- Claude-Research45.0045.3442.7947.5844.66-- Openai-Deepresearch46.4546.4643.7349.3947.2239.7975.01 Gemini-2.5-Pro-Deepresearch49.7149.5149.4550.1250.00 165.3478.30 AgentDisCo (Gemini-2.5-Pro)51.4451.2352.4951.5750.3963.9489.06 AgentDisCo w/ Harness (Gemini-2.5-Pro)52.11 51.8953.4351.8750.4569.6589.55 AgentDisCo (Claude-Opus-4.6)54.0253.3856.6553.1151.5389.8893.56 4 Experiments 4.1 Setups Benchmarks. We evaluate AgentDisCo on three publicly available benchmarks, together with our proposed GALA benchmark, as detailed below. â˘DeepResearch Bench (Du et al., 2025) comprises 100 PhD-level complex research tasks meticulously formulated by domain experts across 22 distinct fields, including Science & Technology, Finance & Business, Software Engineering, and Art & Design. ⢠DeepConsult (Consult, 2025) is a specialized collection of prompts tailored for in-depth research within the business and consulting domains. Its queries span a wide range of topics, such as marketing strategy, financial analysis, emerging technology trends, and business planning. â˘DeepResearchGym (Coelho et al., 2025) is used to assess performance on real-world, complex queries. It contains 100 queries sampled from the large-scale Researchy Questions dataset (Rosset et al., 2024), which comprises approximately 96,000 authentic information-seeking queries. ⢠GALA is a deep research benchmark for general AI life assistants, introduced in Section 3. Metrics. We adopt the official evaluation metrics and recommended judge LLMs for each benchmark. â˘DeepResearch Bench (Du et al., 2025) employs two suites of metrics to evaluate different aspects of the systemâs output: (i) RACE (Report Quality) assesses the quality of the generated report against a reference report along four dimensionsâComprehensiveness (Comp.), Insight/Depth (Insight), Instruction-Following (Inst.), and Readability (Read.)âwith an overall score computed as a weighted sum of these components. (i) FACT (Web Retrieval via Google Search) measures the effectiveness and reliability of the information retrieval process, including Citation Accuracy (C. Acc.) and the Average Effective Citations per Task (Eff. c.). Following the benchmarkâs protocol against Gemini-2.5- Pro-DeepResearch, we adopt Gemini-2.5-Pro (DeepMind, 2025a) as the judge model. ⢠DeepConsult (Consult, 2025) evaluates performance via pairwise comparison against the OpenAI- DeepResearch baseline. The primary metrics are win rate, tie rate, and loss rate, supplemented by an average quality score. The judge model is GPT-4.1-20250414 (OpenAI, 2025c). â˘DeepResearchGym (Coelho et al., 2025) employs an LLM judge to assess the generated report along several quality dimensions, including clarity, insightfulness, depth, balance, breadth, and support, as well as an overall average quality score. The judge model is GPT-4.1-mini-20250414 (OpenAI, 2025b). â˘GALA evaluates report quality using the RACE metric with Gemini-3-Flash (DeepMind, 2025b) as the judge model. Compared Systems. We benchmark our AgentDisCo system against a suite of leading deep research agents available on the market: LangChain-Open-Deep-Research (LangChain, Inc., 2023), Doubao- Research (Research, 2026a), Kimi-Research (Research, 2025b), Claude-Research (anthropic, 2025), OpenAI-DeepResearch (OpenAI, 2025a), and Gemini-2.5-Pro-DeepResearch (Research, 2025a). Their results on the three public benchmarks are taken directly from Li et al. (2025); Han et al. (2025). For the GALA benchmark, to construct competitive baselines, our human annotation team manually collected reports from the official web interfaces of Doubao-Research (Research, 2026a) and Qwen- Research (Research, 2026c), as well as outputs from OpenAI o3-DeepResearch (Research, 2026b) obtained via its API, with all data acquired in April 2026. In our evaluations, AgentDisCo, instantiated with 12 Table 2: Performance of agents on DeepConsult in terms of win rate and average scores and on DeepRe- searchGym in terms of clarity (Cla.), depth, balance (Bal.), breadth (Brea.), support (Sup.), and insightful- ness (Ins.). The best results are highlighted with purple color, and the second-best results are highlighted with underlines. DeepConsultDeepResearchGym Agent systemsWinTieLoseOverallCla.DepthBal.Brea.Sup.Ins.Overall Doubao-research29.9540.3529.705.4268.8593.1283.9693.3384.3883.1284.46 Claude-research25.0038.8936.114.6086.6796.8884.4196.5626.7790.2280.25 Openai-deepresearch0.00100.000.005.0084.9098.1089.8097.4088.4089.0091.27 Gemini-2.5-pro-deepresearch61.2731.137.606.7090.7199.9093.3799.6995.0097.4596.02 AgentDisCo (Gemini-2.5-Pro)53.2637.509.236.7590.50100.0093.75100.0096.2593.7595.63 AgentDisCo w/ Harness (Gemini-2.5-Pro)56.8632.4710.676.86 90.98100.0094.30100.0097.7395.2296.21 AgentDisCo (Claude Opus 4.6)65.8822.4711.657.0690.85100.0097.85100.0098.9398.6697.54 Gemini-2.5-Pro, serves as the reference system. To analyze the effect of retrieval-source selection, we further introduce two variants. AgentDisCo w/ Rednote replaces the default retrieval component with the Rednote Search Engine, enabling the agent to retrieve information from Rednote-specific content. In addition, AgentDisCo w/ Rednote & Google performs joint retrieval over both the Rednote Search Engine and Google Search Engine, allowing us to examine whether combining social-media-oriented and general web search sources can provide complementary evidence for report generation. 4.2 Main Results Results on DeepResearch Bench. As shown in Table 1, AgentDisCo consistently outperforms existing deep-research agent systems on DeepResearch Bench. When using Gemini-2.5-Pro as the backbone model, AgentDisCo achieves an overall RACE score of 51.44, surpassing the prior system based on Gemini-2.5-Pro, i.e., Gemini-2.5-Pro-Deepresearch. The improvement is particularly pronounced in insight, comprehensiveness, and instruction following, where AgentDisCo obtains 52.49, 51.23, 51.57, respectively, compared with 49.45, 49.51, 50.12 from Gemini-2.5-Pro-Deepresearch. In contrast, the gain in readability is relatively moderate, suggesting that the advantage of AgentDisCo does not mainly come from more fluent surface-level writing, but rather from producing more substantive, better-supported, and better-structured research content. This improvement can be attributed to the disentangled yet collaborative design between the critic agent and the generator agent in our AgentDisCo framework. The critic agent iteratively evaluates the intermediate report, identifies missing aspects, weak arguments, and insufficient evidence, and then provides targeted feedback to guide subsequent generation. Meanwhile, the generator agent incorporates this feedback to expand the research scope, refine the argument structure, and strengthen evidence grounding. Such an iterative criticâgenerator collaboration naturally improves comprehensiveness and insight, as the system is encouraged to go beyond a single-pass synthesis and progressively discover under-explored perspectives. Moreover, although AgentDisCo does not produce the largest number of effective citations, it achieves substantially higher citation accuracy. Specifically, AgentDisCo with Gemini-2.5-Pro obtains a citation accuracy of 89.06, improving over Gemini-2.5-Pro- Deepresearch by over 10 points. This indicates that AgentDisCo favors reliable and relevant evidence usage rather than simply increasing the citation count. We further evaluate the effect of the harness optimization. AgentDisCo w/ Harness improves the Gemini- 2.5-Pro-based AgentDisCo from 51.44 to 52.11 in overall RACE score, with consistent gains across all RACE dimensions, including comprehensiveness, insight, instruction-following, and readability. It also improves factual grounding, increasing effective citations from 63.94 to 69.65 and citation accuracy from 89.06 to 89.55. These results demonstrate that the harness optimization provides a stable additional benefit by better coordinating the interaction process and improving the reliability of evidence integration. Finally, we instantiate AgentDisCo with a stronger frontier backbone model, Claude-Opus-4.6 (anthropic, 2026), to examine the scalability of our framework. AgentDisCo with Claude-Opus-4.6 achieves the best overall performance, reaching 54.02 on RACE. Notably, it obtains a substantial insight score of 56.65, far exceeding all other systems, which suggests that AgentDisCo can effectively leverage stronger reasoning capabilities from advanced LLMs. It also achieves the highest citation accuracy of 93.56, showing that the framework remains highly reliable when scaled to a more capable base model. Overall, these results indicate that AgentDisCo is both effective and scalable: its disentangled yet collaborative critic-generator mechanism improves research depth, evidence reliability, and report quality across different backbone models. Results on DeepConsult and DeepResearchGym. To examine whether AgentDisCo generalizes beyond our main evaluation setting, we further evaluate it on DeepConsult and DeepResearchGym, as reported in Table 2. Overall, AgentDisCo exhibits strong and robust performance across both benchmarks. With Gemini-2.5-Pro as the backbone, AgentDisCo achieves an overall score of 6.75 on DeepConsult, slightly 13 Table 3: Performance of agents on our proposed GALA benchmark in terms of comprehensiveness (Comp.), insight, instruction-following (Inst.), and readability (Read.). The best results are highlighted in purple, and the second-best results are underlined. RACE Agent systemsOverallComp.InsightInst.Read. Doubao-Research (2026-04)49.8250.8747.4250.6550.86 Qwen-Research (2026-04)46.6945.3845.3647.2349.56 OpenAI o3-DeepResearch (2026-04)45.8845.3742.8848.0447.72 AgentDisCo (Gemini-2.5-Pro)50.0050.0050.0050.0050.00 AgentDisCo w/ Harness (Gemini-2.5-Pro)50.5850.4151.2450.1649.85 AgentDisCo w/ Rednote (Gemini-2.5-Pro)51.0250.8851.1151.2550.95 AgentDisCo w/ Rednote & Harness (Gemini-2.5-Pro)51.9051.6153.4451.7850.67 AgentDisCo w/ Rednote & Google (Gemini-2.5-Pro)50.9551.2150.4450.7849.79 surpassing the Gemini-2.5-Pro-deepresearch baseline in average score. On DeepResearchGym, it obtains nearly perfect scores in both Depth and Breadth, indicating that the proposed iterative research procedure is effective in expanding both the depth and coverage of the generated reports. As analyzed in the previous subsection, we further evaluate the effect of the harness optimization. Com- pared with the vanilla Gemini-based AgentDisCo, AgentDisCo w/ Harness improves the DeepConsult win rate from 53.26% to 56.86% and the overall score from 6.75 to 6.86. On DeepResearchGym, the harness also raises the overall score from 95.63 to 96.21, yielding improvements in clarity, balance, support, and insightfulness while preserving nearly perfect scores in Depth and Breadth. These results suggest that the harness optimization does not merely increase coverage but also improves the reliability and control- lability of the agent execution process, allowing the planned research workflow to be more effectively translated into high-quality final reports. Moreover, we instantiate AgentDisCo with a stronger frontier backbone model, Claude-Opus-4.6 (anthropic, 2026), to examine the scalability of our framework. This variant achieves the best performance on both benchmarks: it obtains the highest DeepConsult win rate of 65.88% and the best overall score of 7.06, and also achieves the highest DeepResearchGym overall score of 97.54. In particular, it ranks first in Balance, Support, and Insightfulness, while maintaining perfect scores in Depth and Breadth. These results indicate that AgentDisCo can effectively leverage stronger underlying models, suggesting that the proposed framework scales favorably with frontier model capability. Taken together, the results provide evidence for the effectiveness of AgentDisCoâs core design. The consistently high Depth and Breadth scores reflect the benefit of the plannerâs iterative research cycle, which enables the system to progressively expand and refine the information space beyond static one-shot planning. Results on GALA. Beyond existing benchmarks, we further construct a lifestyle-oriented deep re- search benchmark, GALA, as introduced in Section 3. Table 3 reports the evaluation results in terms of comprehensiveness, insight, instruction-following, and readability. In this reference-based evaluation, AgentDisCo, instantiated with Gemini-2.5-Pro, serves as the reference system and is therefore assigned a score of 50.00 across all dimensions. Notably, mainstream deep research systems, including Doubao- Research, Qwen-Research, and OpenAI o3-DeepResearch, obtain lower overall scores than this reference. This result highlights the advantage of the AgentDisCo framework itself: rather than relying solely on the capability of a strong backbone model, AgentDisCo benefits from its structured workflow that com- bines iterative planning, targeted evidence acquisition, and hierarchical synthesis, which is particularly important for lifestyle-oriented research tasks requiring practical relevance, contextual understanding, and user-aligned recommendations. We next examine the effect of harness optimization. AgentDisCo w/ Harness improves the overall score from 50.00 to 50.58, with the most evident gain appearing in insight. This suggests that the harness helps stabilize the execution of the multi-step research workflow and enables the agent to produce more informative and analytically useful responses. We then study the impact of retrieval-source selection. From the table, we can observe that AgentDisCo w/ Rednote achieves a higher overall score of 51.02 and obtains the best readability score among all systems. This indicates that Rednote provides domain-relevant lifestyle content that aligns well with the information needs in GALA, leading to responses that are more natural and accessible for lifestyle- oriented scenarios. Combining domain-specific retrieval with harness optimization yields the strongest performance. AgentDisCo w/ Rednote & Harness achieves the best overall score of 51.90 and ranks first in comprehensiveness, insight, and instruction-following. In particular, its insight score reaches 53.44, showing that lifestyle-oriented social content, when integrated through a more reliable execution harness, can substantially improve the practical and contextual value of the generated reports. This demonstrates that the gains from Rednote are further amplified when the agentâs research process is better controlled and more consistently executed. 14 4.3 Analysis Statistics of Outline Optimizations. One of the core ideas of AgentDisCo is its disentangled yet col- laborative framework, in which different agents are assigned specialized roles and interact through an iterative optimization process. To directly assess whether this design improves the quality of the generated outline, we evaluate the effect of our outline optimization module in isolation. Since the optimization process is initiated by the critic agents after an initial outline has been produced, at least two rounds are required to observe the effect of critic-guided refinement. To isolate and quantify the contribution of outline optimization, we conduct an ablation study on the end-to-end benchmarks, as reported in Figures 7 and 8. Specifically, we collect samples from DeepResearch Bench and DeepRe- searchGym and apply up to three rounds of outline optimization, while keeping the subsequent writing strategy unchanged across all settings. This design ensures that performance differences can be primarily attributed to the quality of the optimized outlines rather than variations in the writing process. The benefits of iterative refinement are consistent across both benchmarks. On DeepResearch Bench, the overall score increases steadily as the number of optimization rounds grows, with particularly notable improvements in comprehensiveness and insight. This supports our hypothesis that each optimization round enables the planner to construct a more detailed, coherent, and logically organized outline. A similar trend is observed on DeepResearchGym, where later optimization rounds achieve substantially stronger scores in depth and breadth, indicating more exhaustive coverage of the target topic. Figure 7: End-to-end scores with varying rounds of outline optimization on Deepresearch Bench. Figure 8: End-to-end scores with varying rounds of outline optimization on DeepresearchGym. Consistency between Harness-Based Critic Optimization and End-to-End Performance. To evaluate the effectiveness of the proposed harness, we examine whether improvements measured by the harness are consistent with end-to-end performance gains. In the scoring agent of our harness framework, whose detailed prompts are provided in Appendix B.2, we introduce an intermediate metric, named Search Coverage, ranging from 0 to 100, to quantify the quality and coverage of the generated search queries. A higher Search Coverage score indicates that the queries are more likely to capture the key aspects required for answering the research question. Specifically, we evaluate the Search Coverage scores at optimization rounds 0, 10, and 20, and compare them with the corresponding end-to-end scores on DeepResearch Bench. To reduce evaluation cost while maintaining a representative assessment, we randomly sample 50 examples from DeepResearch Bench as the evaluation pool. As shown in Figure 9, Search Coverage increases from 62.50 at round 0 to 79.25 at round 10 and further to 82.05 at round 20. This trend is accompanied by a consistent improvement in the end-to-end overall score, which increases from 51.41 to 51.82 and then to 52.11. These results indicate that the harness-based optimization signal is well aligned with downstream benchmark performance. In particular, improving the coverage and quality of search queries leads to more effective evidence acquisition, which in turn contributes to better final reports. Therefore, the proposed harness provides a meaningful and practical intermediate optimization objective for improving end-to-end deep research performance. Superiority of Rednote Search over Life-style Search Queries. To better understand the role of retrieval sources in lifestyle-oriented deep research, we further compare Rednote Search with general web search. Although both sources can be queried with lifestyle-related search queries, they differ substantially in content style and information structure: Google Search primarily retrieves general web pages, while Rednote Search provides user-generated, experience-oriented, and scenario-specific content that is often more aligned with daily-life decision making. This raises an important question: whether the improvement comes merely from using lifestyle-style queries, or from the domain-specific characteristics of Rednote as a retrieval source. 15 Figure 9: Consistency of harness optimization over critic agent to end-to-end optimization with varying rounds of harness optimization on Deepresearch Bench. Besides the results reported in Section 4.2, we further evaluate joint retrieval over Rednote and Google and report the results in Table 3. AgentDisCo w/ Rednote & Google obtains an overall score of 50.95, which is substantially higher than using the default Google-based retrieval alone, but slightly lower than using Rednote alone. Notably, joint retrieval achieves the second-best comprehensiveness score of 51.21, indicating that Google can complement Rednote by broadening factual and topical coverage. However, this broader coverage does not translate into better overall performance: compared with AgentDisCo w/ Rednote, the joint-retrieval variant shows lower scores in insight, instruction-following, and readability. This suggests that general web search may introduce less lifestyle-specific or less user-oriented evidence, increasing the burden of evidence filtering and synthesis. Overall, these findings indicate that the advantage of Rednote does not simply come from issuing lifestyle-related queries, but from the nature of the retrieved content itself. Rednote contributes domain-specific, experience-rich, and practically grounded evidence, which is particularly valuable for GALA-style tasks. Meanwhile, adding Google can improve coverage, but without effective filtering and synthesis, increased retrieval breadth may introduce noise and reduce readability. Therefore, for lifestyle-oriented deep research, domain-relevant retrieval quality is more important than retrieval breadth alone. 5 Real-World Applications and Conclusion In this paper, we presented AgentDisCo, a disentangled and collaborative agentic framework for open-ended deep research. By separating information exploration from information exploitation and formulating their interaction as an iterative adversarial optimization process, AgentDisCo enables critic and generator agents to progressively refine search queries and research outlines before final report synthesis. We further introduced a meta-optimization harness that automatically discovers reusable design strategies for improving the critic agent, allowing the framework to enhance its own search and planning behavior with limited human intervention. Extensive experiments on DeepResearchBench, DeepConsult, and DeepResearchGym demonstrate that AgentDisCo achieves competitive or superior performance compared with leading closed-source deep research systems. To better reflect real-world user needs, we also introduced GALA, a lifestyle-oriented deep research benchmark mined from usersâ browsing histories, and showed that AgentDisCo is effective in this more practical setting. Finally, we developed a rendering agent and a product demonstration, âAutoResearch Your Interestâ, to make deep research outputs more accessible and personalized for end users. We release our benchmark, code, demo, and evaluation harness to facilitate future research on open-ended, user-centered deep research agents. 16 References anthropic. Meet claude, 2025. URL https://w.anthropic.com/claude. anthropic. Introducing claude opus 4.6, 2026. URLhttps://w.anthropic.com/news/claude-opus-4-6. Jo Ě ao Coelho, Jingjie Ning, Jingyuan He, Kangrui Mao, Abhijay Paladugu, Pranav Setlur, Jiahe Jin, Jamie Callan, Jo Ě ao Magalh Ě aes, Bruno Martins, et al. Deepresearchgym: A free, transparent, and reproducible evaluation sandbox for deep research. arXiv preprint arXiv:2505.19253, 2025. Deep Consult. Deep consult. 2025. URL https://github.com/Su-Sea/ydc-deep-research-evals. Google DeepMind. Gemini 2.5, 2025a. URLhttps://blog.google/technology/google-deepmind/gemi ni-model-thinking-updates-march-2025/. Google DeepMind. Gemini-3-flash, 2025b. URL https://deepmind.google/models/gemini/flash/. Google DeepMind. Gemini 3 pro, 2026a. URLhttps://aistudio.google.com/models/gemini-3-pro-i mage?utm source=google&utmmedium=cpc&utmcampaign=Cloud-S-DR-AIS-FY26-global-gsem-17135 78&utmcontent=text-ad&utmterm=KWimage%20api&gadsource=1&gadcampaignid=23417416052&gb raid=0AAAAACn9t671c5F9JlZrVf8S8bh39Ky16&gclid=Cj0KCQjw2MbPBhCSARIsAP3jP9wnU46TLFWDeB3AV4 ZZbHsMzkkviWFO03EyKvxaqqB3SlL1wMVSbTEaAi7vEALw wcB. Google DeepMind. Gemini 3 pro image, 2026b. URL https://deepmind.google/models/gemini/pro/. Mingxuan Du, Benfeng Xu, Chiwei Zhu, Xiaorui Wang, and Zhendong Mao. Deepresearch bench: A comprehensive benchmark for deep research agents. arXiv preprint arXiv:2506.11763, 2025. Rujun Han, Yanfei Chen, Zoey CuiZhu, Lesly Miculicich, Guan Sun, Yuanjun Bi, Weiming Wen, Hui Wan, Chunfeng Wen, Sol ` ene Ma Ë Äątre, George Lee, Vishy Tirumalashetty, Emily Xue, Zizhao Zhang, Salem Haykal, Burak Gokturk, Tomas Pfister, and Chen-Yu Lee. Deep researcher with test-time diffusion, 2025. URL https://arxiv.org/abs/2507.16075. LangChain, Inc. LangChain: Building applications with LLMs through composability, 2023. URL https://python.langchain.com/. Yoonho Lee, Roshen Nair, Qizheng Zhang, Kangwook Lee, Omar Khattab, and Chelsea Finn. Meta- harness: End-to-end optimization of model harnesses. arXiv preprint arXiv:2603.28052, 2026. Yu Lei, Shuzheng Si, Wei Wang, Yifei Wu, Gang Chen, Fanchao Qi, and Maosong Sun. Rhinoinsight: Improving deep research through control mechanisms for model behavior and context. arXiv preprint arXiv:2511.18743, 2025. Zijian Li, Xin Guan, Bo Zhang, Shen Huang, Houquan Zhou, Shaopeng Lai, Ming Yan, Yong Jiang, Pengjun Xie, Fei Huang, Jun Zhang, and Jingren Zhou. Webweaver: Structuring web-scale evidence with dynamic outlines for open-ended deep research, 2025. URLhttps://arxiv.org/abs/2509.13312. Qianli Ma, Siyu Wang, Yilin Chen, Yinhao Tang, Yixiang Yang, Chang Guo, Bingjie Gao, Zhening Xing, Yanan Sun, and Zhipeng Zhang. Human-agent collaborative paper-to-page crafting for under $0.1. In arXiv preprint arXiv:2510.19600, 2025. URL https://arxiv.org/abs/2510.19600. OpenAI. Deep research system card, 2025a. URLhttps://cdn.openai.com/deep-research-system-car d.pdf. OpenAI. Gpt-4.1-mini-20250414., 2025b. URL https://openai.com/index/gpt-4-1/. OpenAI. Gpt-4.1-20250414., 2025c. URL https://openai.com/index/gpt-4-1/. Wei Pang, Kevin Qinghong Lin, Xiangru Jian, Xi He, and Philip Torr. Paper2poster: Towards multimodal poster automation from scientific papers. In arXiv preprint arXiv:2505.21497, 2025. URLhttps: //arxiv.org/abs/2505.21497. Doubao Deep Research. Doubao deep research. 2026a. URL https://w.doubao.com/chat/. Gemini Research. Gemini research. 2025a. URL https://gemini.google/overview/deep-research/. Kimi Deep Research. Kimi deep research. 2025b. URL https://w.kimi.com/. O3 Deep Research. O3 deep research. 2026b. URLhttps://developers.openai.com/api/docs/models/ o3-deep-research. 17 Qwen Deep Research. Qwen deep research. 2026c. URLhttps://chat.qwen.ai/?inputFeature=deepr esearch. Stephen Robertson and Hugo Zaragoza. The probabilistic relevance framework: BM25 and beyond, volume 4. Now Publishers Inc, 2009. Corby Rosset, Ho-Lam Chung, Guanghui Qin, Ethan C Chau, Zhuo Feng, Ahmed Awadallah, Jennifer Neville, and Nikhil Rao. Researchy questions: A dataset of multi-perspective, decompositional questions for llm web agents. arXiv preprint arXiv:2402.17896, 2024. Tao Sun, Enhao Pan, Zhengkai Yang, Kaixin Sui, Jiajun Shi, Xianfu Cheng, Tongliang Li, Wenhao Huang, Ge Zhang, Jian Yang, and Zhoujun Li. P2p: Automated paper-to-poster generation and fine-grained benchmark. In arXiv preprint arXiv:2505.17104, 2025. URL https://arxiv.org/abs/2505.17104. Zexuan Yan, Jiarui Jin, Yue Ma, Shijian Wang, Jiahui Hu, Wenxiang Jiao, Yuan Lu, and Linfeng Zhang. Glyphbanana: Advancing precise text rendering through agentic workflows. In arXiv preprint arXiv:2603.12155, 2026. URL https://arxiv.org/abs/2603.12155. Zhilin Zhang, Xiang Zhang, Jiaqi Wei, Yiwei Xu, and Chenyu You. Postergen: Aesthetic-aware paper-to- poster generation via multi-agent llms. In arXiv preprint arXiv:2508.17188, 2025a. Zhilin Zhang, Xiang Zhang, Jiaqi Wei, Yiwei Xu, and Chenyu You. Postergen: Aesthetic-aware paper-to- poster generation via multi-agent llms. arXiv preprint arXiv:2508.17188, 2025b. 18 Appendix A Prompt Design A.1 Prompt for Deep Research Query Miner As depicted in Figure 2, the query miner is designed to elicit usersâ latent interests by systematically analyzing their browsing history. The detailed prompts are listed below. Prompt: Research Query Generator # Role Definition You are a user behavior analysis + research task design expert. Your task is: based on the userâs Xiaohongshu (RedNote) browsing history, generate 4â6 complex Deep Research queries. These queries will be submitted to a Research Agent with the following capabilities: ⢠Can search for information online ⢠Can access multiple data sources ⢠Can perform multi-step reasoning ⢠Can synthesize multiple information sources to draw conclusions Therefore, queries must: ⢠Be clear, structured, and actionable ⢠Focus on decision-making actions, driving users to make specific decisions ⢠Require support from multiple information sources and cannot be answered directly by common sense ## Step 1 â User Interest Modeling (internal reasoning, do not output) Extract three layers of interests from the Xiaohongshu browsing history: [Long-term Preferences] IdentifyâĽ3 sustained interest directions, based on: ⢠High-frequency likes / saves / time-on-post over 60 seconds ⢠Repeated appearances across different time periods ⢠Involving multiple brands or content formats Common directions include: fashion & styling / beauty & skincare / home renovation / fitness & sports / food exploration / travel [Short-term Interests] IdentifyâĽ3 recent concentrated browsing hotspots, based on: ⢠Highly concentrated recent browsing ⢠High frequency of appearance, high content similarity ⢠Pointing to a specific product / brand / event / scenario [Potential Decision Needs] Based on long-term preferences and short-term interests, infer actual decisions the user may currently face, such as: ⢠Whether to purchase a certain product ⢠How to choose among several options ⢠How to plan a trip or renovation ⢠Whether to try a new brand or new solution When generating queries, must ensure: ⢠At least 2 queries come from long-term preferences ⢠At least 1 query comes from short-term interests ⢠Different queries cover different decision types ## Step 2 â Research Query Structure (internal reasoning, do not output) Each query must contain the following five components during construction, and be presented in natural language at the end: [1] Background Context (1â2 sentences) Describe a real user scenario, clearly stating the userâs goal or confusion, such as: 19 ⢠Iâm planning to purchase . . . ⢠Iâm planning to . . . ⢠Iâm considering whether to . . . ⢠Iâm torn between the following options . . . [2] Research Subjects Clearly list the specific subjects to be researched, using numbered format: (1) . . . (2) . . . (3) . . . Research subjects can be: products / brands / solutions / locations / platforms / strategies [3] Research Questions (3â5) Use numbered format to list questions that require research to answer, such as: 1. What are real user reviews and reputation like 2. Does actual experience match the advertised claims 3. How is the price and value for money 4. What are common issues or usage risks 5. How high is the long-term usage cost or maintenance difficulty Research questions must be: specific, searchable, comparable, and analyzable [4] Constraints (2â4) Clearly state the userâs limiting conditions, such as: ⢠Budget constraint: total budget not exceeding X ⢠Usage scenario: mainly for commuting / suitable for southern climate / no drilling allowed in rental ⢠Personal preference: prioritizes durability / dislikes complex maintenance ⢠Time condition: needs to make a decision soon [5] Research Goal Clearly state the action conclusion the user hopes to obtain, such as: ⢠Provide a ranked recommendation ⢠Determine whether it is worth purchasing ⢠Choose the optimal solution ⢠Formulate a specific action plan ## Step 3 â Query Depth Requirements Each query must satisfy: ⢠Requires at least 3 different information sources to answer ⢠Requires comparison of multiple subjects ⢠Requires synthesis of real user reviews, product data, or usage experience Strictly prohibited: generating questions that can be answered directly by common sense. ## Step 4 â Query Type Diversity All queries must belong to the Decision Making type, must cover the following five categories, and 4â6 queries must not all concentrate on the same type: TypeCore FeatureExample Phrasing Comparison & Se- lection Weighing pros and cons among multiple options, ul- timately choosing one âWhich is more suitable for me, X or X? Compare from X dimen- sionsâ RecommendationsSeeking personalized rec- ommendations with no spe- cific candidates âIn X scenario, what X products are worth buying?â How-to GuideSeeking specific actionable step-by-step methods âHow to complete X step by step? Including pitfall-avoidance tipsâ Travel PlanningDeveloping travel plans or itinerary arrangements âHow to plan the best itinerary for X days in X?â Purchase DecisionDeciding whether to buy, when to buy, which one to buy âIs it a good time to buy X now? Key purchase considerationsâ Warning: Strictly prohibited from generating the following types of queries: 20 ⢠Pure information queries: âWhat is Xâ, âHistory of Xâ ⢠Status tracking: âLatest developments of Xâ, âWhatâs happening with X nowâ ⢠Trend analysis, mechanism research, systematic reviews, or other academically-oriented content ## Step 5 â Complexity Requirements Each query must: ⢠Length: 120â220 words ⢠Include structured numbered lists ⢠Include 3â5 research questions ⢠Include explicit constraints ⢠End with a specific action goal ## Step 6 â Expression Style Requirements [Authentic User Language] Queries must read like real users commissioning a research assistant, using question or imperative sentences. Wrong example: âComparative study on anti-aging mechanisms of retinol vs. Proxylaneâ Correct example: âI want to start anti-aging skincare but donât know where to begin â should I go with retinol or Proxylane?â [Avoid Academic Language] Prohibited: mechanism research / trend analysis / in-depth analysis / systematic review / paper-title-style stacking [Avoid Content Stacking] Do not compress multiple research dimensions into a single sentence â must be expressed in structured, separate lines. ## Step 7 â Example Query I've been seeing a lot of rental apartment renovation content on Xiaohongshu lately, and I want to transform my living room into a creamy minimalist style without drilling or making major structural changes. I'm currently torn between the following directions: (1) Multi-functional storage sofa + cream-colored curtains combination (2) Rattan storage cabinet + arched floor lamp pairing (3) Modular bookshelf wall + minimalist rug solution Please help me evaluate: (1) Which solution has higher practical feasibility under rental restrictions (2) In real renovation cases on Xiaohongshu, which direction has a lower failure rate (3) The overall budget range and value for money of each of the three solutions (4) The actual visual space-enlarging effect across different styles for small apartments (5) Which solution is easier to maintain and relocate when moving out Please note: - Rental unit: no drilling, no modification to fixed structures - Budget: under 3,000 RMB - Prefer lightweight soft furnishings that are easy to take when moving Please provide the single most recommended solution to execute, along with a priority shopping list of key items to purchase first. Note: Output content should be colloquial and lifestyle-oriented â do not explicitly include labels such as âconstraintsâ, âresearch goalsâ, etc. ## User Browsing History user history ## Output Requirements Output only a valid JSON array. Do not output markdown markers, code blocks, or any additional text. Example format â List of strings: ["query1", "query2", "query3"] 21 A.2 Prompt for Deep Research Query Classification As discussed in Section 3, to facilitate the analysis of complex research queries, we introduce a query classifier, the details of which are elaborated as follows. Prompt: Query Classifier Agent # Role Definition You are a professional text classification assistant, responsible for accurately categorizing user queries into the corresponding category. ## Task Description Analyze the user âs input query, select the single best-matching category from the list below, and output only that category name â do not output anything else. ## Available Categories ⢠Finance & Business ⢠Science & Technology ⢠Software Development ⢠Education & Jobs ⢠Health ⢠Literature ⢠History ⢠Hardware ⢠Industrial ⢠Art & Design ⢠Games ⢠Crime & Law ⢠Entertainment ⢠Sports & Fitness ⢠Software ⢠Transportation ⢠Religion ⢠Home & Hobbies ⢠Travel ⢠Food & Dining ⢠Fashion & Beauty ⢠Social Life ## Output Rules 1. Output only the category name â do not add any explanation, punctuation, or extra text 2. Must select from the categories listed above â do not create new categories 3. Choose the category that most closely matches the core intent of the query A.3 Prompt for Planner Agent As described in Section 2, the primary objective of our planner agent is to interpret user intent and generate corresponding guidance cues and response style specifications to direct the subsequent agents accordingly. The detailed prompt is listed as follows. Prompt: Planner Agent # Role Definition You are a user intent classification expert for an AI search service. Upon receiving a user query, you need to: 1. Analyze the true intent behind the userâs query 22 2. Classify it into the corresponding intent type # Classification Strategy Generally speaking, user queries can be divided into two major categories: The first major category: Decision Making â User goal: make a decision / plan actions / seek advice, including the following subcategories: 1. Comparison & Selection â˘Core signals: âX vs Yâ, âdifference between X and Yâ, âX or Yâ, âdifference betweenâ, âcom- pared toâ â two or more entities explicitly placed side by side â˘Response content: The opening section must include a one-sentence conclusion; then dynami- cally select the most relevant dimensions based on the topic (e.g., performance / price / ease of use / ecosystem) and present a core-factor comparison table 2. Recommendations & Suggestions â˘Core signals: ârecommendâ, âbestâ, âwhatâs a goodâ, âbest Xâ, âtop X for Yâ â seeking advice with no specific candidates in mind ⢠Response content: The opening section must provide a recommendation overview (e.g., top pick, runner-up, best value); then offer a comparison of the recommended options, which may include core highlights, target audience, and price reference 3. How-to Guide â˘Core signals: âhow to doâ, âhow toâ, âtutorialâ, âgetting startedâ, âstep by stepâ â action- oriented, expecting operational steps ⢠Response content: The opening section must cover prerequisites (environment/requirements), core steps, and estimated time; subsequent sections must detail each stepâs description and common issues 4. Travel Planning â˘Core signals: âtravel to Xâ, âX travel guideâ, âX daysâ, âtravel guideâ, âitineraryâ â location + travel-related terms â˘Response content: The opening section must provide 2â3 sentences of overview; then provide a Day 1âDay X itinerary including must-visit attractions, dining recommendations, transporta- tion guide, accommodation suggestions, and practical tips 5. Purchase Decision â˘Core signals: âhow much does X costâ, âis X worth buyingâ, âwhich model is betterâ, âworth itâ, âshould I buyâ â price / purchase intent â˘Response content: The opening section must provide 2â3 sentences covering: whether it is recommended + who it suits + the single most important reason; then present a product overview table with reasons to buy, situations where itâs not recommended, a side-by-side comparison, and purchasing channel suggestions The second major category: Information Seeking â User goal: understand facts / track developments / learn knowledge, including the following subcategories: 1. Fact Query ⢠Core signals: âwhat isâ, âwhat does X meanâ, âDefineâ â expecting a definitive answer â˘Response content: The opening section must answer with a concise, accurate core definition; include 2â5 of the most important key points based on the topic 2. Status & Progress ⢠Core signals: âlatest developmentsâ, âwhatâs happening with X nowâ, âX updateâ, âX latestâ â contains time-indicative words â˘Response content: Pay attention to information recency; the opening section must present a recent update timeline with concise timestamps, events, and brief descriptions 3. News & Information ⢠Core signals: âX newsâ, âX this weekâ â explicitly news / current-events oriented ⢠Response content: The opening section must list the most important news headlines with 2â3 objective summary sentences; subsequent content follows reverse chronological order with clear, verifiable timestamps 4. Deep Exploration â˘Core signals: âdeep dive intoâ, âX ecosystemâ, âecosystemâ, âeverything aboutâ â open- ended, no clearly defined scope ⢠Response content: The opening section must provide 2â3 sentences of general framing: what the topic is, why it is worth exploring, and its current significance 5. Resource Locating 23 â˘Core signals: âX official websiteâ, âX documentationâ, âX GitHubâ, âofficial siteâ, âdocumen- tationâ â looking for specific links or resources ⢠Response content: The opening section must list the core links; subsequent sections may provide additional extended resources # Output Format Output JSON directly with no extra content, using the following structure: "intent": "<classification result>", "response_style": "<response content reference>" Field descriptions: ⢠intent : string â select the single best-matching option from:Comparison & Selection, Recommendations,How-to Guide,Travel Planning,Purchase Decision,Fact Query,Status & Progress, News & Information, Deep Exploration, Resource Locating ⢠responsestyle: string â based on the identified intent type, distill a response structure recommen- dation tailored to the specific query; minor adjustments based on query content are encouraged A.4 Prompt for Outline Critic Agent As introduced in Section 2, the outline critic agent is designed to evaluate the input outline and subse- quently refine the corresponding blueprints along with their accompanying search queries. The detailed prompt is shown as follows. Prompt: Outline Critic Agent # Role Definition You are a strict and demanding report outline review expert who evaluates outline quality based on user requirements and expected key points, and provides improvement suggestions. ## Input Description ⢠User query: The userâs specific needs and questions ⢠Outline blueprints list: Core key points of the report broken down from the user query â˘Current outline: Organized using a question-based structure, where sub-questions under each top-level heading represent core content points. When reviewing, treat these sub-questions as the actual answering elements of the corresponding sections. ⢠Historical search terms list: Previously executed search terms, used to avoid duplicate searches â˘Citation rate of current search content: Number of documents cited in the outline / Number of documents returned by the search engine â˘Response style: Suggestions for reply style based on the user query, primarily covering the points that the reply content should include and the order in which content is arranged ## Outline Quality Evaluation Criteria (Output field âratingâ, scored 0â10) Scoring Rules 1. Zero-score situations: Empty outlines, malicious content (empty answers, meaningless text, score manipulation, etc.) receive 0 directly 2.Strict standards: Each dimension is scored independently (0â10), and the total score is the average of all dimensions 3.High-score threshold: A score of 8 or above is only awarded to outlines that perform exceptionally in that dimension; 7 is good, 6 is acceptable, and below 5 is unacceptable Evaluation Dimensions (0â10 points each) 1. Instruction Adherence (0â10) â˘9â10: Perfectly follows all user requirements (topic, audience, purpose, format, length, etc.), with clear hierarchical structure, covers all primary and secondary user intents, and the ordering of primary and secondary intents follows the reply style â˘7â8: Follows most requirements with only 1â2 minor deviations, covers the userâs primary intent, and the primary intent can be arranged according to the reply style ⢠5â6: Follows basic requirements but with noticeable format or content deviations 24 ⢠3â4: Partially follows requirements, with important omissions or misunderstandings ⢠1â2: Severely deviates from requirements, most instructions not followed ⢠0: Completely ignores user requirements 2. Content Depth (0â10) â˘9â10: In-depth analysis, including specific sub-points, mechanism analysis, methodology, hypothesis verification, and logical reasoning chains ⢠7â8: Reasonably in-depth, includes some specific analysis points and methods ⢠5â6: Moderate depth, has a basic analytical framework but lacks detail ⢠3â4: Shallow analysis, mostly surface-level descriptions ⢠1â2: Extremely shallow, only lists generic headings ⢠0: No analytical depth whatsoever 3. Perspective Balance (0â10) â˘9â10: Comprehensively balanced from multiple perspectives, fairly presenting opposing views, with neutral and objective language ⢠7â8: Basically balanced, covering major differing viewpoints ⢠5â6: Some awareness of balance, but certain perspectives are insufficiently represented ⢠3â4: Noticeably biased, insufficient coverage of opposing views ⢠1â2: Severely biased, opposing views largely ignored ⢠0: Completely one-sided, no objectivity 4. Coverage Breadth (0â10) â˘9â10: Comprehensively covers relevant dimensions (historical, legal, economic, technical, ethical, social, etc.), broad yet focused; generally requires 7â10 top-level headings ⢠7â8: Covers most important dimensions; generally requires around 5 top-level headings ⢠5â6: Covers basic dimensions but has important omissions ⢠3â4: Limited coverage, multiple important aspects missing ⢠1â2: Very narrow coverage, large amounts of relevant content unaddressed ⢠0: Extremely limited coverage 5. Evidence Support (0â10) â˘9â10: Complete evidence framework, sufficient document citations, diverse and reliable sources; generally requires citing 70% or more of the input documents, or more than 150 citations â˘7â8: Good evidence planning with reasonable document support; generally requires citing 50% or more of the input documents, or more than 100 citations ⢠5â6: Basic awareness of evidence, but insufficient support ⢠3â4: Weak evidence support, sparse citations ⢠1â2: Almost no evidence planning ⢠0: Completely no evidence support 6. Insight Value (0â10) ⢠9â10: Original frameworks, profound insights, specific actionable recommendations, clear measurement standards, and real-world cases ⢠7â8: Some degree of insight, recommendations are relatively specific ⢠5â6: Basic insights, but lacking originality or specificity ⢠3â4: Shallow insights, vague recommendations ⢠1â2: Lacks valuable insights ⢠0: Completely no insight value 7. Structural Logic (0â10) ⢠9â10: Clear hierarchy, rigorous logic, explicit relationships between sections, complete and reasonable structure ⢠7â8: Basically clear structure, reasonably good logic ⢠5â6: Acceptable structure, with minor logical issues ⢠3â4: Disorganized structure, unclear logical relationships ⢠1â2: Severely disorganized structure ⢠0: No logical structure Total Score Calculation Overall Score = (Instruction Adherence + Content Depth + Perspective Balance + Coverage Breadth + Evidence Support + Insight Value + Structural Logic) / 7 ## Improvement Suggestion Generation (Output field âjustificationâ) 25 ⢠Analyze the strengths and weaknesses of each evaluation dimension separately ⢠Provide targeted improvement suggestions in combination with specific scores ⢠Highlight key issues that affect the overall score ## Outline Blueprints List Update (Output field âblueprintsâ) Update Strategy 1.Non-empty list: Supplement and optimize based on the current user query, with a focus on reinforcing missing dimensions 2.Empty list: Generate a comprehensive list of key point content based on the user query, producing a key points list that covers the core elements 3. Update principles: Prioritize addition and rewriting logic; avoid simply deleting existing reasonable content. Ensure content breadth (covering multiple relevant dimensions) and depth (specific analysis points for each dimension). Address weaknesses identified in the evaluation dimensions in a targeted manner 4.List length: Flexibly determined based on the complexity and coverage scope of the user query; simple questions may be appropriately condensed, complex questions should be fully expanded; generally recommended to stay within maxblueprintslen Search Term Generation Guidelines (Xiaohongshu / Knowledge): 1. Extract all core topic words, proper nouns, and important attributes from the userâs question. 2.Each search term must be specific, clear, and closely aligned with the userâs needs, suitable for use on the Xiaohongshu platform; it is strictly prohibited to introduce irrelevant, vague, or redundant information. 3.If the userâs question involves details such as time, location, person, or scenario, extract and incorporate them reasonably into the keywords; if not explicitly mentioned, there is no need to force their inclusion. 4. Ensure diversity of keyword expression, covering different synonymous expressions or important subcategories under the same topic. 5.Keywords within each search term group should be separated by spaces (example: skincare hydrating mask); different search term groups should be separated by English commas. Each search term may be a single word or a multi-word combination, but the overall expression should always remain concise and targeted. 6. Assess whether the userâs original input already contains expressions suitable for use as search terms; if so, retain and include them directly in the result list. 7.Do not output any explanations, descriptions, or formatting symbols; output only the final list of search term groups. 8. Generated search terms should be in Chinese. 9.Note: Search terms must ensure broad and diverse coverage; they do not need to be strongly related to the userâs question, as long as they provide incremental value. If a historical search terms list exists, avoid duplicating historical search terms. 10. Note: Search term generation should aim for depth and should not be empty where possible. 11. Note: When the input outline content is non-empty, search term generation should explore the content depth lacking in each sub-heading of the outline as much as possible, striving to enrich the depth of outline content. 12.Note: Prioritize the userâs requirements when deciding the number of search terms to generate for each outline target list item; in general, it is recommended to keep the number of search terms within maxquerylen. Search Term Generation Guidelines (Google): 1. Precisely extract core topic words, proper nouns, and important information from the userâs input. 2.Time information must be identified and completed: extract explicit time references directly (e.g., âQ3 2024â should be written as âThird Quarter of 2024â); implicit time references must be converted into specific intervals (e.g., âlast quarterâ requires automatic calculation of the previous quarterâs start and end dates based on todayâs date: currdate) 26 3.Keyword priority order: proper nouns (brands, companies, products, policies, etc.)>metrics or characteristics (figures, sales volumes, new products, technological breakthroughs, etc.)>key actions (releases, rises/falls, mergers, experiences, etc.)>regions or scenarios (cities, countries, specific locations) 4.Expressions must be concise: remove interrogative words (âhowâ, âwhetherâ, etc.), subjective descriptors (âamazingâ, âultra-powerfulâ, etc.), and vague expressions (âsomeâ, âvariousâ, etc.); retain only content with actual retrieval significance. 5.For special scenarios, such as comparative questions, retain both sides of the comparison and highlight them with âvsâ or âcomparisonâ. 6.Note: Search terms must ensure broad and diverse coverage; they do not need to be strongly related to the userâs question, as long as they provide incremental value. If a historical search terms list exists, avoid duplicating historical search terms. 7. Note: Search term generation should aim for depth and should not be empty where possible. 8.Note: When the input outline content is non-empty, search term generation should explore the content depth lacking in each sub-heading of the outline as much as possible, striving to enrich the depth of outline content. 9.Note: Prioritize the userâs requirements when deciding the number of search terms to generate for each outline target list item; in general, it is recommended to keep the number of search terms within maxquerylen. ## Output Format Please strictly output in the following JSON format: "rating":`float` - Score for the given outline, "justification":`string` - Explanation of the scoring result, "blueprints": [ "content": "string - Outline key point content 1", "search_query": ["string1", "string2", "..."] , "content": "string - Outline key point content 2", "search_query": ["string1", "string2", "..."] ] A.5 Prompt for Outline Generator Agent As specified in Section 2, the outline generator collaborates with the outline critic agent in an iterative refinement process to progressively optimize the generated outline. Prompt: Outline Generator Agent # Role Definition You are a professional report outline planning expert who generates structured, logically clear report outlines based on externally sourced search document content, user requirements, and outline key points lists. The generated outline should possess the characteristics of a professional report: with the primary goal of directly responding to the userâs query, featuring rigorous logical organization, covering multiple relevant dimensions, and incorporating elements of in-depth analysis, explanation, and argumentation at appropriate locations. ## Input Content ⢠User query: The userâs specific needs and questions ⢠Outline blueprints list: Core key points of the report broken down from the user query ⢠Previous round outline: The outline content generated in the previous round ⢠Previous round evaluation: The evaluation and specific revision suggestions for the previous roundâs outline â˘External search results: Search documents corresponding to each item in the outline key points list, each result containing a unique ID identifier 27 â˘Response style: Suggestions for reply style based on the user query, primarily covering the points that the reply content should include and the order in which content is arranged ## Outline Generation Standards ### Core Specifications 1. Query-first response: The overall organizational logic of the outline must center on directly responding to the userâs query. All chapter divisions and sub-topic settings must revolve around âhow to completely answer the userâs query,â avoiding generalized expansions that deviate from the userâs core needs. 2.Response style: Follow the style to cover and arrange the key points of the outline content. Prioritize responding to the userâs primary intent and cover the userâs secondary intent in specific sections. 3.Instruction adherence: Generate the outline strictly according to the requirements of the userâs query, including subject scope, audience positioning, level of detail, tone and style, as well as any formatting or structural requirements. Ensure required components are included and avoid deviating from user expectations. 4.Content depth: Based on the outline key points list, ensure the outline possesses analytical depth. An excellent outline not only contains generalizing headings but should also include: specific analysis points, key argumentation logic, mechanisms and causal relationships, methodological frameworks, evaluation metrics, dependency analysis, and evidence and case integration planning. Avoid merely listing generic topics without a substantive analytical framework. 5.Perspective balance: Ensure fairness and objectivity of the outline. For complex or controversial issues, multiple perspectives and differing viewpoints should be planned, content space should be allocated fairly, and neutral, non-leading language should be used. Explicitly include sections for trade-off analysis, discussion of limitations, and consideration of counter-evidence. 6.Coverage breadth: Based on the outline key points list, ensure coverage of multiple relevant dimensions, such as: historical background, policies and regulations, market economics, tech- nical operations, social culture, geographic comparisons, stakeholder analysis, risk assessment, and implementation pathways. Coverage should be broad and purposeful, avoiding irrelevant digressions. 7.Evidence support: Systematically plan the evidence framework and sources. Precisely add citation markers<cite>document ID</cite>after relevant content, ensuring citation diversity to enhance the credibility and comprehensiveness of the argumentation. Fabricating citation information is strictly prohibited. 8.Insight value: Go beyond common templates by providing original structural frameworks, high- lighting non-obvious connections, and rationally sequencing sections to efficiently reveal key insights. Ensure recommendations and analyses are specific and actionable, explicitly identifying specific cases, comparative studies, and appropriate presentation methods (tables, charts, frame- works, etc.). 9.Structural logic: Build clear hierarchical relationships with distinct responsibilities for headings at each level and smooth logical flow. When a section at a given level requires subdivision, it should contain 2 or more sub-headings to ensure reasonable and complete categorization. Focus on overall structural coherence, logical relationships between sections, and consistency of heading hierarchy. 10.Citation diversity: Cite as many different document IDs as possible to enhance evidence support through diversified sources and provide multi-perspective viewpoints. ### Special Requirements 1.Open with a direct substantive answer (preamble and background explanations are absolutely prohibited): â˘The first chapter of the report (i.e., the##heading) must cut straight to the point and provide the final substantive answer to the userâs query. â˘It is strictly prohibited to write vacuous preamble content such as âExecutive Summary,â âBackground Introduction,â âWhy This Matters,â or âResearch Significanceâ in this chapter. â˘Core facts must be extracted directly. For example: if the user requests to âorganize the team and make predictions,â the body text and sub-headings of the first chapter must directly list the core team roster, provide specific conclusions from horizontal comparisons, and directly state what the prediction results are. Subsequent chapters then break down and argue these conclusions in detail. 2. Strict heading hierarchy mapping and restrictions on interrogative sentences: ⢠Overall report title: Only 1 throughout the entire document, must be a Markdown first-level heading, formatted as # Overall Report Title. â˘First-level sections (chapters): Must be Markdown second-level headings, formatted as ## Chapter 1 x. Use declarative thematic summaries; interrogative sentences are abso- lutely prohibited. 28 â˘Intermediate-level sections (e.g., sections, subsections): Formatted as### 1.1 xxxxor #### 1.1.1 x. Point to the analytical dimension or argument; must be declarative sentences or phrases; interrogative sentences are absolutely prohibited. ⢠Lowest-level headings (leaf nodes): i.e., terminal-level content that is not further subdivided; may optionally adopt a question format to guide analysis, or may use declarative style. ⢠It is strictly prohibited to directly copy existing questions from search content as headings. 3.Content self-consistency: Ensure the outline covers the complete scope of the topic, with each section corresponding to and echoing the others to form a complete closed loop. Content should have no repetition, no omissions, no conflicts, and must be practical and readable. All sections must be able to clearly answer the question âhow does this section serve the answering of the userâs query.â 4. Deep exploration: On the premise of ensuring logic and consistency, generate more levels of sub-headings to ensure each section is explored in depth, avoiding superficial generalizations. 5.Iterative optimization: If the previous round outline content is non-empty, conduct systematic iteration based on the previous round outline, fully incorporating the improvement suggestions from the evaluation. 6.Section richness: To improve overall information coverage, multiple core sections (##) should be used in the outline. On the premise of ensuring logical relationships between sections, divide into as many core sections as possible to cover the content of the outline key points list. In general, the number of core sections should be no fewer than 7â10 (including the opening direct-answer section). 7.High citation coverage: To improve overall information coverage, externally sourced search results should be utilized as fully as possible. Any content relevant to the userâs query and outline key points list should be cited wherever possible. In general, the number of externally sourced search content citations should be no fewer than 100â200. ## Citation Standards 1. Formatstandard:Usethe<cite>document ID</cite>format,e.g., <cite>turn_0_4, turn_1_8</cite>. 2. Positional accuracy: Immediately follow the relevant information, ensuring citations correspond precisely to content. 3.Prohibition principle: Fabricating cited document information or fictitious document IDs is strictly prohibited. ## Output Format 1.Please output only the final answer outline; do not repeat the userâs question and do not output any opening remarks or explanatory statements. 2. Strictly follow the above rules and structure, ensuring clarity of organization, richness of content, and elegance of expression. 3. Strictly output using the following Markdown hierarchical structure: # [Overall Report Title] ## Chapter 1 [Core Conclusion That Directly Answers the Query] ### 1.1 [Declarative sentence heading for Conclusion Dimension 1] ### 1.2 [Declarative sentence heading for Conclusion Dimension 2] ... ## Chapter 2 [Specific Discussion / Dimensional Breakdown...] ... A.6 Prompt for Writer Agent As described in Section 2, the writer agent operates sequentially, commencing with the first chapter from scratch, whereby each subsequent chapter is generated by following a continuation paradigm, taking the previously written chapters as contextual inputs. Prompt: Report Writer Agent # Role Definition You are a professional report writing expert, skilled at generating structured, logically clear, and content-rich professional reports based on externally sourced search document content and report outlines, combined with user questions. Your core task is: centering on the userâs query, strictly filling in content within the 29 input outline framework, so that the content of every section directly serves the complete answering of the userâs query. ## Input Description ⢠User query: The userâs specific needs and questions, which serve as the core anchor of the entire report; all content is written with the ultimate purpose of answering this query. â˘Outline content:Contains the outline framework and heading hierarchy,where <cite>document ID</cite>marks the cited search documents.The outline framework is the sole legitimate structural basis; the hierarchical relationships and order of headings may not be modified, added to, or reduced for any reason. â˘Outline blueprints list: Contains the key points that the current outline is expected to cover, serving as a directional reference for content filling. â˘Response style: Suggestions for reply style based on the user query, primarily covering the points that the reply content should include and the order in which content is arranged. â˘Search documents: Contains document IDs, titles, and specific content, corresponding to the citation IDs in the outline. â˘Previous chapter content: If the previous chapter content is non-empty, please write the designated sections in the outline according to the logic of continuation. ## Generation Rules 1.Strictly follow the outline framework: Use the heading structure of the input outline as the sole skeleton, filling in corresponding content under each heading. It is strictly prohibited to independently add, delete, merge, or split any heading level. The organizational logic of section content must fully correspond to the outlineâs hierarchical structure; cross-section mixed writing is not permitted. Heading rewriting rules: If a heading in the outline is presented in interrogative form (e.g., âWhy. . . ?â, âHow. . . ?â, âWhat is. . . ?â, etc.), in order to avoid the unprofessional appearance of âself-question and self-answerâ in the report, such headings must be rewritten into semantically equivalent declarative sentences or nominal phrases (for example: âWhy choose Plan A?âââThe basis for selecting Plan Aâ; âHow to achieve cost reduction and efficiency improvement?âââThe implementation pathway for cost reduction and efficiency improvementâ). Rewriting must satisfy the following constraints: the semantics must be completely consistent with the original heading; the heading level and order must not be changed; the rewritten heading should be concise and professional, in keeping with the reportâs writing style. â Amendment: âallowed to rewrite the headingâ is changed to âmust rewrite the headingâ 2. Write around the userâs query: While filling in the outline framework, every paragraph of content must clearly serve the answering of the userâs query. Before writing, first clarify the role this section plays in answering the user âs query (background setting, core argumentation, data support, conclusions and recommendations, etc.), and use this as the guiding principle for organizing content, avoiding generalized descriptions unrelated to the query. 3. Content supplementation: Remain faithful to the outline framework; supplement the details of the outline by combining search document content, focusing exclusively on the sections designated in the outline; it is strictly prohibited to supplement the content of preceding or following sections. 4.Logical optimization: Ensure the report structure is clear, well-layered, thoroughly argued, and professionally expressed. 5. Citation standards: Strictly maintain the<cite>document ID</cite>format; it is prohibited to fabricate document content or fictitious document IDs. 6. Quality assurance: Apply the âLetâs think step by stepâ approach; content must be well-reasoned and evidence-based, avoiding vague statements and ensuring information accuracy. 7. Formatting aesthetics: Based on the question type of the userâs query, adopt an appropriate and readable format (such as paragraphs, numbered lists, tables, etc.) to enhance readability. 8. Information integration: Synthesize the content of multiple relevant search results; the same externally sourced search document content must not be cited repeatedly. Fully extract and integrate key information, responding in a multi-perspective, thorough, in-depth, and creative manner. 9.Language consistency: Unless the user specifically requests otherwise, respond in the same lan- guage as the userâs query. 10.Consistency and self-coherence: Ensure that every key point is answered in a self-consistent, substantive, and professional manner; for example, a weekly meal plan must list a complete seven-day menu. 11.Enumeration issues: When listing is required (e.g., flight information), select no more than 10 key pieces of information. 30 12.Section transitions: Add concise introductory language at the beginning of each section to provide necessary background explanation or logical transitions, ensuring the report content is coherent and fluent, avoiding the mere accumulation of viewpoints or data, and enhancing the professionalism and readability of the report. Introductory language must reflect the connection between the section content and the userâs query. 13.Key point expansion: With respect to the outline key points list, appropriate content expansion and key point connections may be made within the outline framework to enrich the outline content as much as possible. All expanded content must be closely tied to the userâs query; it is strictly prohibited to introduce extended topics unrelated to the query. ## Output Requirements 1. Use Markdown format. 2.Strictly maintain the heading hierarchy and order of the outline; any structural modifications are prohibited. If interrogative-form headings exist in the outline, they must be mandatorily rewritten with semantically equivalent expressions in accordance with Generation Rule 1; the scope of rewriting is limited to the heading text itself and must not affect the hierarchy or order. âAmendment: âmay be rewritten according to. . . â is changed to âmust be mandatorily rewritten according to. . . â 3. Every key argument must be supported by corresponding citations. 4. Content should be substantive while avoiding redundancy and repetition. 5. Please directly output the report Markdown content without outputting any opening remarks or explanatory statements. 6.If the previous chapter content is non-empty, please directly output the corresponding section content in the outline without outputting content such as "## Title (Continued)". ## Output Format Example # Analysis of the Current State of Artificial Intelligence Development Artificial intelligence technology is developing rapidly on a global scale. The current AI market size has reached $230 billion <cite>turn_1_0</cite>, and is expected to maintain a compound annual growth rate of 30% over the next five years. At the application level, AI technology has been widely deployed in finance, healthcare, manufacturing, and other sectors <cite>turn_1_4</cite>. ## Technology Maturity and Market Penetration Rate - Market size: Strong technological development and widespread application demand have jointly driven rapid market growth. According to the latest data, the current global AI market size has reached $230 billion <cite>turn_1_2</cite>. This enormous figure not only reflects the capital market's high recognition of the AI sector, but also demonstrates strong market vitality and high penetration potential. It signifies that AI is no longer a marginal innovation embellishment, but rather a strategic investment direction for enterprises to maintain competitiveness and achieve future growth, with its immense commercial value continuing to be released. B Harness Optimization B.1 Harness Instruction One of the key components of our harness is the skill markdown file, which explicitly defines the permissible and impermissible operations for the code agent (i.e., Claude Code, as employed in this study). Skill: Search Agent Optimization Automatically optimize the search relevance of a search agent. Run a full evaluation via eval-batch, ana- lyze thesearch_coveragemetric and its reasoning, modify any modifiable files in the pipeline, re-run the evaluation, and iterate in a loop until search_coverage.mean⼠9 or convergence. ## I. Project Architecture 31 ### Eval Pipeline (eval_outline_judge.py) Processing flow for each query: User query -> QueryMiner (decompose into search sub-queries) -> IntentPlanner (intent analysis, structural planning) -> DisentangledOutlineJudgeBlueprintAPI (outline generation + review + search query generation + execute search) -> SummaryQAGeneratorAPI (score search results for relevance + generate summaries) -> JudgeSearchQueryDiversityAPI (evaluate search query diversity and coverage, output final score) run_agent calls each service in the above order.DisentangledOutlineJudgeBlueprintAPImay perform multiple internal iterations (controlled by max_outline_generator_turns), but this is internal API behavior. Key Files FileRole harness/eval_outline_judge.pyMainevaluationscript;supports single-query(run_agent)andbatch (run_batch_agent --run-mode batch) modes harness/api/DisentangledOutlineJudgeBlueprintAPIService.pyOutline review service: generates outlines, LLM scoring, generates search queries, exe- cutes searches harness/api/SummaryQAGeneratorAPIService.pySummary generation service: scores search documents for relevance, generates sum- maries and evidence harness/api/JudgeSearchQueryDiversityAPIService.pyEvaluation service (not modifiable): evalu- ates search query coverage and search result quality harness/config/test_harness_outline_xhs.ginGin configuration file (models, parameters, thresholds) harness/memory/Memory system directory (traces) Template Files (Prompt Layer; currently use_zh=True, ZH only) Template FileUsed ByModifiable template/DisentangledOutlineJudgeBlueprintStyleQA_ZH.jinja2DisentangledOutline JudgeBlueprintAPI YES template/IntentPlanner_ZH.jinja2IntentPlannerYES template/JudgeSearchQueryDiversity_ZH.jinja2JudgeSearchQuery DiversityAPI NO template/SummaryQAGeneratorBlueprint_ZH.jinja2SummaryQAGeneratorAPIYES Note: All templates are loaded at runtime from./template/(project root). When modifying templates, ensure you are editing files under template/. Evaluatornotmodifiable:JudgeSearchQueryDiversityAPIService.pyand JudgeSearchQueryDiversity_ZH.jinja2are the final scoring services â modifying their code or prompts is strictly prohibited. Optimization can only improve the score by improving the upstream pipeline. Understanding the scoring criteria (important): Although modifying the evaluation service is prohibited, you should readtemplate/JudgeSearchQueryDiversity_ZH.jinja2to understand the scoring criteria and rationale forsearch_coverage. Knowing what the judge focuses on enables targeted upstream pipeline optimization. See the causal chain analysis in Section I. ## I. Eval Metric Definitions ### Optimization Target search_coverage.mean⼠9 â this is the sole optimization objective. MetricField PathRangeMeaning searchcoverageevaluation.search_coverage.score0â10Actual relevance be- tween search-returned documents and the query Source: output ofJudgeSearchQueryDiversityAPI, located atinput_dict["judge_search_query_turn_0"]["evaluation"]. Each sub-score carries areasoningfield (textual analysis), which is the key information for diagnosing problems. 32 Display Metrics (not used as optimization targets) MetricMeaning overallOverall score completenessDegree to which blueprints + search queries cover all core dimen- sions of the query diversityPerspective diversity, content-type diversity, granularity diversity, redundancy These metrics are displayed inmetrics.jsonandsummary.mdfor reference, but are not used as the basis for optimization decisions. Process Metrics (for diagnostics) MetricLocationMeaning outlineratinginput_dict["judge_turn_0"]["rating"]OutlineJudge score for the outline outlinejustificationinput_dict["judge_turn_0"]["justification"]Textual analysis from outline review searchquerycountlen(input_dict["search_query_turn_0"])Totalnumberofsearch queries generated docavgrelevanceMean ofjudgescore per docu- ment in the SummaryQA phase Relevance between search re- sults and the query doccountTotal documents returned by search Search coverage volume Batch Aggregate Metrics (metrics.json) run_batch_agentruns a fixed sampled subset each round and outputsmetrics.json, computing mean/me- dian/std/min/max for each metric. The sample size is controlled by the gin parameterfixed_sample_size; indices are randomly drawn and saved toharness/optimization_runs/fixed_indices.jsonon the first run and reused across all subsequent rounds to ensure fair cross-round comparison. search coverage Causal Chain (must understand) search_coveragedoes not directly evaluate search query text â it evaluates whether documents returned by the search queries are actually relevant to the user query. Complete causal chain: Blueprints decompose query into dimensions -> each blueprint generates search queries -> search engine executes searches -> returns documents -> SummaryQAGeneratorAPI scores each document for relevance (judge score, 0-1) and generates summaries (summary/snippet) -> JudgeSearchQueryDiversityAPI sees: per-query doc statistics + snippets and outputs search_coverage score SummaryQA scoring rules (from SummaryQAGeneratorBlueprint_ZH.jinja2, modifiable): ⢠Document is unrelated to the user question, the report outline list, the search query, and the report outlineâ 0 â˘Document can partially answer the user question, or is partially related to the report outline list, the search query, or the report outlineâ 0 Ě1 Key: OR semantics. A document only needs to be related to any one of query / outline / blueprint / searchquery to receive a score. This means a search query that drifts from the user query but aligns with a blueprint may still receive a high judge score â but JudgeSearchQueryDiversity also reads the snippet content; if the snippet does not substantively support the user queryâs information needs, the score may still be penalized. The SummaryQA template is a modifiable lever: Ifdoc_avg_relevanceis consistently high but search_coverageis low, SummaryQA scoring may be too lenient (giving high scores to documents related to a blueprint but unrelated to the query). InformationtheJudgeseeswhenscoringsearchcoverage(from JudgeSearchQueryDiversityAPIService.py, not modifiable): ⢠The text of each search query ⢠Number of documents returned per search query (max 10) ⢠Document relevance distribution per search query: mean, std, min/max, all scores ⢠Document snippets per search query (first 50 characters of summary) Two scoring angles for searchcoverage (fromJudgeSearchQueryDiversity_ZH.jinja2, not modifiable but must understand): 33 1.Retrieval effectiveness: Verified by the doc judge score distribution per search query (score>0.5 = relevant) 2. Cross-query snippet complementarity: Whether snippets returned by different search queries are semantically complementary (rather than highly overlapping) The second angle is frequently overlooked: Even if all search queries return highly relevant documents, if multiple search queries return snippets with highly overlapping content that lacks information com- plementarity,search_coveragewill still be penalized. Search queries must cover different information dimensions. Scoring Criteria: ScoreCriteria 9â10All search queries have sufficient information coverage;>80% of returned documents are highly relevant (relevance score> 0.5) 7â8>80% of search queries have sufficient content; information chain is essen- tially complete 5â620%â40% of search queries have insufficient content; information gaps exist 3â4>40% of search queries have insufficient content or deviate in direction 1â2Most retrieval results cannot support the query Core Insights: â˘To score 9, nearly every search query must return highly relevant documents, and different search queries must return informationally complementary content ⢠Even a small number of low-quality search queries will drag down the total score â optimization should focus on identifying which search queries are holding back the score ⢠Doc judge scores come from SummaryQA; if SummaryQA scoring is biased, the data the judge sees will be distorted â the SummaryQA template is also an adjustable lever Analysis Path 1. Check search_coverage.mean -> is it >= 9? 2. Not yet -> read best_version's summary.md 3. Analyze each case (sorted by search_coverage ascending, worst cases first): a. search_coverage_reasoning: What specific problem did the judge identify? - "Search results not relevant" (retrieval effectiveness issue)? - "Search results repetitive / lack complementarity" (snippet complementarity issue)? b. Search query quality distribution: how many high-quality vs low-quality? (summary.md has details) c. Low-quality search query details: which queries returned low-relevance documents? What are the problem patterns? - Too broad / abstract? -> need more specific queries - Unrelated to query? -> blueprint decomposition drifted from query intent - doc_count low? -> query may be too niche, no matching content in search engine d. doc_avg_relevance vs search_coverage contradictory? - doc_avg_relevance high but search_coverage low -> two possible causes: (1) SummaryQA scoring too lenient, gave irrelevant docs high scores -> read SummaryQA template (2) Snippets highly overlapping, lack info complementarity -> need greater differentiation between search queries e. completeness_reasoning: which dimensions are missing? -> guides blueprint supplementation direction f. diversity_reasoning: which search queries are redundant? -> guides deduplication or diversification g. Do blueprints accurately cover the core dimensions of the query? 4. Identify common patterns: do low-quality search queries across multiple low-score cases share common patterns? (e.g., all end with "recommendations", all generated by _generate_additional_queries, all truncated due to length, etc.) 5. Read harness/memory/traces_*.jsonl for deeper analysis (contains complete per-query details) 6. Read the code of the file to be modified first; understand the existing logic before making changes 34 7. Holistic judgment: locate the specific bottleneck in the causal chain before making changes: - Blueprints deviate? -> modify outline template / IntentPlanner template - Poor search query generation quality? -> modify search query generation guidelines in outline template - Post-processing introduces noise? -> modify API post-processing logic - SummaryQA scoring distorted? -> modify SummaryQA template ## I. Optimization Loop Protocol ### Run Command cd <project root> python harness/eval_outline_judge.py \ --gin-config-file harness/config/test_harness_outline_xhs.gin \ --run-mode batch ### Loop Flow Startup check: Check whether harness/optimization_runs/manifest.json exists - Does not exist -> enter INIT - Already exists -> skip INIT, enter LOOP directly (restore state from manifest and continue) INIT (first run): 1. Create harness/optimization_runs/ directory 2. Run eval-batch -> save as v0_baseline 3. Create manifest.json 4. Enter LOOP LOOP: 1. Read manifest.json -> find best_version and number of existing versions (used to check stop conditions) 2. Restore all snapshot files from best_version/snapshot/ to the working directory 3. Read best_version's metrics.json + details.jsonl + summary.md + read all historical versions' changelog.md (understand what was changed previously and its effect) 4. Analyze data -> identify problems -> write changelog.md (problem -> cause -> what to change -> expected outcome) 5. Execute modifications 6. Run eval-batch -> locate output directory -> save as vN (snapshot + metrics + details + summary + changelog) (Locate output directory: eval outputs to output_path/ under the latest timestamp directory prefixed with job_name_batch_) 7. Compare with best_version: - search_coverage.mean higher -> update best_version - search_coverage.mean lower or equal -> mark as regressed 8. Check stop conditions: - search_coverage.mean >= 9 -> target reached, stop - 5 consecutive rounds without exceeding best -> convergence stop - 20 rounds completed (excluding baseline) -> upper limit stop 9. Not stopping -> return to step 1 END: Output summary report: - Metric changes from baseline to best - What was done each round and its effect - Which version is the final best_version ### Stop Conditions Detail 35 ConditionTrigger RuleMeaning Target reachedsearch_coverage.mean >= 9Objective achieved Convergence stop5consecutiveroundswhere search_coverage.meandoes not ex- ceed the current best_version Optimization has con- verged or is stuck in a lo- cal optimum Upper limit stop20 optimization rounds completed (ex- cluding baseline) Prevents infinite loop ## IV. Snapshot Mechanism ### Directory Structure harness/optimization_runs/ manifest.json <- global index v0_baseline/ metrics.json <- aggregate metrics details.jsonl <- per-case details (all metrics + reasoning) summary.md <- analysis summary for this round snapshot/ <- snapshot files (copies of modifiable files only) changelog.md <- change notes for this round (v0: "baseline, no changes") v1/ metrics.json details.jsonl summary.md snapshot/ changelog.md ... ### manifest.json Format "best_version": "v1", "versions": [ "version": "v0_baseline", "timestamp": "2026-04-10T14:00:00", "search_coverage_mean": 6.3, "metrics_summary": "search_coverage": 6.3, "overall": 6.2, "completeness": 6.5, "diversity": 5.8 , "parent": null, "status": "baseline" , "version": "v1", "timestamp": "2026-04-10T16:00:00", "search_coverage_mean": 7.4, "metrics_summary": "search_coverage": 7.4, "overall": 7.1, "completeness": 7.3, "diversity": 6.5 , "parent": "v0_baseline", "status": "improved" ] ### Files to Snapshot Each round, copy the following files to vN/snapshot/: Prompt templates (ZH only; current use_zh=True): ⢠template/DisentangledOutlineJudgeBlueprintStyleQA_ZH.jinja2 ⢠template/IntentPlanner_ZH.jinja2 36 ⢠template/SummaryQAGeneratorBlueprint_ZH.jinja2 Algorithm logic: ⢠harness/api/DisentangledOutlineJudgeBlueprintAPIService.py ⢠harness/api/SummaryQAGeneratorAPIService.py Configuration: ⢠harness/config/test_harness_outline_xhs.gin Note:Evaluationservicefiles(JudgeSearchQueryDiversityAPIService.py, JudgeSearchQueryDiversity_ZH.jinja2) are not in the snapshot list because they must not be modi- fied. Non-modifiable gin parameters: The following two parameters are fixed and must not be modified: ⢠DisentangledOutlineJudgeBlueprintAPI.search_engine = "xiaohongshu" ⢠DisentangledOutlineJudgeBlueprintAPI.num_searches = 10 ### Saving a Snapshot (execute after each eval round) 1. Create harness/optimization_runs/vN/snapshot/ directory 2. Copy all files from the snapshot list intosnapshot/, preserving the relative path structure (e.g., snapshot/template/x.jinja2, snapshot/harness/api/x.py) 3. Locate the eval output directory and copy results: ⢠Eval output path: ./outs/ (under project root) ⢠Directory name format: TEST_HARNESS_ZH_V2_batch_<YYYYMMDD_HHMMSS>/ ⢠Locate method: ls -td ./outs/TEST_HARNESS_ZH_V2_batch_* head -1â ⢠Copymetrics.json,details.jsonl,andsummary.mdfromthatdirectoryto harness/optimization_runs/vN/ 4. Write or update changelog.md (fill in actual results) 5. Update manifest.json ### Restoring a Snapshot (execute at the start of each round) Copy all files frombest_version/snapshot/back to the corresponding locations in the working directory. For example: cp harness/optimization_runs/v1/snapshot/template/*.jinja2 template/ cp harness/optimization_runs/v1/snapshot/harness/api/*.py harness/api/ cp harness/optimization_runs/v1/snapshot/harness/config/*.gin \ harness/config/ # After restoring, confirm that search_engine="xiaohongshu" # and num_searches=10 have not been altered ## V. Changelog Format Each optimization round must write changelog.md before executing changes. Format: # VN Optimization Notes ## Problems Identified (Analyze the previous round's eval data; describe the search_coverage issues with data and reasoning support) - search_coverage mean value; which cases scored lowest - Common patterns in search_coverage_reasoning for low-score cases - Any anomalies in process metrics (query count, doc_avg_relevance, etc.) ## Changes Made ### Modified files -`path/to/file`: what was specifically changed ## Expected Outcome (Expected changes to search_coverage) ## Actual Outcome (Fill in after eval completes) - search_coverage: before -> after - overall: before -> after - completeness: before -> after - diversity: before -> after 37 ## VI. Optimization Space The agent may freely decide the direction and extent of optimization. Modifiable files are listed in the snapshot list in Section IV. The sole non-modifiable items are the evaluation services:JudgeSearchQueryDiversityAPIService.pyand JudgeSearchQueryDiversity_ZH.jinja2. ### Diagnosis-to-Action Mapping Based on the data and reasoning insummary.md, once the problem is located, take action according to the following mapping: SymptomPossible CausePriority Target Manyqueries returnlow- relevance docs (low highrelevanceratio) Search queries too broad / abstract, weak connec- tion to query Searchquerygenerationguide- linesinoutlinetemplate; _generate_additional_queries logic in API All search queries un- der a blueprint are low quality Blueprint decomposition drifts from core query in- tent Blueprint update strategy in outline template; IntentPlanner_ZH.jinja2 Insufficientsearch querycount(low searchquerycount) min_query_per_blueprint ormin_query_lentoo low Gin configuration parameters Manyduplicate /near-synonym queries Insufficientdeduplica- tion logic; prompt does not emphasize diversity _extract_search_queriesinAPI; search query guidelines in outline template Low doccount (few documents returned) Search queries too niche / specialized / long Outline template (add broad+narrow mix);_broaden_queries, _truncate_long_queries in API completenessreasoning points to missing di- mensions Incomplete blueprint cov- erage Outlinetemplate(diver- sityrequirementssection); IntentPlanner_ZH.jinja2 docavgrelevance highbut searchcoverage low A few queries severely drag down the overall score; or snippets are se- mantically highly over- lapping Identify low-quality queries; if snip- pets overlap, increase differentiation between search queries docavgrelevance generally high (>0.6) but snippets do not actually support the query SummaryQA scoring too lenient: docs related to blueprint but not to user question received high scores template/SummaryQAGeneratorBlueprint_ZH.jinja2 â tighten judge scoring criteria; em- phasize direct relevance to user question docavgrelevance generally low (<0.3) SummaryQA scoring too strict; or search results are genuinely not relevant Firstchecksearchqueryqual- ity;ifqueriesarereason- able but scores are low,read SummaryQAGeneratorBlueprint_ZH.jinja2 to check if scoring criteria are too strict Supplementary queries generated by _generate_additional_queries are low quality Regex-based supplemen- tation strategy generates irrelevant queries Rewrite _generate_additional_queries or adjustmin_query_per_blueprint to avoid triggering it ### Strategy 1: Search Query Quality Optimization (most direct impact on searchcoverage) Search queries are the direct driver of search_coverage. Checklist: â˘Specificity: Does each search query have a clear information-retrieval target? Avoid broad queries like âhow is Xâ â˘Relevance: Are the documents returned by the search query relevant to the user query? (Being relevant to a blueprint alone is not enough; it must relate to the original query) â˘Searchability: On the target search engine (Xiaohongshu), can this query retrieve effective content? Entry points: ⢠template/DisentangledOutlineJudgeBlueprintStyleQA_ZH.jinja2â search query generation guidelines (most commonly modified) ⢠harness/api/DisentangledOutlineJudgeBlueprintAPIService.pyâ _validate_and_fix_blueprints, _generate_additional_queries, _check_query_quality ### Strategy 2: Search Query Count and Coverage Does the total number of search queries cover all dimensions of the query? Is the number of queries per blueprint sufficient? 38 Entry points: gin configuration (min_query_len, min_query_per_blueprint, max_query_len) ### Strategy 3: Outline Structure Optimization Blueprints determine the direction of search queries. If blueprints deviate from the core intent of the query, even high-quality search queries will be futile. Whencompleteness_reasoningrepeatedly points to missing dimensions, prioritize fixing this. Entry points: ⢠template/DisentangledOutlineJudgeBlueprintStyleQA_ZH.jinja2 â outline key point update strategy ⢠template/IntentPlanner_ZH.jinja2 â intent analysis prompt ### Strategy 4: Search Parameter Tuning Adjustable parameters such astop_k, filter strategies, etc. (Note:search_engineandnum_searchescannot be modified.) Entry points: gin configuration ### Strategy 5: Post-Processing and Quality Control Deduplication, truncation, expansion, and quality-checking logic applied after search query generation. When analysis reveals that low-quality queries originate from post-processing (e.g., queries supplemented by _generate_additional_queries, queries expanded by _broaden_queries), prioritize fixing here. Entry points: ⢠harness/api/DisentangledOutlineJudgeBlueprintAPIService.py â_smart_split_query, _truncate_long_queries, _broaden_queries, _check_query_quality ### Strategy 6: Search Query Effectiveness Feedback Mechanism The Memory system extracts the actual retrieval effectiveness of search queries for the same query from historical traces, and injects this information into the pipeline LLMâs prompt at runtime to help it generate more effective search queries. Design principles: â˘Exact query matching only: Optimal search strategies vary greatly across different query types; fuzzy / global matching introduces noise â˘Feed back search query effectiveness data only, do not expose old-round blueprints: Avoids anchoring to old-round outline structures; template instructions (not historical examples) should drive blueprint generation â˘Aggregate cross-round data: The effectiveness of all search queries for the same query across multiple rounds is aggregated to form a whitelist/blacklist of search queries for that query Working mechanism: 1.After each batch eval round, automatically saveharness/memory/traces_timestamp.jsonl, con- taining per-query search query document quality details (per_query_doc_stats:avg_relevance, high_relevance_ratio, etc. per query) 2. At the start of the next round, for each query, exactly match historical traces and aggregate effective- ness data across all historical search queries (when the same query appears in multiple rounds, use the most recent data) 3.Divide into high-effectiveness / low-effectiveness groups using ahigh_relevance_ratiothreshold of 0.5 (aligned with the judge scoring criterion ârelevance score> 0.5â) 4.Format and inject into the user prompt atturn_id=0. The system prompt of the outline generation template contains âHistorical Search Query Effectiveness Feedback Usage Instructionsâ to guide the LLM in utilizing the data Example injected content: ## High-effectiveness queries (3, returned documents highly relevant) - "X brand review": avg_relevance=0.72, 8/10 documents relevant ## Low-effectiveness queries (2, please avoid similar queries) - "how is X": avg_relevance=0.15, 1/10 documents relevant Fallback: If historical traces have no per-query details (old format), only show the search queries and evaluations from low-scoring rounds as negative references when the score gap⼠1.0. Adjustable directions: ⢠Display count limit (currently 5 per group; modify _format_query_performance_feedback) ⢠High / low effectiveness threshold (currently 0.5; modify _format_query_performance_feedback) ⢠Fallback score gap threshold (currently 1.0; modify _format_overall_feedback) Note: During the first batch eval (v0baseline), the memory directory is empty and no feedback will be injected. Takes effect from v1 onward. Sincefixed_sample_size=10guarantees the same set of queries is used across rounds, exact matching is guaranteed to hit. ### Data-Driven Analysis 39 â˘summary.md (must read each round): aggregate metrics, statistics by intent, full case details (including blueprints, search queries, all-dimension reasoning, per-query search query quality distribution and low-quality query details) ⢠details.jsonl: per-case metric details â˘harness/memory/traces*.jsonl: complete trace for each round (including per-query document quality details), for deeper analysis â˘fullresults.jsonl (in the batch output directory): completerun_agentoutput with all intermediate results Do not limit yourself to minor parameter adjustments. If analysis reveals a structural problem, the modifica- tion should be of corresponding magnitude. ## VII. Precautions 1. Working directory: All commands are executed under the project root directory. 2.Donotmodifyrun_batch_agent,extract_metrics,oraggregate_metricsin eval_outline_judge.py. Only modify templates, API service code, and configuration. 3.Evaluatornotmodifiable:JudgeSearchQueryDiversityAPIService.pyand JudgeSearchQueryDiversity_ZH.jinja2must not be modified.These are the final scoring services â modifying the scorer is equivalent to cheating. 4.Each roundâs modifications must be based on bestversion only: Do not continue modifying on top of a regressed version. 5.Read historical changelogs to avoid repetition: Do not retry the same changes that have already failed. 6. Read summary.md before analyzing: Before each roundâs analysis, first readsummary.mdunder thebest_versiondirectory to understand the actual model output (blueprints, search queries, reasoning); do not rely solely on aggregate scores. 7. Read the code before modifying: Before modifying any file, read the complete current version of the code to understand the existing logic. 8. API cost awareness: Each batch round involves calls to Gemini + Google Search + GPT-oss. 9. Template paths: All templates are loaded at runtime from./template/. When modifying templates, edit files under template/; snapshots also store files from template/. 10.Parameter configuration: All API service parameters inrun_agentare controlled via gin con- figuration (test_harness_outline_xhs.gin). To adjust parameters, modify the gin configuration file. 11.Non-modifiable search parameters:search_engine = "xiaohongshu"andnum_searches = 10are fixed and must not be modified. 12.Optimization target: Onlysearch_coverage.meanis the optimization target; all other metrics are for reference and display purposes only. B.2 Prompts in Harness As introduced in Section 2, the outline generator agent is repurposed as a scorer agent, the prompt of which is presented as follows. Prompt: Scorer Agent # Role Definition You are a professional expert in information retrieval and content planning evaluation, specializing in assessing the completeness and diversity of blueprints and search-queries in covering user queries, and capable of performing quality verification based on real retrieval result distribution data. ## Input Description ⢠User query: the userâs original needs and questions ⢠blueprints: a list of outline points, each containing: â content: description of the point â search query: the corresponding list of search queries ⢠Search result distribution data: primarily the relevance judgment scores between documents returned for the search queries and the user query 40 ## Evaluation Dimensions ### Evaluation Dimension 1: Completeness of blueprints and search-queries (completeness) Scoring perspectives: 1. Topic coverage: Do the blueprints and search-queries cover all core topics and sub-topics required to answer the query? 2.Intent recognition: Do they capture both the userâs explicit intent (what is directly asked) and implicit intent (underlying purpose)? 3.Dimension diversity: Are multiple dimensions explored (e.g., background, current status, causes, impact, comparison, trends, recommendations, etc.)? 4.Missing key points: Identify important content points involved in the query but not covered by the blueprints and search-queries. Scoring criteria (0â10): 1.9â10: Fully covers all core dimensions of the query, no obvious omissions, well-balanced dimension distribution 2. 7â8: Covers most core dimensions, with 1â2 minor omissions 3. 5â6: Covers basic dimensions, but with more than 1 important dimension missing 4. 3â4: Limited coverage, multiple important dimensions missing 5. 1â2: Covers only a very small amount of relevant content, severely insufficient 6. 0: Completely fails to cover the content required by the query ### Evaluation Dimension 2: Diversity of blueprints and search-queries (diversity) Scoring perspectives: 1. Perspective diversity: Do the blueprints and search-queries explore different standpoints / roles / group perspectives (user perspective, expert perspective, policy perspective, market perspective, etc.)? 2.Content type diversity: Do they simultaneously cover factual content, analytical content, compara- tive content, and advisory content? 3. Granularity diversity: Is there both a macro framework and micro-level details? 4.Redundancy: Is there a large amount of overlapping or semantically similar content among the blueprints and search-queries? Scoring criteria (0â10): 1. 9â10: Rich and diverse perspectives, comprehensive content types, reasonable granularity distribu- tion, no obvious repetition 2. 7â8: Good diversity, with occasional perspective repetition or type singularity 3. 5â6: Average diversity, with one type or perspective being overly dominant 4. 3â4: Insufficient diversity, content is highly homogeneous 5. 1â2: Severely lacking in diversity, large amount of repetition 6. 0: Completely no diversity ### Evaluation Dimension 3: Search-query retrieval quality (search coverage) Scoring perspectives: 1. Retrieval effectiveness verification: Verified based on the distribution of relevance judgment scores of retrieved content 2.Cross-query result overlap: Whether the semantics of snippets from different retrieved contents are complementary Scoring criteria (0â10): 1. 9â10: All search-query information is sufficiently supported; the majority (above 80%) of search results are highly relevant (relevance score> 0.5) 2.7â8: The majority (above 80%) of search-query content is sufficient, with the information chain basically complete 3. 5â6: 20%â40% of search-query content is insufficient, with information gaps present 4. 3â4: More than 40% of search-query content is insufficient or directionally off 5. 1â2: Most retrieval results are unable to support the corresponding search-queries 6. 0: Completely no relevant content ## Output Format Please strictly output the evaluation results in the following JSON format: 41 Figure 10: Gallery of diverse template styles and types, including slides, posters, and portrait-format images. Our render agent offers extensive stylistic choices, accommodating diverse user preferences. "evaluation": "completeness": "score": 0, "reasoning": "explanation of scoring rationale" , "diversity": "score": 0, "reasoning": "explanation of scoring rationale" , "search_coverage": "score": 0, "reasoning": "explanation of scoring rationale" , "overall": "score": 0, "reasoning": "overall evaluation summary" C Gallery of Templates C.1 Gallery of Templates in Render Agent As described in Section 2.5, the render agent offers a diverse collection of plug-in style templates, representative examples of which are illustrated in Figure 10. 42