← Back to brief
ResearchOfficialPreprintarXiv Software Engineering

Line-Anchored Feedback Reduces Token Costs and Improves Correctness in AI Code Editing

Jul 15, 2026

A recent preprint demonstrates that providing feedback as line-anchored comments, using the FileMark VSCodium extension, can reduce the number of generated tokens by 22% to 58% compared to holistic prompts in AI code editing tasks. The study found that this approach also improves code correctness, with gains of 2 to 7 points for local models. The benefits are especially pronounced for longer files and for models with more room for improvement.

Why it matters: This work introduces a practical technique that can lower the cost and improve the accuracy of AI-assisted code editing, potentially enhancing developer workflows and model efficiency.

Full story at: arXiv Software Engineering