Agents/GitHub/Agent
langgraph-short-long-term-memory
by MartinCastroAlvarez·Last observed 2026-10-27
★ 0 stars⑂ 0 forks
A small LangGraph personal assistant demonstrates separate short-term conversation history and long-term user memory. It trims thread history to a token budget and summarizes older turns, while a namespaced semantic store holds updateable facts, recalled episodes, and feedback-shaped style rules. Memory can be written during a turn or by background consolidation.
Useful for
- Remember a user’s city in one thread, then answer a question about it in another thread using the shared long-term store.
Key features
- Keeps checkpointed conversation history per thread and supports history inspection, replay, and branching from a checkpoint.
- Stores user facts, past conversation episodes, and style instructions in separate namespaces, with semantic recall and update or deduplication behavior.
- Provides a forget action that deletes a user’s namespace and checkpoints.
Requirements & limitations
- The offline demo uses a scripted fake chat model and deterministic hashing embedder, so it needs no model, key, or network; live provider configuration is separate.
- Time travel applies to short-term checkpoints; the long-term store is not versioned, so facts from an abandoned branch remain.
Discussion
No comments yet.
Sign in with Google to comment. Browsing is open to everyone.