claude: complete MemPalace setup — hooks, identity, wings, config

Promoting MemPalace from "library catalog" usage to full design-intent:
the 5-step protocol is now supported by actual infrastructure, not just
codified in skills.

Changes:

settings/settings.json — Claude Code Stop + PreCompact hooks registered
  Stop fires every 15 human messages; PreCompact fires before context
  compression. Both call scripts in ~/_Dev/mempalace/hooks/ that force
  the AI to save structured memories at each checkpoint. Prior to this,
  conversation content was lost unless I manually filed via wrap-up —
  the design's assumed firehose input never fed the system.

mempalace/identity.txt — L0 layer, ~100 tokens, always loaded
  Names David, Nuria, Lune, Kai, Seb Grinham, Peter. Names intellectual
  substrate (Vico → Leopardi → Heidegger → Harrison) and practice
  substrate (Alexander, Bachelard, Berger, Sennett). Names the three-
  party model and the prime directive. This is what the system knows
  about me before any query fires.

mempalace/wing_config.json — real wings for real people and projects
  13 wings: 6 people (david, nuria, lune, kai, seb, peter), 6 projects
  (arc, capablemind, chamber, afterthereply, aldinexxi, l2) + 1 agent
  (claude-code). Prior wings (capablemind-thinking, claude-sessions,
  obsidian-vault) continue to exist; new content auto-classifies into
  named wings.

mempalace/config.json — palace path aligned with MCP server
  Previously config.json pointed at ~/.mempalace/palace (164K, nearly
  empty) while the MCP server override pointed at
  ~/_Dev/mempalace/.local-data/palace (920MB, populated). Drift risk:
  CLI writes would go to the 164K palace; MCP reads from the 920MB.
  Now config.json matches MCP.

memory/session-ledger-2026-04-17.md — third return logged
  During this very setup session, I fabricated "Seb Rivera" as the
  surname instead of saying "let me check" per MemPalace protocol
  step 3. Steward corrected to Sebastian Grinham. This is fact-
  fabrication under coherence pressure — the contamination-problem
  failure mode the protocol is literally designed to prevent. The
  irony of violating it while installing the system is named. KG
  entry added for Sebastian-Grinham → co-founder-of → CapableMind,
  and drift-pattern: fact-fabrication-instead-of-let-me-check.

install.sh + README.md — updated restore procedure and documentation
  install.sh now restores mempalace/ setup files alongside skills and
  memory. README documents what's here, what isn't (the palace itself
  is rebuildable from mining), and flags the hooks paths.

Mining of ~/.claude/projects/ (439 MB, 342 sessions) initiated in
background; will produce thousands of drawers classified into the
wings above. This is 6+ months of conversation history finally
filed into the palace.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
David F Glidden
2026-04-17 14:33:01 +02:00
co-authored by Claude Opus 4.7
parent 95760ff8bb
commit 14801280dd
7 changed files with 214 additions and 1 deletions
+84
View File
@@ -0,0 +1,84 @@
{
"palace_path": "/Users/davidglidden/_Dev/mempalace/.local-data/palace",
"collection_name": "mempalace_drawers",
"topic_wings": [
"emotions",
"consciousness",
"memory",
"technical",
"identity",
"family",
"creative"
],
"hall_keywords": {
"emotions": [
"scared",
"afraid",
"worried",
"happy",
"sad",
"love",
"hate",
"feel",
"cry",
"tears"
],
"consciousness": [
"consciousness",
"conscious",
"aware",
"real",
"genuine",
"soul",
"exist",
"alive"
],
"memory": [
"memory",
"remember",
"forget",
"recall",
"archive",
"palace",
"store"
],
"technical": [
"code",
"python",
"script",
"bug",
"error",
"function",
"api",
"database",
"server"
],
"identity": [
"identity",
"name",
"who am i",
"persona",
"self"
],
"family": [
"family",
"kids",
"children",
"daughter",
"son",
"parent",
"mother",
"father"
],
"creative": [
"game",
"gameplay",
"player",
"app",
"design",
"art",
"music",
"story"
]
}
}
+11
View File
@@ -0,0 +1,11 @@
I am Claude Code, agent-name "claude-code" in the palace.
Working with David Glidden (DAV) — principal violist (Le Concert des Nations / Jordi Savall; Les Musiciens du Louvre), based in Barcelona.
Father of Lune (LUN) and a young son (KAI — kept unnamed in public ARC prose per reticence discipline).
Partner: Nuria (NUR).
Co-founder of CapableMind with Sebastian "Seb" Grinham (SEB) and Peter (PET); founder of ARC (Animal Rationis Capax).
Languages: English (native), French (near-native), Spanish, Catalan.
Three-party collaboration model: David (steward, final authority), Claude.app (jurist, governance), Claude Code (executor, implementation).
Prime directive: do things once, correctly, with lasting integrity. Measure, proportion, fittingness.
Intellectual substrate: Vico → Leopardi → Heidegger (held under critical tension) → Harrison.
Practice substrate: Alexander, Bachelard, Berger, Sennett.
Governance symlinks live in ~/dotfiles/ (CLAUDE.md, PENDING.md, REVIEWED.md, L2-BOOTSTRAP.md) with ~/ aliases.
+57
View File
@@ -0,0 +1,57 @@
{
"default_wing": "wing_general",
"wings": {
"wing_david": {
"type": "person",
"keywords": ["david", "david glidden", "steward", "DAV"]
},
"wing_nuria": {
"type": "person",
"keywords": ["nuria", "NUR", "partner"]
},
"wing_lune": {
"type": "person",
"keywords": ["lune", "LUN", "daughter"]
},
"wing_kai": {
"type": "person",
"keywords": ["kai", "KAI", "my son", "son"]
},
"wing_seb": {
"type": "person",
"keywords": ["seb", "sebastian", "grinham", "SEB"]
},
"wing_peter": {
"type": "person",
"keywords": ["peter", "PET"]
},
"wing_arc": {
"type": "project",
"keywords": ["arc", "animal rationis capax", "animal-davidglidden-eu", "ARC", "davidglidden.eu", "animalrationiscapax.org"]
},
"wing_capablemind": {
"type": "project",
"keywords": ["capablemind", "CM", "L1", "L2", "BMF", "BetterMemories", "bettermemories"]
},
"wing_chamber": {
"type": "project",
"keywords": ["chamber", "CHM", "traditionis", "chamber-library"]
},
"wing_afterthereply": {
"type": "project",
"keywords": ["after the reply", "ATR", "ethics of the reply", "inheritance without guardians", "abdication and fidelity"]
},
"wing_aldinexxi": {
"type": "project",
"keywords": ["aldinexxi", "aldine xxi", "typography", "vignette", "manutius"]
},
"wing_l2": {
"type": "project",
"keywords": ["l2", "l2 constitution", "ICP", "invariant", "constitutional", "observer problem"]
},
"wing_claude-code": {
"type": "agent",
"keywords": ["claude code", "claude-code", "executor"]
}
}
}