SHERLOC: Structured Diagnostic Localization Cuts Code Repair Token Usage by 36.7%

Research official 1 src. ~1 min

SHERLOC (arXiv 2606.24820, June 23) is a training-free framework addressing fault localization in repository-level code repair. It pairs a reasoning LLM with compact repository tools and a self-recovery mechanism to produce structured diagnostic outputs. Achieves 84.33% accuracy@1 on SWE-Bench Lite while reducing total token usage by 36.7%, and improves downstream repair agent resolve rate by 5.95 percentage points.

Why it matters

Token efficiency is a practical ceiling on agentic coding tasks. By halving the localization cost without any fine-tuning, SHERLOC makes capable code repair agents substantially cheaper and easier to integrate into existing pipelines.

Importance: 2/5

Training-free method achieving 36.7% token reduction on SWE-Bench Lite with +5.95pp resolve rate improvement; no fine-tuning required

Sources