When developing agents in DeepSeek Harness (DSH), getting the model to understand the codebase’s structure, dependencies, and call chains is a common challenge. The dsh-gitnexus-plugin acts as a plugin that indexes the codebase into a knowledge graph and exposes it to DSH agents through MCP tools.
Plugin Overview¶
This is a GitNexus integration plugin for DeepSeek Harness (DSH). It was developed by maintainer akash-digitavision. Built on top of GitNexus, it provides agents with architectural clarity for analyzing dependency relationships and execution flows.
Core Features¶
The plugin exposes the following capabilities through mcp__gitnexus__* tools:
- query: Search for concepts or execution flows across the graph.
- context: Get the complete context of a specific symbol.
- impact: Analyze the blast radius (callers, processes, risks) before editing a symbol.
- explain: Explain taint findings and structure of files/symbols.
- detect_changes: Analyze graph changes before committing.
- rename: Perform call-graph-aware renames.
Additionally, the plugin spawns a GitNexus stdio MCP server and inserts a HOST-plane line mcp-gitnexus into the configuration.
Installation and Activation¶
To install this plugin, use the official DSH CLI:
dsh plugin --profile web add github:akash-digitavision/dsh-gitnexus-plugin
After installation, restart DeepSeek Harness. DSH will automatically load and register the plugin on startup. The configuration is entirely provided by the cordis.patch.yml file.
Prerequisites¶
This plugin depends on the GitNexus environment:
- Node.js >= 20: Required by GitNexus.
- GitNexus CLI: Global installation is recommended for fast startup, avoiding
npxcold cache delays.
Install GitNexus:
npm i -g gitnexus
Index any repository to make it queryable:
cd your-repo
gitnexus analyze
Configuration and Usage¶
The plugin spawns a GitNexus MCP server via stdio transport. Command resolution priority is as follows:
GITNEXUS_COMMANDenvironment variable (absolute path).- Otherwise, retrieve
gitnexusfromPATH.
Windows Note: npm’s global gitnexus is a .cmd shim. If the MCP client cannot spawn it, explicitly pin it and restart DSH:
setx GITNEXUS_COMMAND "%APPDATA%\npm\gitnexus.cmd"
Notes¶
- Timeout: Tool timeout is set to 120 seconds.
- License: MIT.