Really interesting project. One thing: why not just save the eviction state to a file automatically when the session ends, and just load it the next time you run context-surgeon in the same project dir? Could context-surgeon do the same as git with the .git folder example, such as with a .surgeon folder? Seems like it would make the tool much more useful for multi-session work.
I like the approach to bring in the context surgeon as a wrapper that sees the conversation and can attach ids to the lines. You might even use the surgeon to replace parts with summaries?
Really interesting project. One thing: why not just save the eviction state to a file automatically when the session ends, and just load it the next time you run context-surgeon in the same project dir? Could context-surgeon do the same as git with the .git folder example, such as with a .surgeon folder? Seems like it would make the tool much more useful for multi-session work.
Good call, next on my todo list, wasn’t a priority for the mvp, but got multiple requests for state persistence
Nice! Glad it’s making the list.
I like the approach to bring in the context surgeon as a wrapper that sees the conversation and can attach ids to the lines. You might even use the surgeon to replace parts with summaries?
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
[dead]
[dead]