gemini-cli issue proposes model-judged context pruning for junk tool outputs
nicezic · ghdev · 2026-11-05
A new gemini-cli issue proposes letting the model swap a junk tool output for a one-line, model-judged summary before the turn ends, so later turns stop re-sending megabytes of irrelevant content. Key points: prevention can't work since you open files precisely because you don't know their contents — this gives the model the ability to "look away"; prefix-based implicit caching keeps costs low since only the tail is re-cached; and removing junk grows the effective window nonlinearly (+11% at 10% junk share, +100% at 50%), delaying compaction. Includes a demo GIF and full sequence diagrams; currently awaiting triage.
More from coding & agent
- Gemini /teamwork agents caught live: four parallel task logs all running that second — RyanSpunk · 2026-11-13
- Codex CLI 0.168.0 adds model provider picker, side-by-side TUI workspace and animated GIF generation — github-actions[bot] · 2026-11-13
- Free MCP server lets Claude read Altium, Allegro, KiCad and Gerber PCB files directly — woodisruff · 2026-11-13
- a16z Partner Clones Open-Source Game with Fable 5.2 Agent, Which Finds Its Own Horse Animation Asset — FinanceYF5 · 2026-11-13
- OpenAI team shares how it runs and governs fleets of persistent agents internally — romainhuet · 2026-11-13
- Perplexity's Decider scanned 1B tokens across 7,000 agent sessions, found 14 security fixes — denisyarats · 2026-11-13