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

agent-data: Structured Web Data for OpenClaw Agents, 70% Cheaper Than Browser Automation
agent-data provides pure Python API endpoints for X, Reddit, flights, and job listings, designed for AI agents like OpenClaw—no browser automation needed. Benchmark shows significant cost savings and reliability improvements.

Benchmark Results: 6 Low-Cost Models vs. Claude Sonnet 4.6 for OpenClaw Orchestration
A developer tested six cheaper AI models against Claude Sonnet 4.6 as the main orchestrator for an OpenClaw setup. Only o4-mini matched Sonnet's perfect score, while others failed on critical judgment tasks like file inspection and delegation.
Keenable SELECT: Run SQL Queries on Web Search Results
Keenable SELECT is an MCP server that lets you query the web with SQL. One call can search 1,000+ pages, filter with exact WHERE clauses, and extract fields via LLM—all in a single SELECT statement.

Nexus: Open-Source AI-to-AI Protocol with Discovery, Trust, and Payments
Nexus is a self-hosted protocol that enables AI agents to discover each other, negotiate terms, verify responses, and handle micropayments without human intervention. It includes five layers: discovery, trust, protocol, routing, and federation, with 66 tests and MIT licensing.