jev-gc: A Context Garbage Collector for LLM Agents, Built With Claude

Maleficent_College57 · reddit · 2026-09-22

Frustrated by agent context windows filling with stale tool results and dead-end investigation, the author open-sourced jev-gc. It hooks into OpenTelemetry spans and decides in real time what stays in the next prompt, what gets compressed to a pointer, and what gets archived — no hard deletes. Cheap deterministic rules (pins, errors, recency, staleness) handle most cases; only genuinely ambiguous relevance calls go to a small classifier. Built by pairing with Claude. The author admits it's experimental — a keyword baseline can't separate relevant from irrelevant tool results while the classifier can, but there's no large-scale before/after yet — and is soliciting feedback on whether the problem and the design shape are right. Repo: adigulalkari/JevGC.

Original post →

More from coding & agent

coding & agent channel →