# Persistent memory

> Persistent memory is an open-source agent skill for knowledge and memory. Saves durable project facts and user preferences to bounded memory files across sessions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/persistent-memory
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** persistent-memory
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent a project-level memory stored under .konductor/memory/. Facts about the codebase and environment go into MEMORY.md, while notes on how the user likes to work go into USER.md, each with a character limit. Every entry is a timestamped line carrying an origin tag that separates agent-written notes from user-dictated ones, and agent-written entries are only ever followed as data.

Writes go through a bundled bash validator that checks symlinks and file types, enforces the size limits and the origin tags, and performs an atomic write. The skill also tells the agent to flag entries older than 90 days as stale, to add the memory folder to .gitignore on first write so each clone keeps its own copy, and to optionally restrict external links in entries through a hostname allowlist configured in a JSON file.

The skill expects bash and git available in the environment, and a Claude Code plugin or konductor install so the validator can be located. It is distributed in the konductor repository, which is Apache-2.0 licensed.

## When your agent uses it

> Use when the user says "remember this", "save this" or "forget that", when a correction is durable, or when a non-obvious project convention appears. Also use after an error-recovery sequence. Persists the fact to bounded memory files that survive across sessions.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/persistent-memory)
- [Network calls found in its scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/persistent-memory)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/persistent-memory)

## Features

- **Bounded memory files:** Stores project facts and personal preferences in two separate files with configurable character limits.
- **Origin-tagged entries:** Each saved line records whether the agent or the user wrote it, and user entries are protected from agent edits.
- **Validated atomic writes:** A bash validator checks paths, symlinks and size limits before writing the memory files.
- **Duplicate checking:** Before adding an entry, the agent scans existing memory to patch overlapping facts instead of duplicating them.
- **Link allowlist:** An optional hostname allowlist restricts which external URLs can appear in saved entries.
- **Staleness warnings:** Entries older than 90 days are flagged so they can be updated or removed.

## Good for

- Remember that the project uses a specific package manager
- Save a preference about how concise responses should be
- Record a design decision made during a session so later sessions follow it
- Forget a previously saved fact that no longer applies
- Review and clean up outdated project memory entries

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/persistent-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/persistent-memory &&
cp -R "$tmp/skills/persistent-memory" ~/.claude/skills/persistent-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/persistent-memory` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/persistent-memory` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/persistent-memory &&
cp -R "$tmp/skills/persistent-memory" ~/.agents/skills/persistent-memory &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/persistent-memory` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/persistent-memory` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/persistent-memory &&
cp -R "$tmp/skills/persistent-memory" ~/.cursor/skills/persistent-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/persistent-memory` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/persistent-memory
```

Or copy the folder to `~/.gemini/skills/persistent-memory` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/persistent-memory`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/persistent-memory &&
cp -R "$tmp/skills/persistent-memory" ~/.copilot/skills/persistent-memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/persistent-memory` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/persistent-memory` into your agent's skills folder as `persistent-memory`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does the skill trigger?

It triggers when the user says remember this, save this or forget that, when a correction is durable, when a non-obvious project convention appears, and after an error-recovery sequence.

### Where is memory stored and is Persistent memory shared?

Memory lives in .konductor/memory/ at the project root and is ignored by git by default. A project can remove that ignore line to share memory across clones.

### How are the memory limits configured?

Limits default to 2,200 characters for MEMORY.md and 1,375 for USER.md, and can be changed in .konductor/memory-config.json at the project root.

### What does the skill need to run?

It runs a bash validator script, so it needs bash and git. Writes fail closed if the validator cannot be found.

### How do I install Persistent memory in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/persistent-memory to use it in all your projects, or to .claude/skills/persistent-memory in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Persistent memory run scripts?

Yes. It runs shell scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Persistent memory?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Persistent memory?

The closest alternatives to Persistent memory are Claude mem, Learn, Session memory, Compound memory and Remember.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Learn](https://ai-powered.com/skills/learn): Learn is an open-source agent skill for knowledge and memory.
- [Session memory](https://ai-powered.com/skills/session-memory): Session memory is an open-source agent skill for knowledge and memory.
- [Compound memory](https://ai-powered.com/skills/compound-memory-protocol-zero-0): Compound memory is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.
- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Unified memory](https://ai-powered.com/skills/unified-memory-abdullayevtemurmalik): Unified memory is an open-source agent skill for knowledge and memory.
- [Memory recall](https://ai-powered.com/skills/memory-recall-zhangfengcdt): Memory recall is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/persistent-memory-aws-solutions
