Reasoning over repository structure and task intent
Repo-level coding work is getting stricter about what counts as understanding. LogicLoc targets cases where the prompt gives no file names or identifier hints, then converts the request into Datalog over extracted program facts. The paper’s own example asks for functions with more than 15 parameters and returns two exact matches in Astropy. REA-Coder makes the same point at generation time. It checks whether the model understood the requirement before and after writing code, then rewrites the task when the understanding is off. Across 20 model-benchmark settings, it beats eight baselines, with especially large gains on CodeContests and CodeContests-raw.