Insert Edit into File Hook #1886
Replies: 1 comment 1 reply
-
Hey @jacobdaddario Some very well made points. Another event, say As I approach agent mode, it does feel like a gap to not navigate a user to the buffer being modified. It also feels like it should be something CodeCompanion does. It's good to have an event, regardless, but really the plugin should be doing that heavy lifting especially in the It's been a while since I've touched the UI so I'm not sure how challenging it would be to preserve the chat buffer layout and navigate to the buffer being edited. Let's use this discussion to brainstorm. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Oli!
Thanks for taking the time to work on this plugin. I've recently put together a really fun agentic flow that I'm quite proud of, but it's run me up against a part of the library that I'd like to see if we could modify.
Basically, I'd like CodeCompanion to always show me a file before writing edits to it. It's doing the driving, so I need to see where it's looking. I've tried very very hard to get it to do this with
next_edit_suggestion
, but it has stubbornly refused to do so correctly.As a consequence, I've investigated adding the ability to jump to the chosen file myself. I attempted this two ways.
I have two different propositions for you on this matter.
args
data to allow other developers to add tool hooks which extend functionality based on theargs
that the LLM returns.insert_edits_into_file
tool.The first suggestion should be pretty easily to implement and is more robust. Regardless, let me know what you'd be interested in pursuing.
Beta Was this translation helpful? Give feedback.
All reactions