GrepSeek: Training Search Agents for Direct Corpus Interaction
On the map: LLM agents and tool use → Web, search, and research agents
Abstract (arXiv)
Large Language Model (LLM) search agents have shown strong promise on knowledge-intensive tasks through iterative reasoning and retrieval. Most existing systems rely on retrievers that return ranked documents from a pre-built index. We explore a complementary paradigm in which the agent treats the corpus as the search environment and finds evidence through executable shell commands. We introduce GrepSeek, an optimized direct corpus interaction (DCI) agent that learns to find, filter, and compose evidence over large text corpora. To stabilize reinforcement learning (RL) over large corpora, we train in two stages: first, we initialize the policy using verified, causally grounded search trajectories generated by an answer-aware Tutor and an answer-blind Planner; then, we refine the policy using Group Relative Policy Optimization (GRPO). To make DCI practical at scale, we introduce two semantics-preserving execution optimizations: Pruned Adaptive Command Execution, which reduces shell-based search latency by up to 77× on a 14GB corpus with 21 million documents using a compact auxiliary structure, and Sharded-Parallel Corpus Search, which achieves up to 7.6× speedup without additional preprocessing; both preserve equivalence with sequential execution. Across eight open-domain QA benchmarks, GrepSeek achieves the strongest overall performance, with a statistically significant relative improvement of 5.7% over the best baseline. Our analysis shows how DCI-optimized agents conduct flexible and effective compositional search through direct corpus interaction.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 34 of its 78 references that are in the map. First posted on arXiv 28 May 2026.
Builds on
34 of 78 references.
Closest ancestors · 9
Same direction, newest first
- 2026Is Grep All You Need? How Agent Harnesses Reshape Agentic Search14 May
- 2026Beyond Semantic Similarity: Rethinking Retrieval for Agentic Search via Direct Corpus Interaction3 May
- 2026CoSearch: Joint Training of Reasoning and Document Ranking via Reinforcement Learning for Agentic Search19 Apr
- 2026Total Recall QA: A Verifiable Evaluation Suite for Deep Research Agents19 Mar
- 2026Beyond Monolithic Architectures: A Multi-Agent Search and Knowledge Optimization Framework for Agentic Search8 Jan
- 2025Keyword search is all you need: Achieving RAG-Level Performance without vector databases using agentic tool use19 Dec
- 2025Beneficial Reasoning Behaviors in Agentic Search and Effective Post-training to Obtain Them8 Oct
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agent8 Aug
- 2025Search-o1: Agentic Search-Enhanced Large Reasoning Models9 Jan
Other references · 25
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,371
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
13 more
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
- 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
- 2025BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agentscited by 616
- 2021SPLADE: Sparse Lexical and Expansion Model for First Stage Rankingcited by 283
- 2024FlashRAG: A Modular Toolkit for Efficient Retrieval-Augmented Generation Researchcited by 165
- 2025SimpleDeepSearcher: Deep Information Seeking via Web-Powered Reasoning Trajectory Synthesiscited by 55
- 2022Retrieval-Enhanced Machine Learningcited by 46
- 2022Code Search: A Survey of Techniques for Finding Codecited by 18
- 2026Better Call Grep: Evaluating and Improving Grep-Like Lexical Retrieval for Repository-Level Code Completioncited by 4
- 2025STARQA: A Question Answering Dataset for Complex Analytical Reasoning over Structured Databasescited by 2
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimizationcited by 4
- 2026Dr-DCI: Scaling Direct Corpus Interaction via Dynamic Workspace Expansioncited by 3
- 2026A New Role for Relevance: Guiding Corpus Interaction in Agentic Searchcited by 3
- 2026Why Git Is the Memory Solution for the Agentic Development Lifecyclecited by 0
- 2026Fetch-then-Explore: Decoupling Selection from Extraction over a Persistent Workspace for Search Agentscited by 0
- 2026Projecting BrowseComp-Plus onto ClimbMix: Toward More Realistic Corpora for Agentic Searchcited by 0
- 2026SearchWiki: Learning to Build and Navigate Knowledge Wikis for Active Information Seekingcited by 0
- 2026ExpVoyager: Direct Experience Navigation for Dynamic Agent Skill Synthesiscited by 0
- 2026Follow the Entities: A Corpus Map for Agentic Searchcited by 0
- 2026RunningTab: Direct Workspace Interaction with Environment-Side Tabscited by 0
- 2026RunningTab: Direct Workspace Interaction with Environment-Side Tabs7 Oct 2026
- 2026Follow the Entities: A Corpus Map for Agentic Search29 Sep 2026
- 2026ExpVoyager: Direct Experience Navigation for Dynamic Agent Skill Synthesis26 Sep 2026
- 2026SearchWiki: Learning to Build and Navigate Knowledge Wikis for Active Information Seeking30 Aug 2026
- 2026Projecting BrowseComp-Plus onto ClimbMix: Toward More Realistic Corpora for Agentic Search20 Aug 2026
- 2026Fetch-then-Explore: Decoupling Selection from Extraction over a Persistent Workspace for Search Agents3 Aug 2026
- 2026A New Role for Relevance: Guiding Corpus Interaction in Agentic Search27 Jul 2026
- 2026Why Git Is the Memory Solution for the Agentic Development Lifecycle15 Jul 2026
- 2026Optimizing CUDA like a Human: Micro-Profiling Tools as Expert Surrogates for LLM-Based GPU Kernel Optimization24 Jun 2026
- 2026Dr-DCI: Scaling Direct Corpus Interaction via Dynamic Workspace Expansion12 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025SEM: Reinforcement Learning for Search-Efficient Large Language Models
- 2026Enhancing LLM-based Search Agents via Contribution Weighted Group Relative Policy Optimization
- 2025Search Wisely: Mitigating Sub-optimal Agentic Searches By Reducing Uncertainty
- 2025WebSeer: Training Deeper Search Agents through Reinforcement Learning with Self-Reflection
- 2025Reinforcement Fine-Tuning for Reasoning towards Multi-Step Multi-Source Search in Large Language Models
- 2026Retrieval, Reward, and Training Protocols: What Matters in Training Search Agents?
- 2026SearchArt: Training Long-Horizon Search Agent with Scalable Synthetic and Verified Task
- 2026Search-GRT: Guided Retrieval Training of Search Agents to Optimize for Complex Question Answering