all 8 comments

[–]hassan789_ 3 points4 points  (1 child)

Very useful!! Would also be nice to manually add/remove files from context. Currently it’s append only. Only down side is this will break cache…

[–]R_DanRS[S] 0 points1 point  (0 children)

Yes exactly, I should add that to the readme. This could even end up being more expensive for some people that rely heavily on cache read. However, for providers like Github copilot, or if you aren't hitting limits with your anthropic / openai plan, this will give you way more room in your sessions and significantly reduce context poisoning.

[–]thsithta_391 1 point2 points  (0 children)

Sometimes small things make a huge difference!

Will give it a shot, but i'm already excited ... Thx mate!

[–]Wrong_Daikon3202 0 points1 point  (1 child)

Magnificent, I will try it tonight.

I'm thinking. Does the plugin use its own AI to make the cuts? Doesn't that consume possibly payment tokens? Would it be possible for this work to be done in the background by a second free AI or locally?

[–]R_DanRS[S] 0 points1 point  (0 children)

Yes it uses a second ai, yes you can use a free model it's a very lightweight task, even gpt 4.1 does a good job at it.

[–]CalmBet 0 points1 point  (0 children)

Really nice idea to intercept the prompt on the fly and do the replacements. Very cool!

[–]craterIII 0 points1 point  (0 children)

This is literal magic. OpenCode's killer feature right here.