[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-786489-105":59,"doc-detail-786489-en":130,"doc-similar-786489":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","2026realm-180","2026.realm-1.80","","CodeGrep is a 14B GRPO-trained retrieval agent that helps LLM coding agents find files before editing. On 500 SWE-Bench Verified instances, it preserves OpenHands' resolve rate while reducing rounds 15% and tokens 19% on resolved issues. Its 0.677 precision provides greater downstream utility than BM25 and Jina. The study presents CATM labels mined from 67K agent trajectories, a Git-worktree RL environment, and evidence that advantage-layer efficiency signals stabilize training and improve downstream efficiency.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/2026realm-180/786489/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/2026realm-180/786489.png","ImageObject",300,407,{"name":92,"@type":93},"ZEN01","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-05","2026-12-04",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What is CodeGrep designed to do?","Question",{"text":112,"@type":113},"CodeGrep retrieves candidate code files for LLM coding agents, helping them spend less effort exploring repositories before making changes.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How did CodeGrep affect OpenHands performance?",{"text":117,"@type":113},"Across 500 SWE-Bench Verified instances, it preserved the resolve rate while reducing rounds by 15% and tokens by 19% on resolved issues.",{"name":119,"@type":110,"acceptedAnswer":120},"What training resources and methods does the study introduce?",{"text":121,"@type":113},"The study mines labels from 67K open-source agent trajectories with CATM and builds a Git-worktree environment for multi-turn agent reinforcement learning. It also reports that applying efficiency signals at the advantage layer improves training stability and downstream efficiency.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},786489,1796427465,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},16905019395314,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","CodeGrep: An RL-Trained Retrieval Agent for LLM Coding Agents  \nWuya Chen 1 * and Yihao Yang2 and Yang Cao2 and Yue Lin 1  \n{[chenwuya@corp.netease.com](chenwuya@corp.netease.com) , [13590078189@163.com}](13590078189@163.com}){yihao786, [cy1835208239}@gmail.com](cy1835208239}@gmail.com)  \n[gzlinyue@corp.netease.com](gzlinyue@corp.netease.com)  \n1Netease Guangzhou AI Lab 2Independent Researcher  \nAbstract  \nModern LLM coding agents—Claude Code, OpenHands—share a common inefﬁciency:  \nthey spend most of their token budget ﬁnding the ﬁle to patch, not patching it. On SWE-Bench Veriﬁed, a 30B OpenHands agent averages 23 rounds and 631K tokens per resolved issue, dominated by grep, glob, and view_file calls. No open, systematicallystudied agent-style code retriever exists at scale to shorten this phase. We introduce CodeGrep, a 14B retrieval agent trained endto-end with GRPO to issue multi-turn parallel grep/glob/read tool calls and return candidate ﬁles to a frozen downstream coding agent.  \nOn all 500 SWE-Bench Veriﬁed instances, CodeGrep preserves the downstream resolve rate (25:8% ! 27:0%, +1:2pp) while delivering a much larger efﬁciency gain (􀀀15% rounds, 􀀀19% tokens on resolved instances) .  \nAcross three retrievers, downstream utility follows a precision threshold: BM25 (precision 0:375) degrades the agent, Jina (0:445) is neutral, and only CodeGrep (0:677) crosses the threshold at which retrieval begins to buy efﬁciency. To enable this study, we mine supervision from 67K open-source agent trajectories (CATM) and build a Git-worktree environment for multi-turn agent RL. In our setting, applying the efﬁciency signal at the advantage layer, rather than the reward layer, holds KL drift to one-third and translates cleanly into downstream efﬁciency. We will release the model, training pipeline, RL environment, and evaluation harnesses.  \n1 Introduction  \nModern LLM coding agents—general-purpose assistants like Claude Code (Anthropic, 2025) and open GitHub-issue-solving frameworks like OpenHands (Wang et al., 2024)—share a common inefﬁciency in how they allocate their token budget:  \n* Corresponding author.  \nmuch of it is spent ﬁnding the ﬁle to patch, not writing the patch itself. In this work, we ground this observation on a concrete instance: a 30B OpenHands agent on SWE-Bench Veriﬁed (Jimenez et al., 2023) averages 23 rounds and 631K tokens per resolved issue, with a large fraction consumed by grep, glob, and view_file calls issued in ambiguous exploration loops—often 20+ rounds in a wrong direction before the agent gives up.  \nCan a specialized retrieval submodule shorten this exploration phase? Two hypotheses have not been jointly tested. H1 (effectiveness): better ﬁlelevel retrieval steers the agent past dead-end explorations and raises the resolve rate. H2 (efﬁciency): the agent resolves roughly the same set of issues but with a shorter rollout. Distinguishing them requires evaluating a retriever both on its intrinsic quality and on its downstream effect within the same agent stack—a comparison absent from prior open code retrievers, from lexical (BM25 (Robertson and Zaragoza, 2009)) to static dense encoders (Feng et al., 2020 ; Guo et al., 2021 ; Jina AI, 2024) .  \nWe train CodeGrep, a 14B retrieval agent optimized end-to-end with GRPO (Shao et al., 2024), and evaluate it against BM25 and Jina on SWEBench Veriﬁed. Neither H1 nor H2 holds uniformly: retrieval quality translates downstream through a precision threshold, not a linear payoff. Below the threshold, BM25 (precision 0:375) degrades the agent; near it, Jina (0:445) is neutral; above it, CodeGrep (0:677) cuts 15% rounds and 19% tokens on resolved instances while preserving the downstream resolve rate (+1:2pp) .  \nThree engineering ingredients enable this study. First, CATM (Code Agent Trajectory Mining) mines relevance labels from 67K open-source OpenHands trajectories without human annotation (§3.4) . Second, a Docker-free Git-worktree sandbox reduces per-rollout","cbCailpi3c13FLY8","https://ap.wps.com/l/cbCailpi3c13FLY8","pdf",1220409,17,"English","# Introduction\n# Related Work\n## Code retrieval for SWE-Bench-style agents","[{\"question\":\"What is CodeGrep designed to do?\",\"answer\":\"CodeGrep retrieves candidate code files for LLM coding agents, helping them spend less effort exploring repositories before making changes.\"},{\"question\":\"How did CodeGrep affect OpenHands performance?\",\"answer\":\"Across 500 SWE-Bench Verified instances, it preserved the resolve rate while reducing rounds by 15% and tokens by 19% on resolved issues.\"},{\"question\":\"What training resources and methods does the study introduce?\",\"answer\":\"The study mines labels from 67K open-source agent trajectories with CATM and builds a Git-worktree environment for multi-turn agent reinforcement learning. It also reports that applying efficiency signals at the advantage layer improves training stability and downstream efficiency.\"}]","2026.realm-1.80 | PDF",43,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/59964c523106c850cba909792479b818.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/dd458d86a34176470d2c19e27a01d091.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/57161a6b464c9bb81dec911c9349bb2b.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/07c049cdc2b0f6502e7e22b23e694eac.webp",980,1385,{"list":163,"token":66},[164,170,177,184,191,198,205,212,219,226],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":24,"category_name":30,"create_tm":169},732947,"How to AI an AI for Almost Anything - Lecture 5 - Harness Engineering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031781390/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=h9UMME3EIi6pCkniqOhjjbgJNyE%3D","how-to-ai-an-ai-for-almost-anything-lecture-5-harness-engineering",1795383041,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":30,"create_tm":176},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=B76gBKFcZF%2Fj3EwVbJ2sA2D4lvs%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",1021,1785472614,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=5xD4jcZMf4ig%2FvxW7Z3xCsn9tcE%3D","the-candlestick-trading-bible-trading-guide",932,1789767270,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":30,"create_tm":190},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=kmwQNGSbPXBHeVqgic4Afd9hYn0%3D","xnx-universal-transmitter-installation-manual",870,1776135954,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":30,"create_tm":197},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=zLI%2B1a0cAKqFSMt0CuhpdQA3J0k%3D","free-fire-proxy-server",574,1776135932,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=T82bCd3VTdN%2BR6xNM%2BzSwI%2BXz%2FI%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",517,1786012506,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=VMaflOjGBHVillaUs0Nk8M3al3Q%3D","tiktok-content-tricks-from-0-to-fyp",500,1776338393,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=bfHB9mLNpfptC7KyMldvyKESZEo%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",496,1790287169,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":30,"create_tm":225},14249,"EW 101: A First Course in Electronic Warfare","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229699258216/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=wNMgDI5kP50cHVN1HETwvj0rAlI%3D","ew-101-a-first-course-in-electronic-warfare",484,1776558348,{"doc_id":227,"doc_title":228,"file_type":137,"home_preview_img_url":229,"slug":230,"view_count":231,"category_name":30,"create_tm":232},238737,"Spectrum Channel List 2026","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229894154298/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585819&Signature=eWNzbb9vlFMuyhI8nZk77WSyJYQ%3D","spectrum-channel-list-2026",473,1789139284]