You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to share a few ideas, and hope they could be useful:
Since octocode relying on a LanceDB database it seems this addition introduces the need to re-sync or re-index changes, ideally touching re-indexing the changed parts of the code only.
One possible approach could be to leverage Git itself to track the last indexed state. For example, a dedicated "sister" technical/octocode branch could be maintained for each branch (e.g., octocode-main corresponding to main). This branch would store the repository code state at the moment of the last successful DB indexing. While the indexed DB should probably be ignored with git, and likely could be used to store all the information across branches.
With this setup, the system could compute a diff between the current branch and the octocode branch, allowing it to identify only the modified portions of the codebase that require re-indexing.
This approach also presents the ability to capture per-commit graph versioning and build & traverse a unified graph across branches that can be stored as stated before in a dedicated singular database for all the branches.
Hey. It indexes already in this way. When it's in a git repository, we skip indexing of non-committed changes, and once it's committed, we are incrementally indexing it and touching only those that change from the last commit to the current commit. I did not hear about Diffsitter, but it seems worth checking. However, at the moment we have only one copy of the indexed state. So if a branch changes, it may reindex those things that have changed since the last commit was reindexed, and due to those changes, it can trigger more reindexes, which is suboptimal.
Anyway, thanks for the issue. I will take a deeper look into diffsitter.
It would be great to hear the real-life scenario as well as what issues you currently have with indexing the Git repository.
I was thinking along lines of finding a way to also index not committed changes, so user would have more in-sync data what they currently have at hand.
Working on branching. But still not sure about unstaged chagnes indexing. But if this will go through it will be next thing to think about. Here is the pull with wip: #41
Activity
donhardman commentedon Mar 8, 2026
Hey. It indexes already in this way. When it's in a git repository, we skip indexing of non-committed changes, and once it's committed, we are incrementally indexing it and touching only those that change from the last commit to the current commit. I did not hear about Diffsitter, but it seems worth checking. However, at the moment we have only one copy of the indexed state. So if a branch changes, it may reindex those things that have changed since the last commit was reindexed, and due to those changes, it can trigger more reindexes, which is suboptimal.
Anyway, thanks for the issue. I will take a deeper look into diffsitter.
It would be great to hear the real-life scenario as well as what issues you currently have with indexing the Git repository.
qdrddr commentedon Mar 8, 2026
I was thinking along lines of finding a way to also index not committed changes, so user would have more in-sync data what they currently have at hand.
donhardman commentedon Apr 4, 2026
Working on branching. But still not sure about unstaged chagnes indexing. But if this will go through it will be next thing to think about. Here is the pull with wip: #41