magic-context
Self-managing, unbounded context and long-term memory for coding agents: one session, for life.
langmem es un proyecto de agentes de IA de código abierto de langchain-ai (langchain-ai/langmem en GitHub). Tiene 1.698 estrellas en GitHub y 194 bifurcaciones, se publica bajo la licencia MIT y se actualizó por última vez en GitHub el 2 de octubre de 2026.
LangMem: long-term memory primitives for LangGraph agents that learn and adapt from conversations.
Decide your memory strategy: agents managing memory in the hot path during conversation, a background manager that consolidates knowledge, or both.
Install LangMem from PyPI and configure an API key for your LLM provider.
Create a store (in-memory for development, database-backed for production) and give your agent the memory management and search tools with a namespace.
Chat with the agent normally; it records and retrieves memories itself, and you can verify recall by asking about earlier preferences.
Storage-agnostic primitives for extracting, consolidating, and updating knowledge from conversations, usable with any storage system.
Ready-made manage and search memory tools let an agent record and look up information during active conversations, under your control of what gets stored.
Automatically extracts, consolidates, and updates agent knowledge outside the conversation flow.
Works directly with LangGraph's Long-term Memory Store, which is available by default in LangGraph Platform deployments.
Beyond facts, LangMem can optimise agent behaviour through prompt updates informed by past interactions.
Swap the development in-memory store for a persistent Postgres-backed store so memories survive restarts.
Most developers simply pip install the library.
git clone https://github.com/langchain-ai/langmem.git
cd langmemInstall LangMem and export the key for the LLM provider your agent will use.
pip install -U langmem
export ANTHROPIC_API_KEY=<your key>Wire the manage and search memory tools into a LangGraph agent with a store, following the README example. # see README for the full code snippet
python -c "from langmem import create_manage_memory_tool, create_search_memory_tool; print('tools ready')"It is maintained by LangChain (langchain-ai), the team behind LangGraph.
Yes, LangMem is MIT-licensed and free. You pay your LLM provider for the model calls the agent and memory manager make.
Yes, you configure an API key for your chosen LLM provider (the README example uses Anthropic), and embeddings for the store use a configured embedding model.
Vector databases store and retrieve text; LangMem adds the agent-facing layer: tools for in-conversation memory management, background consolidation, and prompt optimisation, integrated with LangGraph.
Run pip install -U langmem, set your provider key, and follow the README's short example to build an agent with the two memory tools.
Self-managing, unbounded context and long-term memory for coding agents: one session, for life.
Long-term memory runtime for AI agents — plain Markdown as truth, local ranked retrieval, no API key
Open-source AI memory that gives agents persistent long-term recall.
A memory operating system for long-term, personalized AI agents.
User-profile-based long-term memory for AI chatbot applications
Honcho — Plastic Labs' memory library for stateful agents that learn about their users over time.
Los demás proyectos de Agentes de IA con más estrellas del catálogo de LibreAI: la lista realista de alternativas si langmem no es lo que buscas.
A personal AI that really does things — on any OS, with your data staying yours.
An agentic skills framework & software development methodology that works.
Agent harness optimization system with skills, memory and security for Claude Code, Codex and more
The agent that grows with you — a Python framework for adaptive AI agents.
DeepSeek's plugin-based agent harness where everything is a plugin.
Proyectos de Agentes de IA cercanos en el catálogo, los más próximos en estrellas a langmem: sigue explorando a ambos lados.
A code-first Java toolkit for building AI agents.
Lean coding agent written in Rust, optimized for memory footprint and performance.
Run context-engineering-kit locally: hand-crafted claude code skills focused on improvi...
A coding agent that runs on your model, your machine, your rules.
A markdown knowledge graph with LSP for editors and MCP for agents.
Self hosted, live digital human agent system.
Gratis y abierto: consigue el código fuente, dale una estrella al repositorio y empieza a crear.