Dsh Memory Hub logo

Dsh Memory Hub

File-native, local-first memory hub with retrieval, citations, human-approved writes, workspace routing, and maintenance tools.

Install Dsh Memory Hub

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "dsh-memory-hub": {
      "command": "npx",
      "args": [
        "-y",
        "dsh-memory-hub"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Claude Code command
claude mcp add --transport stdio dsh-memory-hub -- npx -y dsh-memory-hub

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y dsh-memory-hub

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

dsh-memory-hub is a local-first, file-native long-term memory hub for DSH and other agents that can use MCP or its CLI. It stores knowledge as Markdown files with YAML frontmatter, retrieves compact context per turn, tracks citations, and keeps proposed changes pending until human approval. Workspace-aware routing supports project, core, parent, and global knowledge, while temporal fields, duplicate detection, reflection, and maintenance reports help keep the collection usable. Reach for it when an agent needs persistent, inspectable memory without a vector database or model-controlled commits.

Use cases

  • Store project decisions as inspectable Markdown knowledge
  • Inject compact accepted-memory context at turn start
  • Review and approve proposed memory changes
  • Route knowledge across nested workspaces and core repositories
  • Audit citations and identify stale or duplicate entries

Key features

  • File-native Markdown storage with YAML frontmatter
  • Keyword, scope, type, and status retrieval
  • Human-approved candidate commits
  • Workspace-aware and hierarchical memory routing
  • Temporal validity and citation tracking
  • Near-duplicate checks, reflection, and maintenance reports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · dsh-memory-hub (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads5kPackage downloads in the last 30 days.
Last commit20d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Dsh Memory Hub works

What dsh-memory-hub does

dsh-memory-hub provides a persistent memory workflow for agent sessions. Accepted knowledge lives in Markdown files with YAML frontmatter inside a Hub directory. The system can search and read those entries, inject a compact index at the start of a turn, record which entries were actually used, and create proposed additions, updates, or deprecations.

Writes are intentionally separated from retrieval. New or changed knowledge is placed in pending/, and memory_commit requires the host's native approval flow. The model cannot supply its own approval token. This makes the Hub suitable for teams that need inspectable files and a human-controlled path from evidence to authoritative memory.

Knowledge can be scoped to a project, core workspace, parent core, domain, or global collection. Multiple core workspaces and nested workspaces are routed by the longest matching working-directory prefix. Child workspaces share their core's Hub and can pass distilled knowledge upward through configured workflows.

How it works

At the beginning of a user turn, the plugin can run a deterministic preflight and inject a compact result containing identifiers, titles, summaries, and scopes. Full content is read only when needed. Search uses keywords, type, scope, and status filters; CJK bigram tokenization is supported, and a vector database is not required.

The lifecycle also includes citation recording, task-close evaluation, candidate proposals, approval, and optional consolidation of project knowledge. Temporal fields such as valid_from, expires_at, and last_verified support aging and validity-aware retrieval. Duplicate inspection, retrospective reflection, and maintenance reports provide additional review points without automatically committing changes.

A derived SQLite index can be created on demand for larger collections. The default auto policy creates it at the configured entry threshold; memory-only and SQLite modes are also available. Writer coordination uses leases and fencing tokens so stale writers can be reclaimed and older writers become read-only.

Setup and configuration

Install the published npm package through the DSH plugin manager or the Desktop profile's plugin manager. A local directory or GitHub package can also be installed; the repository includes built output. Restart DSH after installation, or wait for plugin hot loading.

The default configuration location is ~/.dsh/memory-hub, or the equivalent path under DSH_HOME. The configuration file is config.yaml; its core_workspaces entries define Hub roots, while workspaces entries map working directories to cores. A workspace with no matching root falls back to the configuration Hub. New Hub roots are initialized with directories such as knowledge/, pending/, records/, history/, and reports, plus a generated directory guide.

Configuration changes are watched and reloaded without a restart. The optional distill settings schedule workspace-level sessions through DSH's scheduling service. Maintenance uses an internal timer, can run reports or create pending proposals, and never commits them automatically.

Tools and capabilities

The MCP tool set includes:

  • memory_search, memory_get, and memory_status for retrieval, full reads, and diagnostics.
  • memory_preflight and memory_cite for turn preparation and usage evidence.
  • memory_propose, memory_commit, and memory_close_task for the reviewed write lifecycle.
  • memory_consolidate for administrator-controlled promotion.
  • memory_duplicates for near-duplicate review.
  • memory_reflect for digest or source-based session review.
  • memory_maintenance for reports and optional pending maintenance proposals.

The bundled DSH panel provides overview, configuration, knowledge search, pending-candidate review, activity and policy information, and tool descriptions. It reads and saves through loopback host routes; approval still occurs through DSH's native process.

Limitations and notes

The panel does not replace DSH approval and cannot bypass it. In headless environments, or when approval is disabled, commits are rejected and candidates remain pending. Automatic maintenance and scheduled distillation produce reports or proposals rather than authoritative writes. Internal maintenance timers do not appear in DSH's official automation list, whereas configured distillation jobs do. The host integration is intended for DSH and is also described for Claude Code, opencode, Cline, and other MCP- or CLI-capable agents.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Dsh Memory Hub

dsh-memory-hub is an MCP server that connects agent hosts such as DeepSeek Harness, Claude Code, and Cline to a local file-based memory Hub. Its main tools search and read accepted knowledge, prepare context, record citations, propose and approve changes, close tasks, inspect duplicates, reflect on sessions, and run maintenance.

Install dsh-memory-hub through the DSH plugin manager, the DSH Desktop profile plugin manager, or from a local directory or GitHub package. The package includes built output, so a separate build is not required for local or GitHub installation. Restart DSH or wait for plugin hot loading afterward.

dsh-memory-hub stores memory in Markdown files under Hub roots. The fallback configuration Hub is `~/.dsh/memory-hub`, or the corresponding directory under `DSH_HOME`; configured core workspace roots hold their own `knowledge`, `pending`, `records`, and related directories.

No. dsh-memory-hub searches with keywords, type, scope, and status filters, including CJK bigram tokenization. It can optionally build a derived SQLite index for larger collections, but the file-native Hub does not depend on a vector database.

No. Proposed changes remain in `pending/` until DSH's native approval process permits `memory_commit`. Maintenance and scheduled distillation can create reports or pending proposals, but they do not commit knowledge automatically.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDsh Memory Hub AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dsh-memory-hub?style=directory)](https://allmcps.com/mcp/dsh-memory-hub)
HTML Embed
<a href="https://allmcps.com/mcp/dsh-memory-hub"><img src="https://allmcps.com/api/badge/dsh-memory-hub?style=directory" alt="Dsh Memory Hub on AllMCPs" /></a>