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

Developer Tests Qwen3.5 27B vs Larger Models for Local Coding Tasks
A developer tested multiple Qwen3.5 and Nemotron models, finding Qwen3.5-27B-GGUF:UD-Q6_K_XL performs well for development tasks on existing 2x RTX 3090 hardware, with 803 pp and 25 tg/s at 256k context on vast.ai.

Automate daily briefings into personal Spotify podcasts with OpenClaw and the Save to Spotify CLI
OpenClaw runs daily at 7am, pulls Slack threads + GitHub notifications + calendar, summarizes into mp3, and uploads as a private episode via the Save to Spotify CLI. Works on Free and Premium.

Claude DevTools: A Log Reader for Enhanced Claude Code Visibility
Claude DevTools is a local, open-source tool that reads Claude Code's existing log files in ~/.claude/ to provide detailed session visibility, including file operations with inline diffs, token breakdowns, context window visualization, and full subagent execution trees.

A System for Claude Code to Learn Your Project Over Time
A developer created a simple setup to help Claude Code retain context between sessions by adding a CLAUDE.md file, a docs folder with project conventions, and three prompts for bootstrapping, refining, and capturing patterns.