Replies: 1 comment 1 reply
-
Ahhh yes. It was something I mulled over for many months. I wrote about this in my "essay" when I introduced workspaces. My findings aligned to that of the author of this awesome blog post:
That's why I went the direction I did with workspaces and opted against implementing indexing. And tbh, it's paying dividends in CodeCompanion. I'm in the middle of refactoring workflows and it's been brilliant. It feels like the LLM has a much deeper understanding of my work than if I'd have just shared 10+ files with it. I think an indexing solution could have a place in the plugin, however it would need to be able to generate something akin to a workspace file / context management system output. I know Aider also uses Tree-sitter to build up a map of a repo which is very similar to the The downside of the approach that myself and the blog author have taken is that users need to invest time to curate the workspace file. For some in 2025, that's an activity they probably can't be bothered to do 😆. |
Beta Was this translation helpful? Give feedback.
-
I've been using Codecompanion.nvim about six months and find it to be the most flexible AI plugin for Neovim, providing an excellent experience overall. However, I believe it could benefit greatly from implementing code base indexing. This feature, present in tools like Aider and Cursor, allows for a more context-aware AI assistance, which is crucial for working with large projects. Just now I do, and I find myself often jumping to one of the mentioned tools to perform refactors and improvements. Adding this capability would significantly enhance Codecompanion.nvim's already impressive functionality. I know Aider is using ctags and it is quite impressive. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions