Mengram AI: Auto-Memory Tool for Claude Code Sessions

What Mengram AI Does
Mengram AI solves the problem of Claude Code sessions starting from zero by automatically maintaining context between sessions. Instead of manually maintaining CLAUDE.md files, this tool handles memory automatically through hooks that fire during the session lifecycle.
Setup and Commands
Installation requires two commands:
pip install mengram-ai
mengram setupOnce installed, you can check status or uninstall with:
mengram hook status— see what's installedmengram hook uninstall— remove everything cleanly
How It Works
The tool operates through three automatic phases:
- Session start — loads your cognitive profile (who you are, your stack, preferences)
- Every prompt — searches past sessions for relevant context and injects it
- After response — saves new knowledge in the background
No manual saves or tool calls are required.
Memory Types
Mengram stores three types of memory:
- Semantic — facts like "uses Python 3.12, deploys to Railway"
- Episodic — events like "migration failed yesterday, fixed by adding pre-deploy check"
- Procedural — workflows that update themselves when something fails
Procedural Memory Evolution
The procedural memory automatically evolves based on failures. For example, a deployment workflow might progress through versions:
v1: build → push → deploy
v2: build → run migrations → push → deploy
v3: build → run migrations → check memory → push → deployWhen Claude helps with deployment next time, it already knows the latest version (v3 in this example).
Technical Details
The tool is open source under Apache 2.0 license. It works with Claude Code and includes an MCP server for Claude Desktop, Cursor, and Windsurf.
📖 Read the full source: r/ClaudeAI
👀 See Also

Parallel Sub-Agents in Claude Code: When They Save vs. Burn Tokens
Anthropic reports multi-agent systems use ~15× more tokens than a single chat, but prompt caching offers 90% discount on tokens. Whether sub-agents save or burn money depends on cache hit rates.

Open Source Second Brain System Built on Claude Code for Task Management
An open source system called Kipi System uses Claude Code to track open threads, draft follow-ups, and manage tasks by pulling from calendar, email, CRM, and social feeds. It generates a daily HTML file with pre-written actions sorted by friction.

AI-Setup CLI Tool Automatically Generates AI Configuration Files for Local LLM Stacks
AI-Setup is a CLI tool that scans codebases and automatically generates AI configuration files like .cursorrules and claude.md. It detects your stack to eliminate manual rule writing for each new project.

Pleng: Self-Hosted Cloud Platform with AI-Driven Infrastructure Management
Pleng is an AGPL-3.0 licensed, self-hosted cloud platform that uses an AI agent (currently Claude) to manage infrastructure via Telegram bot commands. It deploys from GitHub repos or local directories with automated Traefik routing, Let's Encrypt SSL, and basic analytics.