arXiv AI

ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair

arXiv:2607. 01916v1 Announce Type: new Abstract: Large language model agents can repair real repository issues, but they often spend large context budgets on whole-file reads, broad searches, and long terminal outputs where useful evidence is mixed with irrelevant code and logs.

arXiv AI
Nov 6

How Should Agents See Code? Rethinking Code Representations for Agentic Software Engineering

The paper explores five map‑based code‑representation workflows—abstract syntax trees, call graphs, module dependencies, documentation‑enriched search, and a hybrid of these—to see how they affect large language model agents performing repository‑level software engineering tasks. Experiments with Claude Code on four benchmarks show that these representations can improve recall and reduce token usage for fault localization, but their impact on code generation, repair, test creation, and security patching is mixed and often increases latency. The study concludes that map‑based workflows offer task‑specific advantages rather than a universal performance boost.

By Melika Sepidband, Jiho Shin, Song Wang, Hadi Hemmati
arXiv AI
Nov 5

A.S.E 2.0: Understanding How Repository Context Impacts the Security of LLM-Generated Code

The paper introduces CASE-Bench, a benchmark of 145 repository-level tasks derived from real CVEs across 51 projects, each run in Docker with functional tests and proof‑of‑concept exploits. It evaluates 13 context‑construction methods and six controls across six LLMs, showing that functionality‑oriented context improves functional pass rates by up to 8.2 pp but only 3.7 pp for security, that omitting safeguards can drop secure pass rates by 8.1 pp, and that coding agents see relevant safeguards in only 27‑36 % of trajectories. These results highlight how repository context shapes the security of LLM‑generated code and guide the design of security‑aware context construction and evaluation.

By Jiongchi Yu, Keke Lian, Junqing Wang, Zhikang Fan, Zhaoxuan Li, Yongheng Huang, Ziming Zhao, Dong Zhang