cbmman
Interactive TUI manager for codebase-memory-mcp — a human-friendly front end for indexing and querying codebase knowledge graphs.
This crate is the Rust implementation, built on ratatui + crossterm. A companion bash implementation (built on tuish) lives in the same repository: https://github.com/handyutils/cbmman.
Install
Run
# make sure the codebase-memory-mcp binary is on your PATH
# (or set CBM_BIN to its location)
Features
- Projects — list indexed projects (branch, nodes, edges, size, full root path), select one, and run per-project actions: index status, architecture overview, index coverage, git-diff impact (
detect_changes), re-scan, delete - Scan / Index — add a repository with mode (
moderate/full/fast/cross-repo), optional project-name override, and optional team-shared artifact persistence - Graph server (UI) — start / stop the graph-visualization server, set the port, open the UI in a browser, live status
- Processes & resources — live monitor of every
codebase-memory-mcpprocess (CPU, memory, RSS, uptime) plus artifact sizes in the cache directory; auto-refreshing - Configuration — view and edit persisted settings (
auto_index,auto_index_limit,auto_watch,ui_enabled,ui_port, …) with oneSAVE ALL - Graph queries — search graph (BM25 / name / semantic), search code, get code snippet, trace call paths, raw Cypher, architecture overview, graph schema, ingest runtime traces
- ADR management — get / list sections / update architecture decision records
- Maintenance — binary version, CLI help, update, uninstall (dry-run first), cache & diagnostics
- All long-running operations run in the background with a spinner; the UI never freezes
clipass-through mode for scripting:cbmman cli search_graph '{"project":"p","query":"q"}'
Build from source
Build all release targets locally
Artifacts are placed in dist/.
Release
CI/CD is configured via GitHub Actions. To publish a new release:
- Update the version in
Cargo.toml - Commit and push to
main - Create and push a tag:
- The
Releaseworkflow builds for all targets and creates a GitHub Release with artifacts:- macOS ARM (
aarch64-apple-darwin) - macOS Intel (
x86_64-apple-darwin) - Linux x64 (
x86_64-unknown-linux-gnu) - Linux ARM64 (
aarch64-unknown-linux-gnu) - Windows x64 (
x86_64-pc-windows-msvc)
- macOS ARM (
Environment
| Variable | Default | Purpose |
|---|---|---|
CBM_BIN |
codebase-memory-mcp (PATH) |
binary location |
CBM_CACHE_DIR |
~/.cache/codebase-memory-mcp |
process/artifact monitor |
Keyboard
↑/↓navigate,Enterselect1–8,0jump straight to a main-menu itemEscback one level (no-op on the main menu)qquit on the main menu,Ctrl-Cquit anywhere- Projects screen:
oopen in Terminal,fopen in Finder,ddelete,nscan,rrefresh
License
MIT — see LICENSE.