FS-Researcher: Test-Time Scaling for Long-Horizon Research Tasks with File-System-Based Agents

Chiwei Zhu, Benfeng Xu, Mingxuan Du, Shaohan Wang, Xiaorui Wang, Zhendong Mao, Yongdong Zhang

TL;DR

FS-Researcher is a novel dual-agent framework that overcomes the context window limitations of Large Language Models (LLMs) during complex, long-horizon "deep research" tasks. By utilizing a persistent, file-system-based workspace to separate information gathering from report writing, the framework enables effective test-time scaling. This allows the system to achieve state-of-the-art report quality simply by allocating more computational rounds to the research phase.

What Problem Does This Paper Address?

"Deep research"—where an AI agent must systematically browse the internet, collect evidence, and synthesize it into a comprehensive report—is an emerging frontier for LLMs. However, these tasks often require navigating hundreds of webpages and generating reports exceeding 10,000 tokens, quickly exhausting an LLM's inherent context window limit.

When a single agent tries to handle everything within its context window, thoughts, tool observations, and report drafts compete for the same limited token budget. Existing solutions try to mitigate this by summarizing web pages on the fly, but this is a lossy, temporary fix. Once the agent loop terminates, its internal states are discarded, preventing true iterative refinement and making it impossible to scale performance by simply giving the model more time or compute (test-time scaling).

Figure 1: Different deep research paradigms: (1) Top: Static pipelines and naive single agents that put raw observations in the context; (2) Middle: Agents whose trajectories are ex- tended by compressing the observations, while still bounded by the hard context limit; (3) Bottom: FS-Researcher, an agent framework built on top of an external file system workspace with unlimited context size.

Methods

The authors introduce FS-Researcher, a framework that externalizes an agent's memory into a persistent file-system workspace using standard Markdown files. The architecture splits the research process into a two-stage, dual-agent workflow:

  1. Context Builder: Functions like a digital librarian. It autonomously browses the internet, takes structured notes, and archives raw webpages into a hierarchical knowledge base (KB) that can grow far beyond the model's context length.
  2. Report Writer: Takes over once the knowledge base is complete. It has no internet access and treats the KB as its sole source of truth, composing the final report section-by-section to maintain analytical depth.

Crucially, the workspace includes "control files" (such as automated Todo lists, static quality Checklists, and execution Logs). At the end of each session, the agents review their progress against these checklists, updating task statuses to [PENDING], [IN-PROGRESS], or [COMPLETE]. This allows the system to run over multiple independent sessions, iteratively refining its output without context overflow.

Figure 2: The framework of FS-Researcher.

Datasets

The authors evaluated FS-Researcher across three distinct benchmarks:

  • DeepResearch Bench: A dataset of 100 PhD-level research tasks spanning 22 fields, evaluated on report quality (using the RACE metric) and citation accuracy (using the FACT metric).
  • DeepConsult: 103 business and consulting queries evaluated via a robust, pairwise LLM-as-a-judge protocol.
  • BrowseComp: An agentic search benchmark containing complex, answer-verifiable questions. The authors tested on a randomly sampled subset of 100 queries to provide an objective, verifiable metric.

Key Insights and Ideas

  • The File System as Unlimited Memory: Mirroring how humans use directories and documents to manage large projects allows agents to bypass context limits entirely. File I/O operations are incredibly efficient, accounting for less than 0.03% of total wall-clock time.
  • Successful Test-Time Scaling: The paper successfully demonstrates that allocating more computation rounds (3 vs. 5 vs. 10 rounds) to the Context Builder directly correlates with a larger knowledge base, more unique URLs cited, and a higher-quality final report.
  • The Readability Trade-Off: Interestingly, as the knowledge base grows richer, the Report Writer naturally adopts a denser, more technical writing style packed with inline citations, which can slightly hurt readability scores. The authors show this is easily fixable via a post-hoc rephrasing pass.
  • The Power of Specialization: Merging the two agents into a single workflow causes a massive performance drop. Separating the "gathering" phase from the "writing" phase prevents premature synthesis and shallow exploration.

Key Results

FS-Researcher achieved state-of-the-art results across all evaluated benchmarks:

  • DeepResearch Bench: Paired with Claude-Sonnet-4.5, FS-Researcher reached an overall score of 53.94 RACE, outperforming the strongest baseline (RhinoInsight) by +3.02 points, showing massive gains in comprehensiveness and insight.
  • DeepConsult: It achieved an 80.00% win rate against baseline reference reports when using Claude-Sonnet-4.5.
  • BrowseComp: FS-Researcher significantly outperformed official agent harnesses, boosting accuracy from 43.9% to 55.0% (Claude-Sonnet-4.5) and from 54.9% to 68.0% (GPT-5).
  • Ablation Impact: Removing the persistent workspace dropped the overall RACE score from 52.76 to 48.69, proving that explicit task tracking and structured file storage are vital to the framework's success.

Limitations and Future Work

The primary limitation of FS-Researcher is its heavy reliance on highly capable foundational models. The framework demands strong multi-turn planning, reasoning, and precise function calling to manipulate the file system. When tested with smaller models (like gpt-5-mini), the agents were more prone to file operation vulnerabilities (e.g., incorrect edits or inconsistent state updates) and premature stopping.

However, the authors noted that when smaller models were given more context-building rounds, they achieved performance comparable to top-tier models at a 47% lower cost. Developing a less demanding framework that natively optimizes these file-system interactions for smaller, cost-efficient models remains an important avenue for future research.

Summary updated

BibTeX
@inproceedings{zhu2026fs,
  author = {Chiwei Zhu and Benfeng Xu and Mingxuan Du and Shaohan Wang and Xiaorui Wang and Zhendong Mao and Yongdong Zhang},
  title = {{FS-Researcher: Test-Time Scaling for Long-Horizon Research Tasks with File-System-Based Agents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.288},
}
Figure