Local-Rag-Wiki
Manifest validA per-repository, Docker-hosted MCP knowledge service that gives coding agents a governed Markdown "wiki" with semantic retrieval. The promise — a local RAG wiki that accumulates durable project knowl
local-rag-wiki
A repo-local RAG wiki for AI agents: a per-repository MCP knowledge service (governed search / read / write of Markdown wiki notes) plus an installer that wires it into your agent tooling. Docker is required to run the service.
Quick start (recommended)
Pre-pull the service image before your first agent session to avoid cold-start delays:
docker pull ihorleleka/project-rag-wiki:latest
Install
Run in your repository root:
npx github:ihorleleka/Local-Rag-Wiki install .
This scaffolds the managed .agents/ runner, the AGENTS.md policy section,
DSH workspace assets (.dsh/mcp.servers.yml and its scoped MCP bridge), Claude
Code, Codex, VS Code, and OpenCode, plus a wiki/ folder. The DSH bridge stays
under .dsh/; it is never installed as a repository-root
.dsh-mcp-client.js. These integrations are additive. The MCP service starts
per repository when a configured agent client connects. Pre-pulling the image
(above) is recommended before running the agent in a fresh environment.
DeepSeek Harness
Install the native DSH bundle once into the profile you use (usually web):
dsh plugin --profile web add github:ihorleleka/Local-Rag-Wiki
Restart that DSH profile, open an installed repository as its workspace, and
start a session. On DSH's native agent/created / agent/session-start
lifecycle, the bundle reads the active workspace's .dsh/mcp.servers.yml,
validates its wiki-manager entry against the managed install marker, resolves
the configured node executable through DSH's subprocess service, and mounts
the bridge through agent.ctx. It never uses process.execPath, because that
is the Electron executable in DSH Desktop. When Docker is reachable, initial
discovery finishes before the model request is assembled, exposing stable native
mcp__wiki-manager__* tools on that agent's tool scope. If Docker Desktop is
still starting, the session remains usable and the bridge retries in the
background until it can register those tools. Identical namespaces can coexist
in different agent scopes without leaking tools between sessions.
The scoped bridge source is delivered as .dsh/.dsh-mcp-client.js (never at
repository root) and follows DSH's MCP transport, reconnect, tool-schema, and
execution pipeline. The canonical config path is .dsh/mcp.servers.yml; a
legacy dsh/mcp.servers.yml is accepted only when the canonical file is absent.
DSH core does not auto-load this file—the trusted profile bundle is its loader.
Do not add a second global MCP client for the same server.
The bundle also performs bounded wiki recall once per turn for a material,
direct user prompt. Tool results, plugin context, delegated control messages,
and later tool-loop steps do not trigger recall. After the scoped bridge is
ready, agent/pre-step dispatches wiki_search through DSH's existing tool
registry—first depth="abstract" (L0), then matching depth="packet" context
(L1). It does not spawn a second runner. Recall is per-workspace cached and
in-flight deduplicated, L1 packets are rate-limited, and full L2 wiki_read
remains model-directed. Injected recall is turn-scoped; when the turn stops,
its payload is replaced by a small expiry marker so it cannot accumulate or
silently govern later turns.
The governed wiki and its MCP search are the only DSH memory path; the bundle
does not capture local prompt history. Claude Code connects to the same runner
through its MCP configuration without repository prompt-history hooks. See
.dsh/README.md for the workspace boundary.
Update
After install, refresh the managed files from inside the repo — no npx needed:
.agents\update-wiki-kit.cmd --force
sh .agents/update-wiki-kit.sh --force
Lifecycle
npx github:ihorleleka/Local-Rag-Wiki status .
npx github:ihorleleka/Local-Rag-Wiki restart .
npx github:ihorleleka/Local-Rag-Wiki doctor . --live
start ., stop ., and pull . are available the same way. The repository
container persists independently of individual agent clients.
How it works
- This package is the installer: it scaffolds and maintains the
.agents/runner and MCP configuration in a consumer repository. - kb-service/ is the Dockerized MCP knowledge service the runner
launches per repository. It serves
wiki_search,wiki_read,wiki_list,wiki_tree,wiki_schema_report,wiki_write,wiki_capture,wiki_delete, andwiki_renameoverPOST /mcp/(loopback by default), with atomic whole-note writes.wiki_searchsupports tiered retrieval (depth=abstract|packet) pluspath_prefixdirectory scoping.
Versioning
The installer and kb-service ride the same Git tag (X.Y.Z or vX.Y.Z).
Release automation:
License
MIT (see kb-service/LICENSE).
Comments
Loading…
Similar plugins
by Tencent
Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
★ 31.9k
↓ 1.3k/wk
NOASSERTION
Go
Oct 1, 2026
dsh plugin --profile web add @wxg-prc-cpg/dsh-weknoraby GM-HZ
Host-neutral durable DAG workflows for Agents: CLI-native access, fixed MCP gateway, on-demand Skills, triggers, replay, and visual Canvas.
★ 3
↓ 169/wk
MIT
TypeScript
Aug 30, 2026
dsh plugin --profile web add @gm-hz/agent-dag-workflowby wly8691-jpg
KnowLP-RAG: dual knowledge-graph RAG for Markdown notes — dsh plugin add @eqman00003/knowlp-rag · MCP + native Cordis plugin for DeepSeek Harness (dsh) & Claude Code
★ 3
↓ 196/wk
MIT
Python
Sep 7, 2026
dsh plugin --profile web add @eqman00003/knowlp-ragby volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
★ 39.2k
↓ 11.2k/wk
AGPL-3.0
Python
Oct 4, 2026
dsh plugin --profile agent add @openviking/dsh-memory-pluginby Roarpeng
Local-first code knowledge graph and context harness for coding agents. MCP + DeepSeek Harness (dsh) plugin.
★ 16
↓ 11.4k/wk
Apache-2.0
TypeScript
Oct 3, 2026
dsh plugin --profile web add @roarpeng/graphflowCross-app project memory for DeepSeek Harness with role-separated writeback, a visual knowledge workspace, confirmed corrections, session controls, local Writer and organizer settings, and an account-
★ 0
dsh plugin --profile web add dsh-tmcra-memory