continuedev / continue

⏩ Continue is the leading open-source AI code assistant. You can connect any models and any context to build custom autocomplete and chat experiences inside VS Code and JetBrains
https://docs.continue.dev/
Apache License 2.0
19.71k stars 1.73k forks source link

Index arbitrary folders/files #2660

Open arcuru opened 1 month ago

arcuru commented 1 month ago

Validations

Problem

Codebase is very useful for automatically finding context, but I want to be able to add arbitrary additional data to it. For example, I may have a separate repo for documentation and would like to include that for automatic local retrieval of relevant context, or have local notes on tasks/designs etc. Think analyzing your notes/todos/future plans for context as part of your codebase.

An additional folder makes sense as either indexed as part of the Codebase provider or into the Docs provider. It's easy to imagine local docs for either use case.

Solution

I'm not sure what makes the most sense for implementing. Either including some way to specify additional folders to Codebase index (e.g. .continueinclude file), or a way for the Docs provider to specify a local folder or a git repo, or both.

I workaround this today by taking advantage of how Continue doesn't respect the global .gitignore settings. So I globally ignore a .docs directory, and add any additional documentation in there.

RomneyDa commented 1 month ago

Note, this issue #2739 would offer a workaround for it

by adding a folder e.g. "indexingExtras" to your repo, gitignoring "indexingExtras" and .continueignoring "!indexingExtras"