ContextSniper: AntTrail's Token-Efficient Code Memory for Repository-Level Program Repair
When a coding agent fixes a bug in a big repository, it typically reads whole files and scrolls long terminal output, burning its budget on noise before reaching the lines that matter. This paper indexes the codebase and the agent's own action history, ranks evidence, and filters tool output into a compact packet, the full file one lookup away if needed. Tested on two coding agents on real GitHub bug-fix tasks, tokens fell 51.5% and cost 36.4% for one agent (38.9%/27.3% for the other), fix rate unchanged — worth copying if your agent still re-reads whole files for answers a lookup could give.