dsh-codebase-watcher: Keeping the Codebase Memory Map in Sync with Each Project's git HEAD
After integrating DSH with Codebase Memory, the MCP cwd and CBM auto_index can easily lead to silent staleness in the knowledge graph. dsh-codebase-watcher detects lag by comparing HEAD with Branch.head_sha, invoking the CLI `index_repository` to rebuild only when necessary. It also provides a CBM graph card on the settings page, sidebar indicators, and a REST control plane. Based on the official README, this article covers dependencies (Node ≥ 20.13, DSH ≥ 0.2.0-rc.2, codebase-memory-mcp), three installation methods, first-launch recommendations, and considerations for disabling auto_index.
Read More