Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

memory-palace

Knowledge organization using spatial memory techniques.

Overview

Memory Palace applies the ancient method of loci to digital knowledge management. It helps you build “palaces” - structured knowledge repositories that use spatial metaphors for organization and retrieval.

Installation

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

Skills

SkillDescriptionWhen to Use
memory-palace-architectBuilding virtual palacesOrganizing complex concepts
knowledge-locatorSpatial searchFinding stored information
knowledge-intakeIntake and curationProcessing new information
digital-garden-cultivatorDigital garden maintenanceLong-term knowledge base care
session-palace-builderSession-specific palacesTemporary working knowledge

Commands

CommandDescription
/palaceManage memory palaces
/gardenManage digital gardens
/navigateSearch and traverse palaces

Agents

AgentDescription
palace-architectDesigns memory palace architectures
knowledge-navigatorSearches and retrieves from palaces
knowledge-librarianEvaluates and routes knowledge
garden-curatorMaintains digital gardens

Hooks

HookTypeDescription
research_interceptor.pyPreToolUseChecks local knowledge before web searches
url_detector.pyUserPromptSubmitDetects URLs for intake
local_doc_processor.pyPostToolUseProcesses local docs after reads
web_content_processor.pyPostToolUseProcesses web content for storage

Usage Examples

Create a Palace

/palace create "Python Async Patterns"

# Creates:
# - Palace structure
# - Entry rooms
# - Navigation paths

Add Knowledge

Skill(memory-palace:knowledge-intake)

# Processes:
# - New information
# - Categorization
# - Spatial placement
# - Cross-references
/navigate "async context managers"

# Returns:
# - Matching rooms
# - Related concepts
# - Cross-references
# - Source citations

Maintain Garden

/garden cultivate

# Performs:
# - Pruning outdated content
# - Strengthening connections
# - Identifying gaps
# - Suggesting additions

Cache Modes

The research interceptor supports four modes:

ModeBehaviorUse Case
cache_onlyDeny web when no cache matchOffline work, audits
cache_firstCheck cache, fall back to webDefault research
augmentBlend cache with live resultsWhen freshness matters
web_onlyBypass Memory PalaceIncident response

Set mode in hooks/memory-palace-config.yaml:

research_mode: cache_first

Palace Architecture

Palaces use spatial metaphors:

Palace: "Python Async"
├── Entry Hall
│   └── Overview concepts
├── Library Wing
│   ├── asyncio basics
│   ├── coroutines
│   └── event loops
├── Practice Room
│   ├── code examples
│   └── exercises
└── Reference Archive
    ├── official docs
    └── external sources

Knowledge Intake Flow

New Information
      |
      v
[Novelty Check] --> Duplicate? --> Skip
      |
      No
      v
[Domain Alignment] --> Matches interests? --> Flag for intake
      |
      Yes
      v
[Palace Placement] --> Store in appropriate room
      |
      v
[Cross-Reference] --> Link to related concepts

Embedding Support

Optional semantic search via embeddings:

# Build embeddings
cd plugins/memory-palace
uv run python scripts/build_embeddings.py --provider local

# Toggle at runtime
export MEMORY_PALACE_EMBEDDINGS_PROVIDER=local

Telemetry

Track research decisions:

# data/telemetry/memory-palace.csv
timestamp,query,decision,novelty_score,domains,duplicates
2025-01-15,async patterns,cache_hit,0.2,python,entry-123

Curation Workflow

Regular maintenance keeps palaces useful:

  1. Review intake queue: data/intake_queue.jsonl
  2. Approve/reject items: Based on value and fit
  3. Update vitality scores: Mark evergreen vs. probationary
  4. Prune stale content: Archive outdated information
  5. Document in curation log: docs/curation-log.md

Digital Gardens

Unlike palaces (structured), gardens are organic:

/garden status

# Shows:
# - Growth rate
# - Connection density
# - Orphan nodes
# - Suggested links
  • conservation: Memory Palace helps reduce redundant web fetches
  • imbue: Evidence logging integrates with knowledge intake