Ralpberry-Labs

Claude Memory Patterns — AI skill for Claude Code

AI community

Claude memory patterns for AI agents: give Claude and other LLM agents long-term memory across sessions with sliding windows, summaries, SQLite/FTS5 retrieval, structured facts, episodic logs, a /memo.

How to install Claude Memory Patterns

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Ralpberry-Labs/claude-memory-patterns and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Memory Patterns does

Claude memory patterns for AI agents: give Claude and other LLM agents long-term memory across sessions with sliding windows, summaries, SQLite/FTS5 retrieval, structured facts, episodic logs, a /memories tool handler, forgetting and privacy. Stdlib Python with tests.

Alternatives in AI

  • Hindsight — State-of-the-art long-term memory for AI agents by Vectorize 6.7k ★
  • Nocturne Memory — A lightweight, rollbackable, and visual Long-Term Memory Server for MCP Agents 1.3k ★
  • Uteke — Long-term memory for any AI agent 281 ★

README

Claude Memory Patterns: How to Give Claude and Other AI Agents Long-Term Memory (Python Reference Code)

A practical guide to **memory for AI agents and LLM apps**, whether you build on Claude, another hosted model, or a local one: how to make an agent remember users, projects and past work across sessions without stuffing everything into the context window. It covers short-term memory (sliding windows, rolling summaries), long-term memory (keyword and vector retrieval, structured facts, episodic logs), memory written by the model itself (memory tools, `CLAUDE.md`-style files), consolidation, forgetting, privacy and evaluation.

Every pattern comes with a small, readable **Python reference implementation** that uses only the standard library (SQLite with FTS5 for search). The code is meant to be read, copied and adapted, not installed as a framework. It is for developers building chatbots, coding agents, assistants and multi-session workflows.

Last reviewed: December 2026. Library and API references were checked at that date; the patterns themselves are stable.

Contents