News for hackers. Stuff that matters.

jdjdjdi

Good call, next on my todo list, wasn’t a priority for the mvp, but got multiple requests for state persistence
Yes! The replace command lets the agent write their own summary for any tool result or message or a single summary referring to several turns

Show HN: Context Surgeon – Let AI agents edit their own context window

https://github.com/jackfruitsandwich/context-surgeon

AI agents accumulate stale tool results — file reads, web fetches, bash outputs — in their context window. Every one sits there for the entire conversation, consuming tokens and degrading quality. The standard fix is auto-compaction: wait until full, then drop content indiscriminately.Context Surgeon gives the agent three operations — evict, replace, and restore — so it can manage its own...

( Read More... | 5 comments | 3 points | on HN )