4 pointsby jdjdjdi5 hours ago2 comments
  • eitanlebras2 hours ago
    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.
  • axeldunkel4 hours ago
    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?
    • jdjdjdi4 hours ago
      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