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

AI Ate the Translation Layer: The Org Chart After Agents
Ajey Gore argues AI didn't replace job titles — it ate the translation task. The middle of the org chart (engineering managers, scrum masters, tech leads) is shrinking as agents convert requirements to code directly.

ComfyUI Skill Enables AI Agents to Queue and Batch Image Renders via Natural Language
A new open-source skill allows OpenClaw agents to construct ComfyUI workflows, submit jobs, and manage renders through natural language commands like 'Make 50 variations of this concept with different seeds' or 'Compare these 4 prompts side by side at 1024x1024'.

Open-Source Ralph Loop Toolkit for Claude Code: Pickle Rick and Mr. Meeseeks Agents
An open-source extension for Claude Code implements the Ralph Loop technique with two autonomous agents: Pickle Rick for PRD-driven development and Mr. Meeseeks for code review. Both use tmux with live dashboards and macOS notifications.

Tacit: An LLM-First Programming Language Built with Claude Code and Opus 4.7
Tacit is an experimental LLM-first programming language designed and implemented using Claude Code and Opus 4.7. It strips away human conveniences to minimize token usage and ships with a primer that teaches mid-tier+ LLMs (Sonnet and above) how to write Tacit code.