claude-mem-plugin
v0.1.5
Published
Cross-CLI integration layer for claude-mem.
Downloads
734
Maintainers
Readme
claude-mem-plugin
One public install surface. One shared skill. One canonical integration path.
The upstream claude-mem documentation remains the canonical reference for the memory engine itself.
At a Glance
| Keep memory aligned | Use a public install surface | Stay on the canonical engine |
| --- | --- | --- |
| Keep Codex, Claude Code, and Copilot CLI on the same shared memory integration path. | Use npx claude-mem-plugin install all for the fast path, or install globally if you prefer a fixed command. | claude-mem-plugin manages installation and config while upstream claude-mem remains the memory engine and product reference. |
Quick Start
Install for every supported client:
npx claude-mem-plugin install allRequirements:
- Node.js
18+ - upstream
claude-memalready installed on the target machine - package and CLI name:
claude-mem-plugin
Install for a single client:
npx claude-mem-plugin install codex
npx claude-mem-plugin install claude
npx claude-mem-plugin install copilotOr install the command globally once:
npm install -g claude-mem-plugin
claude-mem-plugin install codex
claude-mem-plugin install allRestart Codex, Claude Code, or Copilot CLI after installation so the new config and shared skill are reloaded. If you are evaluating the package for the first time, the quickest smoke test is npx claude-mem-plugin install all in a fresh shell.
To inspect upstream availability and per-client install state without changing any files:
npx claude-mem-plugin doctorSource checkouts and release .zip installs are documented separately in docs/from-source.md.
Why Use It
Shared memory without per-client drift.KeepCodex,Claude Code, andCopilot CLIaligned around the same shared skill and config contract.Public install from day one.Usenpximmediately or pin a global install if you want a fixed command on your machine.Canonical upstream boundary.This repository owns installation and client integration while upstreamclaude-memremains the memory engine.Conservative platform behavior.Windows defaults to the saferagent-driven fallbackpath when hook reliability is weaker.
What This Is
claude-mem-plugin is the cross-CLI integration layer for claude-mem.
It installs the shared skill, writes the client-specific config, and keeps the supported CLI entrypoints aligned around the same memory workflow.
What This Is Not
claude-mem-plugin does not replace the upstream claude-mem engine.
If you need the memory engine itself, its architecture, or its product documentation, use the upstream claude-mem repository and docs.claude-mem.ai.
CLI Commands
| Client | Install | Uninstall |
| --- | --- | --- |
| Codex | npx claude-mem-plugin install codex | npx claude-mem-plugin uninstall codex |
| Claude Code | npx claude-mem-plugin install claude | npx claude-mem-plugin uninstall claude |
| Copilot CLI | npx claude-mem-plugin install copilot | npx claude-mem-plugin uninstall copilot |
| All supported clients | npx claude-mem-plugin install all | npx claude-mem-plugin uninstall all |
| Diagnostics | npx claude-mem-plugin doctor | n/a |
The same subcommands work after npm install -g claude-mem-plugin.
Support Matrix
| Client | Status | Install command | Notes |
| --- | --- | --- | --- |
| Codex | Available | npx claude-mem-plugin install codex | Installs the shared skill and removes any legacy codex-mem alias during reinstall |
| Claude Code | Available | npx claude-mem-plugin install claude | Updates .claude/settings.json and installs the shared skill |
| Copilot CLI | Available | npx claude-mem-plugin install copilot | MCP + shared skill only; no hook registration - agent-driven on all platforms |
Runtime Modes
The package currently uses two operating modes:
hook-driven: the host runtime reliably triggers lifecycle hooksagent-driven fallback: the agent performs lifecycle steps explicitly when hooks are unavailable or not trusted
Current policy:
- Codex and Claude Code default to
hook-drivenon macOS and other non-Windows platforms - Windows defaults to
agent-driven fallback - Copilot CLI uses
agent-driven fallbackon all platforms
Version markers created in ~/.codex, ~/.claude, and ~/.copilot are used only for idempotent install and upgrade behavior. They do not replace the upstream memory engine or prove that the runtime is healthy on their own.
Verification
Check the target files below after installation:
- Codex:
~/.codex/config.toml,~/.codex/hooks.json,~/.agents/skills/claude-mem/ - Claude Code:
~/.claude/settings.json,~/.claude/skills/claude-mem/ - Copilot CLI:
~/.copilot/mcp-config.json,~/.copilot/skills/claude-mem/
For a read-only diagnostic pass:
npx claude-mem-plugin doctorIf you are migrating an older Codex-only setup, the installer removes any leftover codex-mem compatibility alias and keeps only the canonical claude-mem skill.
Documentation
- Installation
- Architecture
- Lifecycle
- Upstream compatibility
- Install from source
- Support matrix
- Troubleshooting
- GitHub release playbook
- npm and npx distribution status
Release Model
Current distribution channels:
- public
npmpackage npxinstall surface- GitHub repository
- GitHub Releases with versioned
.zipassets
Current npm distribution details are tracked in docs/npm-and-npx.md.
Contributing
Contributions are welcome. Start with:
For local verification:
node --test