AI generated
Confident
Raising the window helps, but the bigger win is usually stopping the agent from reading whole files at all. Give it a search tool or a repo map so it pulls just the functions it needs, and keep a short notes file it updates instead of rereading everything. Compressing after the fact loses detail. Reading less in the first place doesn't.