agent-memory-hub weekly downloads statistics
By zhiwuli0228 · npm · Claude Code
Agent memory bridge — local-first, human-approved, file-native long-term memory for AI coding agents (Claude Code, Codex, opencode, gemini, DSH). One local service, every agent shares it.
agent-memory-hub has 6,648 recorded weekly downloads on npm, a change of +76.6% over the past 7 days, ranking #1425 of 3,247 tracked listings.
About agent-memory-hub
agent-memory-hub
Agent memory bridge — local-first, human-approved, file-native long-term memory for AI coding agents.
One local service. Every agent shares it. Claude Code, Codex, opencode, gemini-cli, DSH — anything that speaks MCP or a shell.
It is
- Local-first — your memory lives in plain Markdown files you own (
knowledge/), versioned inhistory/, git-friendly. No cloud required. No black-box database. - Human-approved — agents can propose memories; only you can commit them. Every stored fact is traceable: who approved it, when, and from which conversation.
- File-native — Markdown + YAML frontmatter + JSONL ledger. Open it, diff it, grep it, back it up with git.
- Cross-host by design — one MCP server + one CLI (
memhub) + one optional local dashboard, all backed by the same files. Register once, every agent shares the same memory. - Scoped — project → domain → global knowledge hierarchy with ancestor-chain search. Each agent sees exactly the layers it should.
- Scheduled distillation — a configurable schedule (quiet-window, model, scope, thresholds) turns recent events into a review batch; a separate 蒸馏审核 queue keeps batch review apart from everyday proposals. See ADR-0031.
Install
DSH plugin (DeepSeek Harness users):
install_bundle dsh-agent-memory-hub
Tool surface: 9 memory_* tools (search / get / status / propose / preflight / cite / close-task / dejavu / distill). Runtime is zero-network — a dead remote never degrades your host. Details: host/dsh/README.md · 部署对接指南.
Memory root (global) — zero-config, or set it explicitly
The hub root is one global directory, not per-session and not a distillation setting: every tool, the dashboard, and every scheduled batch read/write the same root.
Resolution order (ADR-0032): config.root → $MEMHUB_ROOT → nearest initialized hub at or
above the host cwd → ~/mem-hub. The plugin initializes the resolved root on first
activation (autoInit default true), so a fresh install works without any CLI. Set
autoInit: false to keep it read-only.
DSH: Settings → Plugins → Agent Memory Hub (bundle) → the 记忆中枢 plugin row →
Configure. Set root to an absolute path, e.g. D:\mem\my-hub; panelPort,
toolConflict, autoInit, and distillSchedule live on the same page. The row
configuration is global (one hub for all sessions). DSH-only installs need no memhub CLI;
only non-DSH hosts need it (npm i -g agent-memory-hub or npx agent-memory-hub).
The dashboard exposes the same value at Settings (top-level tab) → 记忆根目录(全局); migration is there too, not under Distillation.
One-click migration (dashboard): Settings → 记忆根目录(全局)→ new absolute path →
迁移并切换. It copies and verifies the whole hub, updates the DSH plugin root, then
reloads; the old directory is kept as a backup.
CLI (non-DSH hosts; install it first):
memhub migrate --from D:\mem\old-hub --to D:\mem\new-hub # copy + verify, keep old
memhub migrate --from D:\mem\old-hub --to D:\mem\new-hub --move # delete old after verify
After migration point every other host at the new path with memhub mcp --root <new> or
memhub install <host> --root <new>. Prefer per-command --root; do not set a
machine-wide MEMHUB_ROOT — it is only a legacy fallback and ignored whenever the DSH
plugin has an explicit root.
Full guide: docs/03-usage/configure-root-and-migrate.md.
Not on DSH? The same batch runs on multica / cron / CI through memhub mcp or memhub distill prompt — see portable-scheduler.md.
CLI / MCP server (Claude Code, OpenCode, Codex, gemini-cli, any MCP host):
npm i -g agent-memory-hub
memhub mcp --root <hub> # register in any MCP client
memhub extract material # scheduled-extraction material for any workflow platform
memhub distill due # exit 0 when a scheduled distillation run is owed
memhub distill prompt # self-contained task prompt for multica / cron / CI
memhub propose --input p.json # create PENDING candidates (no MCP required; never commits)
memhub publish # publish approved entries to your team's memory-hub API (ADR-0015)
Team memory-hub service: implement or deploy docs/02-spec/memory-hub-api-v1.md (reference server included: examples/memory-hub-server.mjs).
Status
🚧 Under active development (this repo was founded 2026-11-15). The stable, working edition of the same memory format is dsh-memory-hub (DSH plugin, v0.8.x). agent-memory-hub generalizes it into a standalone cross-host service; the first stable release targets 0.1.0.
Design principles
Four invariants (see AGENTS.md):
- Files are the authority, not a cache.
- Humans approve; agents propose. Never self-commit.
- Plain text only — readable, diffable, migratable.
- Zero network by default.
Eight day-zero architecture decisions in docs/01-architecture/decisions/ADR-0001-day-zero-principles.md.
Roadmap
| Step | Deliverable |
|---|---|
| 1 ✅ | Repo skeleton, invariants, format contract tests |
| 2 | core — storage, retrieval (BM25), workspace pyramid registry |
| 3 | transport — MCP stdio + CLI, re-verified on four hosts |
| 4 | Approval + ledger + local dashboard (memhub serve) |
| 5 | Injector / extractor first-class commands (memhub pack / hook / extract) |
License
MIT
Description from the npm listing.
- agent-memory
- agent-memory-bridge
- memory
- mcp
- mcp-server
- claude-code
- codex
- opencode
- cross-host
- local-first
- knowledge-base
- long-term-memory
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (121)Similar npm Claude Code plugins
All 20 agent-memory-hub alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/agent-memory-hub. First seen Dec 2, 2026; last successful collection Dec 2, 2026. See the methodology.