Give your AI a memory — mine projects and conversations into a searchable palace. 19 MCP tools, auto-save hooks, and guided setup.
TypeScript-native port of the MemPalace AI memory system.
WORK IN PROGRESS - CAUTION
MemPalace-TS is a complete TypeScript port of the Python MemPalace project, rewritten from scratch with idiomatic TypeScript patterns. It provides persistent, layered memory for AI coding agents -- identity, context retrieval, semantic search, and knowledge graphs -- backed by ChromaDB and SQLite. This is a library-first design for integration with TypeScript-based AI tooling and Node.js hook systems.
I am involved in harness development and agent coordination theory so memory is an implicit area of interest.
I prefer Typescript than Python, some people like eggs boiled, some prefer raw; thats individuality.
This project treats supply chain security as a first-class requirement.
uuid and date-fns in favor of Node.js built-ins^ or ~ ranges)eval(), new Function(), or dynamic require()/import()files field restricts the npm package to dist/ onlynpm install @mempalace-ts/core
import { MemoryStack, KnowledgeGraph, searchMemories } from '@mempalace-ts/core';
// Wake up with identity + essential context
const stack = new MemoryStack();
const context = await stack.wakeUp();
// Search memories
const results = await searchMemories({ query: 'auth decisions' });
// Knowledge graph
const kg = new KnowledgeGraph();
kg.addTriple('Alice', 'works_on', 'ProjectX', { validFrom: '2025-01-01' });
MemPalace-TS integrates with AI coding agents through its hook system:
See SETUP.md for detailed installation and configuration instructions.
Memory retrieval is organized into four tiers:
| Layer | Name | Description |
|---|---|---|
| L0 | Identity | Core identity and personality. Always loaded. |
| L1 | Essential | High-priority memories, capped for context efficiency. |
| L2 | On-demand | Topic-specific retrieval when a query matches. |
| L3 | Deep search | Full semantic vector search across ChromaDB. |
Memories are organized into a spatial hierarchy: wings (broad categories) containing rooms (specific topics), connected by halls and tunnels. The miner automatically classifies content into this taxonomy based on file paths and content patterns. Drawers hold individual memory items within rooms.
The Dialect module compresses memories using emotion codes and shorthand notation (Abbreviated Adaptive Associative Knowledge) to reduce token usage while preserving semantic content.
An entity-triple store backed by SQLite (better-sqlite3) with temporal metadata. Supports time-scoped queries over relationships between entities.
strict: true TypeScript with zero any in the public APIReadonlySet for immutable constantspnpm test # 138 unit tests
pnpm bench # Performance benchmarks (requires ChromaDB)
Test structure mirrors the Python original with full parity.
| Module | Status |
|---|---|
| Config | Complete |
| Miner | Complete |
| Convo Miner | Complete |
| Searcher | Complete |
| Knowledge Graph | Complete |
| Palace Graph | Complete |
| Layers (L0-L3) | Complete |
| Dialect (AAAK) | Complete |
| Hooks | Complete |
| Entity Detector | Complete |
| Room Detector | Complete |
| Spellcheck | Complete |
| Split Mega Files | Complete |
| General Extractor | Complete |
| Instructions | Complete |
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub entropyvortex/mempalace-tsGive your AI a memory — mine projects and conversations into a searchable palace. 33 MCP tools, auto-save hooks, and guided setup.
Persistent semantic memory for Claude Code — auto-injects relevant context at session start, captures git commits, test results, and research via hooks, and provides 30+ MCP tools for memory management.
Persistent agent memory that survives across sessions — auto-compacting 3-tier memory with hybrid search. Your agent remembers what it learned, decided, and built.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Persistent file-based planning for AI coding agents. Crash-proof markdown plans (task_plan.md, findings.md, progress.md) that survive context loss and /clear, with an opt-in completion gate and multi-agent shared state. Manus-style. Works with Claude Code, Codex CLI, Cursor, Kiro, OpenCode and 60+ agents via the SKILL.md standard. Includes Arabic, German, Spanish, and Chinese (Simplified and Traditional).
Harness-native ECC operator layer - 67 agents, 271 skills, 92 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses