DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Simple Codegraph — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
S

dsh-simple-codegraph

Simple Codegraph

面向 DeepSeek Harness (DSH) 的生产级按 Agent CodeGraph 集成

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:QuantumKuba/dsh-simple-codegraph#a0c56e356ce6b5ca118585b5e108402be2d50c9e
README兼容性版本

兼容性与来源证明

Simple Codegraph 以 dsh-simple-codegraph 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/17

版本

0.1.0stable
2026/9/17

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 1
周下载
0
最近提交
2026/9/17
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

README

CodeGraph for DeepSeek Harness (dsh-simple-codegraph)

Production-grade DeepSeek Harness (DSH) integration for CodeGraph.

Provides each DSH Agent with an isolated, project-scoped CodeGraph MCP connection. Instead of spending dozens of costly grep, glob, and read_file calls attempting to reconstruct a codebase AST, agents retrieve relevant verbatim source, call hierarchies, and blast-radius impact in a single focused exploration call.

Particularly optimized for local 20B–30B models (e.g., Qwen 2.5/3.x 27B/32B, DeepSeek local distillations) running in resource-constrained environments where tool schemas consume precious context, repeated file reads are slow, and unnecessary agent loops cause drift.


Key Highlights

  • Genuine Per-Agent Isolation: Every live Agent receives its own scoped CodeGraph MCP stdio process pinned to agent.session.header.cwd.
  • True Simultaneous Multi-Project Support: Agent A working in /repo-a and Agent B working in /repo-b operate simultaneously with zero cross-project leakage or global config mutation.
  • Zero-Config Bundle Installation: Installs natively via dsh plugin add with zero manual YAML editing, no manual projectPath maintenance, and no background daemons to manage.
  • One-Tool Philosophy for Small Models: Exposes only mcp__codegraph__codegraph_explore by default. Minimizes schema tokens and eliminates tool-selection ambiguity for local models.
  • Compaction-Safe Architecture: Keeps CODEGRAPH_EXPLORE_DEDUP disabled so DSH context pruning does not invalidate subsequent model queries.
  • Turn-1 Handshake Guarantee: Pre-assembles prompt tools to ensure the MCP stdio handshake completes before Turn 1 prompt dispatch.

Installation & Quick Start

1. Prerequisites

Ensure CodeGraph CLI is installed on your system:

codegraph --version

Index your project repository (one-time setup):

cd /path/to/my-project
codegraph init

2. Install Plugin

Add the bundle to your desired DSH profile (e.g., web, headless, coding):

dsh plugin --profile web add dsh-simple-codegraph

3. Run DeepSeek Harness

Run DSH inside your indexed repository:

cd /path/to/my-project
dsh --profile web

That is all. The CodeGraph MCP server boots automatically for each agent session, attaches to the repository root, and exposes the exploration tool to the agent.


Architecture

Unlike implementations that mount a single global MCP process and rewrite cordis.patch.yml whenever the active UI tab changes, dsh-simple-codegraph establishes genuine agent-level encapsulation:

DeepSeek Harness Core
│
├── Agent A (cwd: /project-a)
│   └── Agent-Scoped Cordis Scope
│       └── @deepseek-ai/dsh-mcp-client
│           └── codegraph serve --mcp (pid: 1042, cwd: /project-a)
│
├── Agent B (cwd: /project-b)
│   └── Agent-Scoped Cordis Scope
│       └── @deepseek-ai/dsh-mcp-client
│           └── codegraph serve --mcp (pid: 1043, cwd: /project-b)
│
└── Agent C (unindexed or no cwd)
    └── CodeGraph MCP skipped cleanly (no hallucinated / wrong-codebase context)

Lifecycle Guarantees

  1. Agent Created: A child Cordis context is spawned (createScope(ctx, agent)). If agent.session.header.cwd contains a valid .codegraph index, the MCP client spawns codegraph serve --mcp with that cwd.
  2. Turn 1 Synchronization: An early system-prompt/assemble waterfall listener blocks prompt assembly until the MCP handshake completes (~300ms), ensuring mcp__codegraph__codegraph_explore is immediately visible on Step 1.
  3. Agent Disposed: Closing or aborting the agent cleanly terminates the child stdio process without orphan processes.
  4. Plugin Unloaded: Disposing the root plugin cleanly terminates all active agent MCP child processes.

Small-Model Optimization Design

The One-Tool Philosophy

Local 20B–30B models have constrained attention and higher susceptibility to tool-selection confusion. When presented with 8+ overlapping tools (node, callers, callees, impact, files, status, etc.), small models often:

  • Waste context tokens on unused schemas.
  • Pick the wrong tool (e.g., calling node or files when they need AST call paths).
  • Fall back to familiar tools (grep, read_file) because the schema space is cluttered.

dsh-simple-codegraph preserves CodeGraph's upstream design by exposing only codegraph_explore (namespace mcp__codegraph__codegraph_explore). A single query yields AST relationships, blast radius, and verbatim line-numbered source.

Context Compaction & Cross-Call Dedup

CodeGraph provides an optional CODEGRAPH_EXPLORE_DEDUP flag. However, in DeepSeek Harness, compaction plugins (dsh-compaction-tool-result-pruner and dsh-compaction-basic) aggressively prune or summarize earlier tool results when the context window fills up.

If dedup were enabled, CodeGraph would reply with "Already sent earlier", but the model would no longer have the source in its pruned context! Therefore, CODEGRAPH_EXPLORE_DEDUP is intentionally kept disabled. Correctness is strictly prioritized over marginal token savings.

Microscopic Routing Hint

Rather than injecting thousands of tokens of duplicate CodeGraph documentation into every turn's system prompt, dsh-simple-codegraph injects a microscopic 1-sentence routing hint only when working in an indexed repository:

"CodeGraph is active for this repository. For code discovery, architecture, call flows, symbol locations, and blast-radius exploration, prefer mcp__codegraph__codegraph_explore over raw grep or file reads. Verbatim line-numbered source returned by CodeGraph is already read."


Configuration

In most cases, default configuration is ideal. If needed, settings can be customized in your profile's cordis.patch.yml:

- id: dsh-simple-codegraph
  config:
    # Command to run CodeGraph (default: 'codegraph')
    command: codegraph

    # Tool execution timeout in milliseconds (default: 60000)
    toolCallTimeoutMs: 60000

    # Whether to fail startup if CodeGraph fails to launch (default: false)
    failOnStartupError: false

    # Inject microscopic routing hint into system prompt (default: true)
    routingHint: true

Migration Guide

Migrating from PR #1591 Style Global MCP Configuration

If you previously added a global CodeGraph MCP entry to ~/.dsh/cordis.patch.yml or ~/.dsh/profiles/<profile>/cordis.patch.yml:

  1. Remove the legacy global entry from cordis.patch.yml:
    - - id: mcp-client-codegraph
    -   name: '@deepseek-ai/dsh-mcp-client'
    -   config:
    -     serverName: codegraph
    -     command: codegraph
    -     args: ['serve', '--mcp']
    
  2. Install dsh-simple-codegraph:
    dsh plugin --profile <profile> add dsh-simple-codegraph
    

Migrating from @hyzyn/dsh-codegraph

@hyzyn/dsh-codegraph managed a shared global MCP process and modified configuration on project switches. To migrate:

  1. Uninstall @hyzyn/dsh-codegraph:
    dsh plugin --profile <profile> remove @hyzyn/dsh-codegraph
    
  2. Install dsh-simple-codegraph:
    dsh plugin --profile <profile> add dsh-simple-codegraph
    

Migrating from jiangzhenguo/dsh-codegraph

jiangzhenguo/dsh-codegraph reimplemented CodeGraph CLI commands as 13 native DSH tools. To migrate:

  1. Uninstall jiangzhenguo/dsh-codegraph:
    dsh plugin --profile <profile> remove dsh-codegraph
    
  2. Install dsh-simple-codegraph:
    dsh plugin --profile <profile> add dsh-simple-codegraph
    

Troubleshooting

codegraph Not Found on PATH

  • Symptom: Agent boots normally, but mcp__codegraph__codegraph_explore is not available.
  • Fix: Verify which codegraph works in your shell. If installed in a non-standard path, configure command: "/full/path/to/codegraph" in cordis.patch.yml.

Repository Not Indexed

  • Symptom: Tool does not appear for a specific workspace.
  • Fix: Run codegraph init in that repository. The plugin requires a valid .codegraph directory to avoid silently running against an unindexed or wrong directory.

Legacy Global MCP Detected

  • Symptom: Console outputs: [dsh-simple-codegraph] Warning: Pre-existing global CodeGraph MCP tool detected...
  • Fix: Remove the global CodeGraph MCP configuration from your cordis.patch.yml to enable per-agent isolation.

Development & Testing

# Install dependencies
pnpm install

# Compile TypeScript
pnpm run build

# Run unit and lifecycle tests
pnpm test

# Run benchmark suite
pnpm run bench

License

MIT © 2026 DeepSeek Harness Community

相关插件

继续浏览 developer-tools 分类下经过校验的插件。

Web App@deepseek-ai/dsh-web-appdsh 浏览器界面捆绑包:位于 dsh-base 之上的 Web 补丁层,加上运行时粘合插件(提供前端 dist、Web 界面提示符、bash 运行时变量和 URL 行)Sdk App@deepseek-ai/dsh-sdk-appdsh SDK 配置包:基于 dsh-base 提供 stdio JSON-RPC 服务和进程生命周期管理Subagent Codex@deepseek-ai/dsh-subagent-codex基于官方 app-server 协议的一次性 Codex 子代理提供程序Plus@sparkelf/dsh-plusDeepSeek Harness Plus official-base Web 分发配置文件和范围兼容性补丁集