Master’s Research Paper Presentation • Artificial Intelligence | Machine Learning • Context Compaction for Coding Agents: A Survey

Monday, December 7, 2026 2:00 pm - 3:00 pm EST (GMT -05:00)

Please note: This master’s research paper presentation will take place in DC 3317.

Tien Dat Nguyen, Master’s candidate
David R. Cheriton School of Computer Science

Supervisor: Professor Mei Nagappan

Coding agents driven by large language models solve software engineering tasks over hundreds of interaction turns, so the history they accumulate grows without bound. This raises the cost of each model call, degrades the model’s recall, and eventually exceeds the context window. Many techniques address this under different names, including masking, summarization, folding, pruning and trimming. This survey groups them under the term context compaction. Drawing on a corpus of 19 papers, it describes the mechanisms of 22 compaction techniques and organizes them along two dimensions: where the decision to compact is made, and what mechanism decides which content is kept. It also consolidates the metrics used to evaluate these techniques into formally defined measures of task quality, efficiency and interaction length. To the author’s knowledge, it is the first survey devoted to compacting the accumulated interaction history of coding agents.