query_graph: rows_refs prefix compression makes some results unreadable for agents

Open
#3,186 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active

Research direction

Start by locating the query_graph implementation and the code that formats rows_refs results; the issue does not name specific files or tests. Read how the prefix compression and its expansion data are produced, then check whether results can be made directly interpretable or expose an option or inline expansion table. Done when an agent can reliably recover full values from query results or the expansion process is documented.

Written by the indexing model from the issue text.

Description

parsing/quality

While using codebase-memory-mcp from an LLM agent to review a TypeScript repository, query_graph results that used rows_refs prefix compression were hard to interpret: the agent could not reliably expand the compressed rows back to the full values and recomputed the import data itself with a script instead.

Expected: results an agent can read directly, either by default, or with an option to turn the compression off (or to return the expansion table inline with each result), or with documentation of how to expand rows_refs.

Happy to provide a concrete query and result if useful.

Dominant language
C
Stars
45.8k
Forks
3.8k
Avg merge
2d 18h
Merged PRs (30d)
108

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DeusData/codebase-memory-mcp

All issues in DeusData/codebase-memory-mcp

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.