HyperMnesia
Description
Self-hosted long-term memory for AI coding agents: Postgres+pgvector doc-RAG (component/constraint map + hybrid RRF + cross-encoder rerank) and bi-temporal personal memory. MCP-native, local-model friendly.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
HyperMnesia
*The opposite of amnesia* (Greek *hypermnesia* -- abnormally complete recall). Self-hosted long-term memory for AI coding agents -- a Postgres-backed store that gives an agent (Claude Code, or any MCP client) two things:
- Architectural memory (doc-RAG + Tier 0/1) -- your repos' docs made searchable, plus a deterministic component -> constraint model so the agent knows the rules that apply to a file before it edits, without a search.
- Personal memory -- durable facts/preferences/decisions distilled from work sessions and injected back automatically, so the agent stops re-learning the same things every session.
One store (Postgres + [pgvector](https://github.com/pgvector/pgvector)), local-model friendly (embeddings via [Ollama](https://ollama.com) or [TEI](https://github.com/huggingface/text-embeddings-inference)), MCP-native, no cloud dependency. Runs on a laptop, one server, or Kubernetes.
Not a vector-DB wrapper. The value is the **delivery**: deterministic constraint injection (Tier 1) and hook-driven personal-memory capture/recall -- "storage is solved, injection isn't."
How it works
+---------------- retrieval ----------------+
query --> Tier 0: pinned project map + global invariants |
Tier 1: path -> component -> must/should constraints (+1-hop graph) <- deterministic
Tier 2: hybrid RRF search (pgvector cosine + Postgres FTS) + rerank <- fuzzy
+-------------------------------------------+
- Tier 2 search fuses dense (bge-m3 embeddings, HNSW) and lexical (composite
tsvector, works for code identifiers and non-English) via Reciprocal Rank Fusion, then an optional cross-encoder reranker (bge-reranker-v2-m3) reorders the top candidates (measured +0.16 recall@1 on our eval set). - Personal memory is bi-temporal (event time vs ingestion time), **supersede-not-overwr
Related Skills
mcp-server-postgres
Read-only PostgreSQL database access.
Data mcp-server-sqlite
SQLite database interaction and querying.
Data mcp-server-google-maps
Google Maps integration for location data.
Data Bitbucket Data Center
---
Data Private Gpt
Complete API layer for private AI applications on local models: RAG, skills, tools, MCP, text-to-sql, and more
Data Csv Data Summarizer
Automatically analyze CSV files and generate comprehensive insights with visualizations
Data