Inject file-specific context into new or edited files as comments #3965
ericfitz
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Note: this is subtly different than other "add context for" asks - I am not asking to bring external data into the current session context, I am asking to inject context into files as comments
LLMs have a tendency to lose or minimize early context in long sessions.
However, the file-based nature of working with source code gives a unique ability to refresh context frequently, as files are frequently read.
I would like Roo Code to automatically add little bits of context to any file it's editing or generating, in the form of comments, if the file format permits comments.
For example, I have a typescript project that uses Vitest for unit testing, Cypress for integration/e2e testing, and I don't use jasmine or jest anywhere, nor do I use jasmine format even though there's some compatibility in vitest. In longer sessions fixing broken tests or implementing new tests, over time both Sonnet and Gemini (especially Sonnet) will start using jasmine format.
It would be awesome if when Roo Code uses the LLM to create or edit each .spec.ts file for the first time, it added a comment like:
Roo would need some UX for the user to configure what bits of context go into such context for different file types.
Beta Was this translation helpful? Give feedback.
All reactions