# Memory

> Memory is an open-source agent skill for knowledge and memory. Lets an agent search, initialize and promote project decision memory (SSOT files). 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/Chachamaru127/claude-code-harness/tree/main/opencode/skills/memory
- **Repository:** https://github.com/chachamaru127/claude-code-harness
- **GitHub stars:** 3,232
- **License:** MIT
- **Skill name:** memory
- **Collection:** https://github.com/Chachamaru127/claude-code-harness
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-01

## About

This skill manages a project's single source of truth for decisions and patterns, centered on decisions.md and patterns.md. It routes requests to separate reference guides covering SSOT initialization, merging plan files, migrating workflow data, syncing project specifications, and promoting learnings from other memory systems into the SSOT. Search requests are meant to be read-only, and recording, promotion or migration only happens when the user explicitly asks for that operation.

The SKILL.md also points to a shared harness memory store exposed through harness_mem MCP tools, which covers search, timeline lookup, resume packs and checkpoint or event recording. It describes a three-layer memory setup in which Claude Code's automatic memory handles general learnings while the SSOT holds project-specific decisions that were promoted explicitly.

The skill ships as a folder of markdown instructions and reference files with no scripts. The instructions are written in Japanese, and the workflow depends on the harness memory tools and the project's memory files being available.

## When your agent uses it

> Manage SSOT, memory, and cross-tool memory search. Guardian of decisions.md and patterns.md. Use when user mentions memory, SSOT, decisions.md, patterns.md, merging, migration, SSOT promotion, sync memory, save learnings, memory search, harness-mem, past decisions, or record this. Do NOT load for: implementation work, reviews, ad-hoc notes, or in-session logging.

## What it can access

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

- [Instructions only, no scripts](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/memory)
- [License: MIT](https://github.com/Chachamaru127/claude-code-harness/tree/HEAD/opencode/skills/memory)

## Features

- **SSOT initialization:** Guides setting up the single source of truth files for a project's decisions and patterns.
- **Plans file merging:** Covers how to merge Plans.md content through a dedicated reference guide.
- **Workflow migration:** Describes moving existing workflow data into the memory structure.
- **Project spec sync:** Explains how project specifications are synchronized with stored memory.
- **Memory to SSOT promotion:** Promotes important learnings from other memory systems into the SSOT on request.
- **Unified harness memory search:** Uses harness_mem tools to search, browse timelines and record checkpoints across tools.

## Good for

- Search past decisions about a feature before changing it
- Save a learning from this session into the project's decision log
- Promote an important project-specific decision into the SSOT
- Initialize decisions.md and patterns.md for a new project
- Merge or migrate existing planning files into the memory structure

## Install

### Claude Code

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

```sh
/plugin marketplace add Chachamaru127/claude-code-harness
/plugin install harness@claude-code-harness-marketplace
```

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

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

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

### Codex

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/memory &&
cp -R "$tmp/opencode/skills/memory" ~/.agents/skills/memory &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/memory &&
cp -R "$tmp/opencode/skills/memory" ~/.cursor/skills/memory &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/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/Chachamaru127/claude-code-harness.git --path opencode/skills/memory
```

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

### VS Code

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

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/memory &&
cp -R "$tmp/opencode/skills/memory" ~/.copilot/skills/memory &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Chachamaru127/claude-code-harness.git
```

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

## FAQ

### When does Memory trigger?

It triggers when the user mentions memory, SSOT, decisions.md, patterns.md, merging, migration, SSOT promotion, memory search, past decisions or asks to record something. It is told not to load for implementation work, reviews, ad-hoc notes or in-session logging.

### Does it write to memory files on every request?

No. Search requests are read-only, and recording, promotion or migration only happens for the operation the user explicitly asked for.

### What does Memory need to run?

The skill's instructions reference the harness_mem MCP tools for shared memory search and recording, and it works with the project's decisions.md and patterns.md files.

### Are scripts included?

No. The folder contains markdown instructions and reference files only.

### How do I install Memory in Claude Code?

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

### Does Memory run scripts?

No. It is instructions only, with no scripts. 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 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 Memory?

The closest alternatives to Memory are Memory sync, Claude mem, Memory merger, Memory review and Learn.

## Where this comes from

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

## Alternatives

- [Memory sync](https://ai-powered.com/skills/memory-sync): Memory sync is an open-source agent skill for knowledge and memory.
- [Claude mem](https://ai-powered.com/skills/claude-mem-smartworldarafath): Claude mem is an open-source agent skill for knowledge and memory.
- [Memory merger](https://ai-powered.com/skills/memory-merger): Memory merger is an open-source agent skill for knowledge and memory.
- [Memory review](https://ai-powered.com/skills/memory-review): Memory review 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.
- [Compound memory](https://ai-powered.com/skills/compound-memory-protocol-zero-0): Compound memory is an open-source agent skill for knowledge and memory.
- [Codebase memory MCP](https://ai-powered.com/skills/codebase-memory-mcp): Codebase memory MCP is an open-source agent skill for knowledge and memory.
- [Memory budgeting](https://ai-powered.com/skills/memory-budgeting): Memory budgeting is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/memory-chachamaru127-2
