Skip to content

feat: bidirectional bridge to codegraff tools #241

@justrach

Description

@justrach

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions