New in v11.0.0 - ✨References can be pinned in the chat buffer #575
Replies: 3 comments 12 replies
-
I found the Or I have not got the right way to use it? |
Beta Was this translation helpful? Give feedback.
-
Thank you for all those updates. Congratulations on reaching v11 as well! As I understood from your plans for @editor, currently, only the #buffer variable is sending line numbers to the LLM, is that correct? I’ve always wondered why we have the /buffer slash command and the #buffer variable (even though I know I can send multiple buffers in slash commands). Personally, I prefer sending the line numbers directly to the LLM. |
Beta Was this translation helpful? Give feedback.
-
@olimorris so the new pinning functionality is working wonderfully! Nice work! I do have one question / "issues" in reference to your quoted statement from above:
You are indeed correct that the token count increases quite drastically depending on what file(s) you pin. One thing that would help tremendously though is if when you pin a buffer/file, you can have it remove the old messages that have the old copies of the buffer content. My main use case is to just want to be able to keep chatting with the most up to date buffer content (which the pin does) and rarely have use case of needing the countless other duplicate messages with the buffer content (at old states). The main problem is this exponentially increases the token count as each time you submit a message that is pinned, the token count just for the buffer contents turns into It feels like maybe there is room for another "state" for pins where you have 1. Un-pinned 2. Pinned (as currently works) 3. Pinned (latest buffer contents only... removes the previous buffer content messages from the history). Does this make sense? Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hope you're all enjoying the holiday season. I've totally needed the downtime and have been able to crank out v11.0.0 in the last day which had been on the cards for sometime. Alas, life and other priorities take over.
Introducing Pins
I'm pleased to announce that in the latest release you can now "pin" buffers and files in the chat buffer.
What does this mean exactly?
Well it means that every time you send a message to an LLM, the plugin will fetch the content from the pinned buffer/file and add it alongside your message. Previously, you would have had to manually re-add the contents of the reference to the message stack, which was a huge nuisance especially if you were using the
@editor
tool.What.s.New.in.v11.0.0.mp4
How do I use it?
In the chat buffer, move over a reference and press
gp
to pin it. You will see a pin icon appear next to the reference. This icon can also be changed in your config. Of course, you can also unpin a reference. As seen in the video above, I actually choose to pin the reference in the second message but could have done it in the first.What actually happens?
The whole contents of the buffer or file is added to the message stack before your current message. This happens every time for the duration that the reference is pinned. So please be mindful of token consumption.
Where does it work?
Pins work for the file and buffer slash commands and also for the
#buffer
variable.Breaking Changes
There are two breaking changes in this release:
strategies.agent
tostrategies.chat.agents
. This should have happened looooong ago!execute
function within their class is renamed tooutput
. You will also need to ensure that they implement aself.Chat.add_message
function to add content to the chat buffer's message stack.Roadmap for
v11.*
Things I'm aiming for in
v11.*
:@editor
agent to work with the File and Buffer slash commands. Currently it's scoped to work with line numbers and those functions just share the contents without line numbers@editor
and@cmd_runner
tools working alongside pins to edit buffers or files, run tests, see the impact and determine next steps.As always, if you like this release, I'm always open to a coffee 😃.
Wishing you all the best for 2025!!
Beta Was this translation helpful? Give feedback.
All reactions