Trajectory and context cleanup
Agent traces are becoming inputs to cleanup rather than disposable logs. TRIM reconstructs repair trajectories and removes edits only when tests still pass, cutting redundant patch content by 17.8%–32.9%. SWE-Pruner Pro reads the coding model’s hidden states to discard irrelevant tool-output lines, reporting token reductions of up to 39.4% while largely preserving benchmark quality. Together, they show two practical ways to reduce residue from long agent runs: minimize the final patch and compress the working context.