CogniLayer: An MCP Server for Persistent Memory in Claude Code

CogniLayer is an MCP server built specifically for Claude Code that provides persistent memory across sessions. The tool addresses the problem where Claude Code forgets everything when starting a new session—including project architecture, past decisions, and debugging insights—forcing users to re-explain context repeatedly.
Technical Implementation
The system uses a SQLite database with FTS5 full-text search and vector embeddings (fastembed + sqlite-vec) to store knowledge locally. It implements hybrid search that combines keyword matching with semantic vector similarity.
Key Features
- Stores 14 types of facts: decisions, patterns, gotchas, error fixes, API contracts, and more
- Staleness detection: warns when remembered facts reference changed files
- Session bridges: automatically passes context between sessions
- Heat decay system: facts age over time (hot/warm/cold) with frequently accessed information staying relevant
- Identity Card system: prevents deploying to the wrong server
- 3 hooks: SessionStart, SessionEnd, PostToolUse
- 10 MCP tools and 7 slash commands
Setup and Usage
To install and use CogniLayer:
git clone https://github.com/LakyFx/CogniLayer.git
python install.py
After starting Claude Code in any project, run the /onboard command. The tool runs entirely locally with SQLite and works on Windows, macOS, and Linux.
The project was built using Claude Code sessions, with Claude helping design the database schema, write the MCP server, build the hook system, implement the hybrid search ranker, and iterate on the embedding pipeline. The tool is 100% free, open source under GPL v3, with UI strings currently in Czech but functional with any language.
📖 Read the full source: r/ClaudeAI
👀 See Also

VibeAround: Local Daemon Connects Coding Agents to Telegram and Discord
VibeAround is a local daemon that connects coding agents like Claude Code, Gemini CLI, and Codex to IM platforms including Telegram and Discord. The tool features session handover with pickup codes to continue conversations across devices.

Socratic Prompt Generator Built as React Artifact Inside Claude
A developer built a Socratic prompt generator as a React artifact that runs inside Claude, featuring auto-detection of input complexity and three-tier prompt generation with failure mode analysis.

Klaw.sh: Kubernetes-Style Orchestration for AI Agents
Klaw.sh provides an orchestration solution for AI agent deployment, modeled on Kubernetes. It simplifies management with clusters, namespaces, and channels, achieving memory reduction by rewriting from Node.js to Go.

A 4-tier knowledge base architecture to improve AI agent accuracy
A developer built a structured knowledge base with 200+ articles to provide domain-specific context to AI agents, implementing a 4-tier pipeline with query classification that cut token costs by ~40%.