For repository-scale code generation, pinpointing and retrieving context for critical decision points during generation is more effective than providing all repository context upfront.
This paper introduces ACToR, a system that improves code generation for large repositories by identifying 'critical tokens'—key positions where errors are most likely to occur—and retrieving relevant repository context specifically when generating those tokens.