
memory-palace
Spatial memory palaces that organize, search, and maintain domain knowledge with PR review capture.
- version
- 1.10.3
- GitHub stars
- 350
What it does
- Adds
/palace,/garden,/navigate,/review-room, and/skill-logscommands for building and searching knowledge - Covers palace design, multi-modal search, session palaces, digital gardens, and a PR review chamber
- Enforces semantic deduplication via FAISS cosine similarity, falling back to Jaccard, so near-duplicate notes are not stored
- Designed for developers who want explicit, navigable domain knowledge that persists alongside Claude's auto-memory
Spatial knowledge organization with memory palace techniques: build, navigate, and maintain virtual memory structures with PR review capture
Add marketplace
/plugin marketplace add athola/claude-night-marketRun it inside Claude Code once, then install the plugin below.
Install
/plugin install memory-palace@claude-night-marketRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceDigital Garden Cultivator
Design, manage, and evolve digital gardens as living knowledge bases. Digital gardens are interconnected note collections that grow organically, emphasizing evolution over perfection.
What It Is
A digital garden approach to knowledge management that:
- Builds dynamic knowledge bases that evolve over time
- Connects notes through bidirectional links
- Incubates ideas before formalizing as documentation
- Creates discovery paths for information navigation
- Tracks content maturity and maintenance needs
Quick Start
Calculate Garden Metrics
python -m memory_palace.garden_metrics path/to/garden.json --format brief
Output Formats
json- Full metrics as JSONbrief- One-line summaryprometheus- Prometheus exposition format
When To Use
- Building dynamic knowledge bases that evolve over time
- Connecting notes, skills, and palaces through bidirectional links
- Incubating ideas before formalizing as documentation
- Creating discovery paths for navigating information
- Managing content lifecycle (seedling → growing → evergreen)
When NOT To Use
- Creating memory palace structures - use memory-palace-architect
- Evaluating new knowledge
- use knowledge-intake
- Creating memory palace structures - use memory-palace-architect
- Evaluating new knowledge
- use knowledge-intake
Content Maturity Levels
| Level | Status | Description |
|---|---|---|
| Seedling | New/rough | Early ideas, incomplete thoughts |
| Growing | Developing | Being actively refined |
| Evergreen | Mature | Stable, well-developed content |
Core Workflow
- Collect Sources - Gather notes, bookmarks, ideas
- Plan Structure - Define garden organization
- Create Links - Build bidirectional connections
- Schedule Maintenance - Establish tending cadence
- Document Outputs - Convert mature ideas to formal docs
Garden Layout Template
garden:
sections: ["research", "patterns", "experiments"]
plots:
- name: "My First Note"
purpose: "reference" # reference | evergreen | lab
maturity: "seedling" # seedling | growing | evergreen
inbound_links: []
outbound_links: []
last_tended: "2025-11-24T10:00:00Z"
Maintenance Cadence
| Action | Frequency | Purpose |
|---|---|---|
| Quick prune | Every 2 days | Remove dead links, fix typos |
| Stale review | After 7 days inactive | Assess content freshness |
| Archive | After 30 days inactive | Move to archive or delete |
Success Metrics
- Link density - Average links per piece of content
- Bidirectional coverage - % of links that are reciprocal
- Freshness - Time since last update per area
- Maturity ratio - Evergreen content / total content
Detailed Resources
- Linking Patterns: See
modules/linking-patterns.md - Maintenance Guide: See
modules/maintenance.md - Metrics Integration: See
modules/maintenance.md
Integration
memory-palace-architect- Host garden within palace structureknowledge-locator- Search garden contentsession-palace-builder- Seed garden from session insights
Troubleshooting
Common Issues
Pre-commit hooks failing
Run SKIP=... git commit to bypass temporarily, then fix issues
Merge conflicts
Use git merge --abort to reset, then resolve conflicts carefully
Commit rejected Check hook output and fix reported issues before committing again
Exit Criteria
-
python -m memory_palace.garden_metricsruns without error on the targetgarden.jsonand outputs link density, bidirectional coverage, freshness, and maturity ratio - Stale notes (inactive for more than 7 days) are identified and surfaced for the user's review
- Each note in scope has a maturity level assigned as one of:
seedling,growing, orevergreen - Dead links and orphaned notes are reported so they can be pruned or reconnected during the maintenance pass
- If
garden.jsonis absent or malformed, the error is reported with the path that was searched rather than silently completing
Readme
Memory Palace Plugin
Spatial knowledge organization using memory palace techniques for Claude Code.
Overview
Memory Palace organizes information using spatial memory techniques for easier retrieval. It builds "palaces" (knowledge repositories with spatial metaphors), "gardens" (organic knowledge bases with bidirectional links), and a "review chamber" for capturing PR review knowledge.
How This Differs from Native Claude Memory
| Layer | Scope | Control |
|---|---|---|
| Auto-Memory (2.1.59+) | Conversation context | Implicit, managed via /memory |
Agent memory Frontmatter (2.1.33+) | Agent-scoped recall | Opt-in per agent |
| Memory Palace | Domain knowledge with spatial hierarchies | Explicit, user-designed |
Auto-memory (2.1.59+) saves useful conversation context
to ~/.claude/projects/*/memory/MEMORY.md and is
managed via the /memory command. Agent memory
frontmatter gives agents persistent recall. Memory
Palace holds domain knowledge in navigable
hierarchies that persist as a permanent corpus.
The three layers work together.
Installation
claude plugins add memory-palace@claude-night-market
Quick Start
# Create a palace
/palace create "K8s Concepts"
# Add knowledge from an external source
Skill(memory-palace:knowledge-intake)
# Search across palaces
/navigate "authentication"
# Check garden health
/garden status
Features
- Palace Architect: Design spatial knowledge structures using mnemonic techniques
- Knowledge Locator: Multi-modal search (keyword, semantic, spatial) across palaces
- Session Palaces: Temporary structures for extended conversations
- Digital Gardens: Evolving knowledge bases with bidirectional linking
- PR Review Chamber: Capture architectural decisions, patterns, and lessons from PR reviews
- Skill Execution Memory: Automatic logging of skill invocations for continual learning
- Semantic Deduplication: FAISS cosine similarity (with Jaccard fallback) prevents near-duplicate storage
- Research Interceptor: Checks local knowledge cache before making web requests
Skills
| Skill | Description |
|---|---|
memory-palace-architect | Design and construct virtual memory palaces. |
knowledge-locator | Find information using multi-modal search. |
session-palace-builder | Create temporary session-specific palaces. |
digital-garden-cultivator | Manage evolving knowledge bases. |
knowledge-intake | Process and evaluate external knowledge. |
review-chamber | Capture PR review knowledge in project palaces. |
palace-diagram | Draw palace structure and topology as Mermaid or ASCII. |
palace-index-curator | Curate the web-capture index: rebuild, promote, archive. |
memory-clarity-probe | Check session state clarity before handoff or compression. |
Commands
| Command | Description |
|---|---|
/palace | Create and manage memory palaces. |
/garden | Manage digital gardens and metrics. |
/navigate | Search and navigate across palaces. |
/review-room | Manage PR review knowledge in project palaces. |
/skill-logs | View and manage skill execution memories. |
Agents
| Agent | Description |
|---|---|
palace-architect | Design palace architectures. |
knowledge-navigator | Search and retrieve information. |
knowledge-librarian | Evaluate and route knowledge. |
garden-curator | Maintain digital gardens. |
Hooks
| Hook | Event | Description |
|---|---|---|
research_interceptor.py | PreToolUse | Checks local knowledge cache before web requests. |
local_doc_processor.py | PostToolUse | Monitors Read operations for indexing suggestions. |
user_prompt.py | UserPromptSubmit | One process for URL detection (_url_detector.py) and +recall (_recall.py). |
web_research_handler.py | PostToolUse | Processes web content for knowledge extraction. |
skill_tracker_pre.py | PreToolUse | Records start time when Skill tool is invoked. |
skill_tracker_post.py | PostToolUse | Logs completion, calculates metrics, stores memory. |
research_queue.py | SessionEnd | Queues the session's web research for corpus evaluation (details). |
Setup hook (claude --init-only,
claude -p --maintenance "<prompt>") handles one-time initialization
and periodic garden maintenance. See hooks/hooks.json for configuration.
Architecture
memory-palace/
├── .claude-plugin/
│ └── plugin.json
├── skills/ # 9 skills (see Skills table above)
├── commands/ # 5 commands (palace, garden, navigate, review-room, skill-logs)
├── agents/ # 4 agents (architect, navigator, librarian, curator)
├── hooks/ # 6 runtime hooks + setup hook
├── src/memory_palace/
│ ├── palace_manager.py
│ ├── project_palace/ # rooms.py, entry.py, manager.py, capture.py
│ ├── corpus/ # Indexing, caching, deduplication, lineage
│ └── lifecycle/ # Autonomy state, decay model
├── scripts/ # CLI tools, metrics, embedding builder
└── tests/
Why the capture index is committed
hooks/memory-palace-index.yaml is tracked in git although a session
hook rewrites it. Issue #620 proposed untracking it and set the
tiebreak: the committed copy stays only if something needs it. Something
does.
The file is a work queue. web_research_handler appends a
capture as pending. scripts/precommit_palace_maintenance.sh runs the
index_promoter drain on every commit and re-stages what changed. The
drain promotes an entry into docs/knowledge-corpus/, which is itself
committed, or archives it, or holds it. So the queue and the durable
output it feeds have to move together. Untracking the queue would leave
a committed corpus whose provenance lived on one contributor's disk.
Three gates hold it, and they run in make test:
test_capture_index_drain_gate.pyfails a commit carrying any entry stillpending, so the drain cannot quietly fall behind.test_capture_index_artifact.pyapplies the dedup invariants to the shipped file rather than to a fixture, so a hook that corrupts the artifact fails a gate instead of landing in a commit.test_index_prune_cli_guard.pycovers the prune path that once left dangling hash references behind.
Issue #620 also asked for a check that the committed content matches a freshly derived index. That one is not implementable as written: the file is a log of what live sessions fetched, and there is no source to re-derive it from. The three gates above are the achievable equivalent, and they check invariants rather than provenance.
What none of this cures is the diff noise #620 was filed about. The file still goes dirty mid-session and still conflicts between concurrent branches that both ran a hook. The gates make that cost safe to carry. They do not remove it.
Requirements
- Python 3.9+
- Claude Code
Documentation
- Book: Memory Palace Plugin for detailed usage, cache modes, palace architecture, and curation workflows
- PR Review Chamber for review knowledge capture
- Skill Execution Memory for execution history and metrics
Stewardship
Ways to leave this plugin better than you found it:
- Palace architecture examples could include a walkthrough showing how spatial metaphors map to real knowledge
- The semantic deduplication threshold (FAISS cosine similarity) is an opportunity to document how to tune it for different content densities
- Hook descriptions would benefit from latency expectations so users understand the per-operation cost
- The research interceptor cache hit/miss ratio could be
surfaced as a quick health metric in
/palaceoutput - Garden maintenance workflows could include a short guide on pruning stale nodes
See STEWARDSHIP.md for the full stewardship principles guiding this project.
License
MIT
Details
- Marketplace
- athola/claude-night-market
- Source
- plugins/memory-palace
- Category
- Community
- Keywords
- memory, knowledge-management, spatial-organization, recall
- Listed since
- Apr 7, 2026
More from athola/claude-night-market
All 23- ministerv1.10.3
- oraclev1.10.3
- parseltonguev1.10.3
- pensivev1.10.3
- phantomv1.10.3
- sanctumv1.10.3
- scribev1.10.3
- scryv1.10.3
- spec-kitv1.10.3
- tomev1.10.3
- abstractv1.10.3
- archetypesv1.10.3
- attunev1.10.3
- cartographv1.10.3
- conjurev1.10.3
- conservev1.10.3
- egregorev1.10.3
- gauntletv1.10.3
- heraldv1.10.3
- hookifyv1.10.3
- imbuev1.10.3
- leylinev1.10.3
Similar to memory-palace
More Memory & Context
basic-memoryPluginbasicmachines-co/basic-memory4.6K starsThe bridge between Claude's working memory and Basic Memory's durable knowledge graph — session briefings, pre-compaction checkpoints, and capture reflexes
knowledge-and-memoryPluginoaustegard/claude-skills415 starsResearch methodology, corpus search, persistent memory, iterative workflows, and project knowledge management.
knowledge-basePlugingreyhaven-ai/claude-code-config31 starsOntological knowledge management with long-term memory storage. Combines structured knowledge entries with semantic search, version control, and relationship ma
rememberSkillrohitg00/agentmemory14.9K installsSave insights, decisions, and learnings to long-term memory with specific, retrievable concept tags.
memory-systemsSkillmuratcankoylan/agent-skills-for-context-engineering354 installsPersistent semantic memory for agents: graph and vector retrieval, entity tracking, and temporal validity across sessions.
MCP Knowledge GraphMCP servershaneholloman887 starsPersistent local knowledge graph memory with master and named databases for AI assistants.