Back to browse
GitHub Repository

Human-like memory for AI agents — semantic, episodic & procedural. Experience-driven procedures that learn from failures. Free API, Python & JS SDKs, LangChain, CrewAI & OpenClaw integrations.

173 starsPython

Mengram – AI agent memory with facts, events, and evolving workflows

by mengram-ai·Feb 25, 2026·2 points·1 comment

AI Analysis

●●●BangerZero to OneBig Brain

Procedures that learn from failures—not just facts; agents improve through experience loops.

Strengths
  • Novel memory model: three-tier architecture (semantic + episodic + procedural) with failure-driven procedure evolution is genuinely different from Mem0/Zep/Letta.
  • Low friction: free tier, multi-SDK support (Python, JS), LangChain and CrewAI integrations, import from ChatGPT/Obsidian all present.
  • Cognitive profiles and experience-weighted procedure updates address real agent drift—the 'same mistake twice' problem is well-motivated.
Weaknesses
  • API-dependent architecture (no self-hosted free tier option shown); requires external service for persistence.
  • Early-stage product (54 stars, limited adoption data); evolution mechanism relies on agent correctly identifying failures—brittleness not proven at scale.
Category
Target Audience

AI agent builders, LangChain/CrewAI developers, teams scaling agentic workflows

Similar To

Mem0 (persistent AI memory) · Zep (session memory + embeddings) · Letta (persistent agent state)

Post Description

Hi HN, I built Mengram because every AI memory tool I tried only stored facts. My agents kept making the same mistakes — forgetting what happened, losing workflows.

Mengram stores 3 types: semantic (facts), episodic (events/decisions), and procedural (workflows). The key difference: procedures evolve when they fail. Week 1: deploy → build → push (fails: forgot migrations) Week 2: deploy v2 → build → migrate → push (fails: OOM) Week 3: deploy v3 → build → migrate → check memory → push This happens automatically from conversations — report a failure, the procedure evolves. Stack: Python, PostgreSQL + pgvector, FastAPI. Free cloud API, self-hostable, SDKs for Python/JS, integrations with LangChain, CrewAI, MCP. Honest limitations: extraction quality depends on LLM, procedural evolution needs clear failure descriptions, no real-time streaming yet.

Would love feedback on the memory model — is 3 types the right abstraction, or too complex?

Similar Projects

AI/ML●●Solid

Memdir – local, file-based memory for AI agents

Markdown files are the source of truth—embeddings are just a cache, not the database.

CozyNiche GemZero to One
artiebits
202mo ago
AI/ML●●Solid

The Memory for OpenClaw

Inspectable memory records beat black-box embeddings for AI agent context persistence.

Big BrainNiche Gem
ngaut
202mo ago
AI/ML●●Solid

Zaxy v1.0

Event-sourced coordination with approval packets beats LangChain's shared scratchpad approach.

Big BrainShip It
syndicalt
3219d ago