Help us improve
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
Share bugs, ideas, or general feedback.
By raoof128
Automatic memory capture and context injection for MemPalace — replaces claude-mem with semantic search, knowledge graph, and zero-friction auto-recording
npx claudepluginhub raoof128/mempalace-autopilotShare bugs, ideas, or general feedback.
A Claude Code plugin that gives every session persistent, project-aware memory. At session start it injects the most relevant memories into context; throughout the session it automatically captures conversation deltas into MemPalace on a configurable interval and on every context compaction. Nothing leaks — secrets are scrubbed before anything is stored.
| Requirement | Version |
|---|---|
| Python | 3.10+ |
| Claude Code | latest |
| MemPalace | pip install mempalace (or pipx install mempalace) |
After installing MemPalace:
mempalace init
mempalace status # verify it's working
# Optionally write ~/.mempalace/identity.txt with a short personal bio
claude plugin add ./mempalace-autopilot
If you have existing memories in claude-mem, bulk-import them before uninstalling:
python3 scripts/migrate_claude_mem.py --dry-run # preview what will be imported
python3 scripts/migrate_claude_mem.py # run the actual import
mempalace status && mempalace search "some known topic"
claude plugin remove claude-mem
| Hook | Trigger | Action |
|---|---|---|
SessionStart | Every new chat | Injects ~800 tokens of project-scoped or global memories |
Stop | After each assistant turn | Every 15 human messages, captures conversation delta |
PreCompact | Before context compression | Emergency save; blocks until MemPalace finishes |
SessionEnd | Session close | Captures final delta; cleans up session state |
mempalace-autopilot/
├── hooks/
│ ├── hook_runner.py # Single Python entry point for all lifecycle events
│ └── hooks.json # Claude Code hook configuration
├── scripts/
│ ├── context_generator.py # Assembles ~800-token memory block at session start
│ └── migrate_claude_mem.py # One-shot bulk import from claude-mem SQLite DB
├── shared/
│ └── utils.py # Canonical detect_wing(), scrub_secrets(), SCRUB_PATTERNS
└── tests/ # 103 unit tests — no network, no MemPalace required
All MemPalace interaction uses subprocess.run(["mempalace", ...]) — the plugin never imports MemPalace directly, so it works regardless of how MemPalace is installed (pip, pipx, venv, system).
The plugin uses the git repository name as the "wing" (namespace) for stored memories:
mempalace-autopilot)generalThis means memories from different projects are automatically separated and the most relevant ones are surfaced first at session start.
All content is scrubbed for secrets before being sent to MemPalace. The scrubber targets:
AKIA...)sk-...)ghp_, gho_, github_pat_)xoxb-, xoxp-, xoxs-)api_key=, secret=, token=, password= patternsAny match is replaced with [REDACTED] before the text leaves the plugin. See SECURITY.md for details on reporting vulnerabilities.
# Run tests (no external services needed)
python3 -m pytest tests/ -v
# Lint
pip install ruff
ruff check .
All tests use unittest.mock — MemPalace and git are fully mocked. The suite runs in under a second.
MIT — see LICENSE.
Based on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Memory compression system for Claude Code - persist context across sessions
Comprehensive status line with context usage, API rate limits, and cost tracking
The most comprehensive Claude Code plugin — 36 agents, 142 skills, 68 legacy command shims, and production-ready hooks for TDD, security scanning, code review, and continuous learning
Semantic search for Claude Code conversations. Remember past discussions, decisions, and patterns.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge.
Sign in to claim