dsh-code-graph: Branch-aware Code Knowledge Graph Plugin for DSH

dsh-code-graph is a DSH plugin designed to address the lack of code understanding caused by agents that rely on grep. It reuses the codebase-memory-mcp engine to provide structured code knowledge graph capabilities, supporting graph queries over call chains, impact scope, and architectural relationships. Its core features include structured indexing (covering 158+ languages), automatic branch following, rolling single-repository indexing, freshness gating (incremental updates), and automatic fallback to ripgrep when graph queries return no results. It also supports cross-branch queries and enforces hard gates for code reading. Installation requires local setup of the codebase-memory-mcp engine, making it suitable for scenarios that require deep understanding of code architecture and call relationships.

Read More