codedb currently indexes code. codegraff tools currently search and edit code. Neither knows the other exists.
This issue tracks adding a lightweight bridge so codedb can push index results into the codegraff tool pipeline, and the tool pipeline can request lookups from codedb directly — making both sides smarter without duplicating work.
What codedb needs:
- A way to expose word-index and symbol lookups over a local socket or stdio protocol that codegraff tools can call
- A way to consume frecency signals from codegraff tools so the index can surface hotter files/symbols first
Shape of the interface (protocol is TBD):
codedb <──────────────────────────► codegraff tools
word_lookup(keyword, path)
symbol_lookup(name, path)
◄── frecency_hint(file, score)
Both processes run locally; no network, no auth. If codedb isn't running, the tool side degrades gracefully.
Related: justrach/zigrepper#88
codedb currently indexes code. codegraff tools currently search and edit code. Neither knows the other exists.
This issue tracks adding a lightweight bridge so codedb can push index results into the codegraff tool pipeline, and the tool pipeline can request lookups from codedb directly — making both sides smarter without duplicating work.
What codedb needs:
Shape of the interface (protocol is TBD):
Both processes run locally; no network, no auth. If codedb isn't running, the tool side degrades gracefully.
Related: justrach/zigrepper#88