hy-sde/dsh-tool-codebase-memory--packages-tool-codebase-memory ↗★ 0
@hy-sde-org/dsh-tool-codebase-memory
Model-facing codebase-memory CLI tools (codebase_list_projects/index_repository/index_status/search_graph/query_graph/trace_path/get_code_snippet/get_graph_schema/get_architecture/search_code/detect_changes/manage_adr/ingest_traces/delete_project) that run one-shot queries against the codebase-memory daemon from the terminal — the local alternative to the stdio MCP client row 提供代码库索引、检索及架构分析工具。适合需要深度理解大型代码库的智能体。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hy-sde/dsh-tool-codebase-memory#41dcb8943cc3de149262a687c6866291bae99be7&path:packages/tool-codebase-memoryConfiguration
import { Context } from '@deepseek-ai/cordis'
import toolCodebaseMemoryPackage from '@hy-sde-org/dsh-tool-codebase-memory'
const ctx = new Context()
ctx.plugin(toolCodebaseMemoryPackage, {
cliPath: 'codebase-memory-mcp', // CLI executable (default: on PATH)
project: 'deepseek-harness', // default project for tools that can omit it
timeoutMs: 60000, // per-call process timeout (index calls use indexTimeoutMs)
indexTimeoutMs: 600000, // timeout for codebase_index_repository
maxChars: 200000, // cap on rendered JSON payload before explicit truncation
})
Setting project makes every call explicit about its graph target while still allowing overrides. The plugin activation invariant fails fast with an install hint when the CLI is missing. Verify at any time with codebase-memory-mcp cli list_projects.