persistent-memory

Record decisions, context, and learnings in a file-based memory protocol.

5|1|Updated Feb 7, 2026
One-click install
npx skills add https://github.com/boparaiamrit/skills-by-amrit --skill persistent-memory-boparaiamrit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: persistent-memory
Source: https://github.com/boparaiamrit/skills-by-amrit/tree/main/skills/persistent-memory
Command: npx skills add https://github.com/boparaiamrit/skills-by-amrit --skill persistent-memory-boparaiamrit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI agents often lose context across sessions, forcing repetitive decisions and re-architecting thoughts. This skill provides a portable, file-based memory protocol that captures decisions, context, and learned insights so agents can resume where they left off.

Core Features & Use Cases

  • File-based memory store: MEMORY.md, sessions/, decisions.md, context/, and handoffs/ ensure structured, recoverable context.
  • Cross-agent compatibility: works with Antigravity, Cursor, Claude Code, Gemini CLI, and any agent that can read/write files.
  • Progressive summary and compression: keeps MEMORY.md under control while preserving critical context for future sessions.

Quick Start

Initialize the memory protocol in your project, enabling persistent context storage for every coding session.

Frequently Asked Questions about persistent-memory

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

FAQPage Schema
How do I preserve AI context across coding sessions?

To preserve AI context across coding sessions, use a file-based memory protocol that records decisions, context, and learnings in structured local files. This allows AI agents to resume work exactly where they left off without losing previous session history.

Does persistent memory work with Cursor and Claude Code?

Yes, persistent memory works with Cursor, Claude Code, Antigravity, and Gemini CLI. It uses a portable file-based protocol that any AI agent capable of reading and writing local files can automatically access and update.

What is the best way to track AI agent decisions between sessions?

The best way to track AI agent decisions between sessions is logging them in a dedicated decisions.md file. This creates a recoverable, structured decision log that any compatible agent can read to restore historical context.

How do I keep AI session memory manageable as context grows?

Keep AI session memory manageable by using progressive summary and compression techniques. This automatically condenses older context while preserving critical learnings, ensuring the memory file stays under control for future sessions.

Can I do session handoffs for AI coding agents without a database?

Yes, you can perform session handoffs without a database by using a local file structure with dedicated handoffs and sessions directories. This stores recoverable context directly in your project for agents to retrieve.

How do I initialize file-based memory for an AI coding project?

To initialize file-based memory for an AI coding project, run the memory protocol setup to create the standard directory structure, including MEMORY.md, context folders, and session logs. This enables automatic persistent context capture.