agent-memory

Stores and retrieves persistent semantic memories in a local SQLite database for agents.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/billyfranklim1/claude-skills --skill agent-memory-billyfranklim1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-memory
Source: https://github.com/billyfranklim1/claude-skills/tree/main/plugins/agent-memory/skills/agent-memory
Command: npx skills add https://github.com/billyfranklim1/claude-skills --skill agent-memory-billyfranklim1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Persistent semantic memory for the agent, enabling long-term retention of patterns, decisions, and important context across interactions.

Core Features & Use Cases

  • Persistent storage of memories in a local SQLite database at ~/.claude/memory/brain.db with keyword search ranked by importance and access frequency.
  • Basic operations: add, search, list, and forget memories across projects to maintain continuity.
  • Automatic saving of new learnings at the end of each session and contextual retrieval when starting work on a project.

Quick Start

Save a memory automatically when you detect a recurring pattern and fetch project context at the start of a session.

Frequently Asked Questions about agent-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I preserve agent context and decisions across multiple sessions?

To preserve agent context across sessions, you need persistent semantic memory. This Skill stores patterns, decisions, and important facts in a local SQLite database, automatically saving new learnings at the end of each interaction to maintain continuity.

What is the best way to maintain long-term memory for an AI agent?

The best way to maintain long-term agent memory is using a local SQLite database. This approach provides persistent semantic storage ranked by importance and access frequency, supporting add, search, list, and forget operations to manage historical context.

How do I search past agent interactions to reduce repetition in complex tasks?

You can search past interactions using keyword search ranked by importance and access frequency. The memory system retrieves contextual history from a local SQLite brain database, allowing you to fetch project context at the start of a session to reduce repetition.

Can I use SQLite for persistent semantic memory without external dependencies?

Yes, you can use SQLite for persistent semantic memory without external dependencies. This Skill requires only a local SQLite brain database at ~/.claude/memory/brain.db, storing memories across projects to maintain continuity with automatic saving capabilities.

When do I need persistent memory for long-running agent tasks?

You need persistent memory for long-running tasks and complex interactions where maintaining history, patterns, and critical facts improves accuracy and reduces repetition. It ensures decisions and important context endure across sessions for ongoing projects.

How do I delete or forget specific memories stored in the agent database?

To delete specific memories stored in the agent database, you use the forget operation. This basic operation works alongside add, search, and list functions to manage persistent semantic memories in the local SQLite brain database across projects.