Option to name a session's project (an index made with `name` is never watched)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- developer-experience
Research direction
Start with cbm_mcp_server_set_session_context and detect_session in src/mcp/mcp.c, then trace how index_repository handles its name option and how the session watcher selects a project. The issue proposes an environment variable, CBM_SESSION_PROJECT, normalized like name; compare that behavior with the current path-derived name. Done means a session can watch and refresh the index created under the chosen name, while an unset option preserves current behavior.
Written by the indexing model from the issue text.
Description
index_repository takes name, but a session's project is always the name derived from its root path (cbm_mcp_server_set_session_context and detect_session, src/mcp/mcp.c). When a checkout was indexed under a chosen name, a session started in that checkout still follows the path's name: the watcher registers a project that has no index and never refreshes the named one, so edits made during the session do not reach the graph.
Measured on v0.12.1: a function added to the checkout shows up in search_graph about 15 s later when the index has the path's name, and not at all (90 s) when the same index was built with name.
We choose the name because the path-derived one is repeated in every qualified name. One repository of ours indexes to 918 MB under the name derived from a 150-character checkout path and to 367 MB under a 13-character name.
Could a session take its project name from an option? We run a small patch that reads an environment variable, CBM_SESSION_PROJECT, in those two functions and normalizes it the way name is normalized; unset, nothing changes. With it the watcher follows and refreshes the named index. We can open a pull request if that shape is acceptable.
Developed with the aid of AI under human supervision.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DeusData/codebase-memory-mcp
-
bug ux/behavior
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
DeusData/codebase-memory-mcp#3191 ·
Maintainers usually reply within 1 day
-
documentation enhancement parsing/quality ux/behavior
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
DeusData/codebase-memory-mcp#3131 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Possibly taken A pull request linked to this issue is open or already merged. Openbug editor/integration parsing/quality ux/behavior
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DeusData/codebase-memory-mcp#3062 · 2 comments ·
Maintainers usually reply within 1 day
-
bug documentation editor/integration parsing/quality
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
DeusData/codebase-memory-mcp#3050 · 1 comment ·
Maintainers usually reply within 1 day
-
editor/integration parsing/quality
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainers usually reply within 1 day
All issues in DeusData/codebase-memory-mcp
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainers usually reply within 1 day
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOpengame: 010065A014024000 ios
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
seedds/nxnative#3714 · 1 comment ·
Maintainers usually reply within 2 days
-
HTTP/3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haskell/bytestring#730 · 1 comment ·
-
area/docdb kind/enhancement mvu-pg15-pg19 priority/low
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yugabyte/yugabyte-db#40355 ·
Maintainers usually reply within 1 day