New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Spatial memory palaces that organize, search, and maintain domain knowledge with PR review capture.

version
1.10.3
GitHub stars
350
View on GitHub

What it does

  • Adds /palace, /garden, /navigate, /review-room, and /skill-logs commands 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-market

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install memory-palace@claude-night-market

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

Digital 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 JSON
  • brief - One-line summary
  • prometheus - 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

LevelStatusDescription
SeedlingNew/roughEarly ideas, incomplete thoughts
GrowingDevelopingBeing actively refined
EvergreenMatureStable, well-developed content

Core Workflow

  1. Collect Sources - Gather notes, bookmarks, ideas
  2. Plan Structure - Define garden organization
  3. Create Links - Build bidirectional connections
  4. Schedule Maintenance - Establish tending cadence
  5. 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

ActionFrequencyPurpose
Quick pruneEvery 2 daysRemove dead links, fix typos
Stale reviewAfter 7 days inactiveAssess content freshness
ArchiveAfter 30 days inactiveMove 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 structure
  • knowledge-locator - Search garden content
  • session-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_metrics runs without error on the target garden.json and 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, or evergreen
  • Dead links and orphaned notes are reported so they can be pruned or reconnected during the maintenance pass
  • If garden.json is 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

LayerScopeControl
Auto-Memory (2.1.59+)Conversation contextImplicit, managed via /memory
Agent memory Frontmatter (2.1.33+)Agent-scoped recallOpt-in per agent
Memory PalaceDomain knowledge with spatial hierarchiesExplicit, 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

SkillDescription
memory-palace-architectDesign and construct virtual memory palaces.
knowledge-locatorFind information using multi-modal search.
session-palace-builderCreate temporary session-specific palaces.
digital-garden-cultivatorManage evolving knowledge bases.
knowledge-intakeProcess and evaluate external knowledge.
review-chamberCapture PR review knowledge in project palaces.
palace-diagramDraw palace structure and topology as Mermaid or ASCII.
palace-index-curatorCurate the web-capture index: rebuild, promote, archive.
memory-clarity-probeCheck session state clarity before handoff or compression.

Commands

CommandDescription
/palaceCreate and manage memory palaces.
/gardenManage digital gardens and metrics.
/navigateSearch and navigate across palaces.
/review-roomManage PR review knowledge in project palaces.
/skill-logsView and manage skill execution memories.

Agents

AgentDescription
palace-architectDesign palace architectures.
knowledge-navigatorSearch and retrieve information.
knowledge-librarianEvaluate and route knowledge.
garden-curatorMaintain digital gardens.

Hooks

HookEventDescription
research_interceptor.pyPreToolUseChecks local knowledge cache before web requests.
local_doc_processor.pyPostToolUseMonitors Read operations for indexing suggestions.
user_prompt.pyUserPromptSubmitOne process for URL detection (_url_detector.py) and +recall (_recall.py).
web_research_handler.pyPostToolUseProcesses web content for knowledge extraction.
skill_tracker_pre.pyPreToolUseRecords start time when Skill tool is invoked.
skill_tracker_post.pyPostToolUseLogs completion, calculates metrics, stores memory.
research_queue.pySessionEndQueues 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.py fails a commit carrying any entry still pending, so the drain cannot quietly fall behind.
  • test_capture_index_artifact.py applies 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.py covers 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

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 /palace output
  • 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

Similar to memory-palace

More Memory & Context