
Persistent memory
Saves durable project facts and user preferences to bounded memory files across sessions
Persistent memory is an open-source agent skill for knowledge and memory. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.
- Scripts
- shell
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 12
- Last commit
- License
- Apache-2.0
- Listing updated
Similar skills
About Persistent memory
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs shell scripts(see the files on GitHub)
- Network calls found in its scripts(see the files on GitHub)
- License: Apache-2.0(see the files on GitHub)
From a static check of its 3 files (55 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the konductor plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductorOr copy only this skill to ~/.claude/skills/persistent-memory:
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.
Copy the skill folder to ~/.agents/skills/persistent-memory to use it in every repository:
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.
Copy the skill folder to ~/.cursor/skills/persistent-memory to use it in every project:
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.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/persistent-memoryOr copy the folder to ~/.gemini/skills/persistent-memory yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/persistent-memory:
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.
Get the folder:
git clone --depth 1 https://github.com/aws-solutions/konductor.gitThen copy konductor/skills/persistent-memory into your agent's skills folder as persistent-memory. Agents that support SKILL.md read one folder per skill.
What it does
- 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
Persistent memory 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.
More from aws-solutions/konductor

Helps diagnose and troubleshoot an existing Konductor install, CLI, and MCP setup
- Open source
- 12 GitHub stars
- Developer tools

Installs, updates or removes the Konductor toolkit in a Kiro workspace with consent gates
- Open source
- 12 GitHub stars
- Developer tools

Onboards you to Konductor: install the CLI, set up agent content, and start a session
- Open source
- 12 GitHub stars
- Developer tools

Adversarial second-pass code review that hunts for disclosure, data integrity
- Open source
- 12 GitHub stars
- Security

Reviews a code diff for data integrity risks like partial writes and lost updates
- Open source
- 12 GitHub stars
- Developer tools

Reviews code diffs for schema, API contract and backward-compatibility risks
- Open source
- 12 GitHub stars
- Developer tools







