Context window efficiency is a practical constraint in large language model (LLM)-based developer tools. Paulsen [12] shows that all tested models degrade in accuracy well before their advertised context limits the Maximum Effective Context Window (MECW) which makes context construction a quality problem, not just a cost one. Modern software repositories routinely contain large non-code artifacts compiled datasets, binary model weights, minified JavaScript bundles, and gigabyte-scale log files that overflow the context window and push out task-relevant source code. We present a correctness-aware context hygiene framework: a pre-execution, size-based heuristic filter that intercepts repository scans before tokenization, using only OS-level stat() metadata with sub-millisecond overhead. Semantic retrieval approaches such as RepoCoder, GraphRAG, and AST-based chunking require index construction and query-time inference before any filtering decision is reached. Our framework, by contrast, requires no indexing and operates at <0.01 ms per file decision. Across 10 real open-source repositories (22,046 files, 5 languages), the proposed SizeFilter at θ=1 MB achieves 79.6% (\pm13.2%) mean token reduction at 0.30 ms overhead: the HybridFilter achieves 89.3% (\pm9.0%) the lowest variance of any filter evaluated. A token-density study across 2,688 files confirms a strong linear correlation (Pearson r=0.997, k=0.250 tokens/byte). A limited-scope evaluation (18 tasks, CodeLlama-7B-Instruct) yields 72% file-level accuracy under filtering versus 25% at baseline; hallucination frequency declines from 61% to 17%. All code and data are released for reproducibility.
FastCoder: Accelerating Repository-level Code Generation via Efficient Retrieval and Verification
1 State Key Laboratory of Complex \& Critical Software Environment, School of Computer Science;Engineering Beihang University, China;2 School of Software, Beihang University, China;3 Peking University, China
TDD-Agent: Test-Driven Reasoning for Code Generation
National College for Excellent Engineers, Beihang University(北京航空航天大学卓越工程师学院);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);Qingdao Research Institute and Hangzhou Innovation Institute, Beihang University(北京航空航天大学青岛研究院与杭州创新研究院);School of Software, Beihang University(北京航空航天大学软件学院)
RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completion
School of Science and Engineering, The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳)理工学院);Sun Yat-sen University(中山大学);University of California, San Diego(加利福尼亚大学圣地亚哥分校);Hangzhou Dianzi University(杭州电子科技大学);Shenzhen Future Network of Intelligence Institute (FNii-Shenzhen)(深圳未来网络智能研究所);Guangdong Provincial Key Laboratory of Future Networks of Intelligence, CUHK(SZ)(香港中文大学(深圳)广东省未来网络智能重点实验室)
DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detection
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
ChiseLLM: Unleashing the Power of Reasoning LLMs for Chisel Agile Hardware Development
Computer Department National University of Defense Technology(国防科技大学计算机系);School of Computer & Communication Engineering University of Science and Technology Beijing(北京科技大学计算机与通信工程学院);Intelligent Microelectronics Center Qiyuan Lab(智能微电子中心启元实验室);College of Computer Science and Technology National University of Defense Technology(国防科技大学计算机科学与技术学院);Defense Innovation Institute Academy of Military Science(军事科学创新院)
Beyond Repository Boundaries: Cross-Repository Graph Retrieval for Code Generation
Quantum AI & Cyber Security Institute, FPT Corporation(量子人工智能与网络安全研究所,FPT公司);Hanoi University of Science and Technology(河内科学技术大学);Rutgers University(罗格斯大学);The University of Melbourne(墨尔本大学);Center for AI Research, VinUniversity(VinUniversity人工智能研究中心)
Beyond Correctness: Enhancing Architectural Reasoning in Code LLMs via Scalable Labeling with Agentic Judgment
Centre for Software Excellence, Huawei Canada(华为加拿大软件卓越中心);Department of Computer Science, University of Manitoba, Canada(曼尼托巴大学计算机科学系);School of Computing, Queen’s University, Canada(皇后大学计算科学学院)
FEA-Bench: A Benchmark for Evaluating Repository-Level Code Generation for Feature Implementation
State Key Laboratory of Multimedia Information Processing, School of Computer Science, Peking University(信息处理国家重点实验室,计算机学院,北京大学);Microsoft Research Asia(微软亚洲研究院)
CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation
School of Computer Science, Wuhan University(武汉大学计算机学院);School of Computer Science, Nanjing University of Science and Technology(南京理工大学计算机学院);School of Computer Science, Central China Normal University(中央财经大学计算机学院);School of Computing Technologies, RMIT University(皇家墨尔本理工学院计算技术学院);M3S Research Group, SEIS Unit, University of Oulu(奥卢大学M3S研究组,SEIS单元)
RealSec-bench: A Benchmark for Evaluating Secure Code Generation in Real-World Repositories
Sun Yat-sen University(中山大学);Nanyang Technological University(南洋理工大学);Alibaba Group(阿里巴巴集团);The State Key Laboratory of Blockchain and Data Security, Zhejiang University(浙江大学区块链与数据安全国家重点实验室)