Skip to content
Skill

Kagura memory

Gives Codex persistent project memory: recall past decisions, save lessons, restore

Kagura 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
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
15
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Kagura memory

Kagura Memory skill connects Codex to a Kagura Memory Cloud server so decisions, rationale and troubleshooting notes survive between sessions. The agent is told to treat local git state and files as the source of truth for current code and to use the memory store only as supplemental context.

The skill covers restoring a session by pulling recent work, pinned guardrails and upcoming follow-ups, recalling prior decisions or fixes by topic, saving reusable conclusions with typed, tagged entries, and maintaining a context by reviewing outdated or superseded memories. It also covers adding the MCP server to Codex and signing back in when a token is rejected, with guidance to keep API keys out of config files and chat.

It expects a Kagura Memory Cloud endpoint, either hosted or self-hosted, and a Codex setup that supports MCP servers. No scripts are bundled; all actions go through the server's MCP tools.

When your agent uses it

Use Kagura Memory Cloud from Codex for long-term project memory. Trigger when the user asks to start or restore a session, recall past decisions or bug fixes, save session knowledge, remember a decision or troubleshooting note, review a context for outdated memories (maintain), inspect memory contexts, verify the kagura-memory MCP connection, or log in to it again (a Kagura tool failing with invalid_token or insufficient_scope, a new machine or workspace).

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (47 KB) on GitHub on 5 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 kagura-memory plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add kagura-ai/memory-cloud
/plugin install kagura-memory@kagura-memory-cloud

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.claude/skills/kagura-memory &&
rm -rf "$tmp"

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

Claude Code docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.agents/skills/kagura-memory &&
rm -rf "$tmp"

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

Codex docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.cursor/skills/kagura-memory &&
rm -rf "$tmp"

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

Cursor docs on skills

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

gemini skills install https://github.com/kagura-ai/memory-cloud.git --path plugins/kagura-memory/skills/kagura-memory

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

Gemini CLI docs on skills

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

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kagura-memory &&
cp -R "$tmp/plugins/kagura-memory/skills/kagura-memory" ~/.copilot/skills/kagura-memory &&
rm -rf "$tmp"

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

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/kagura-ai/memory-cloud.git

Then copy memory-cloud/plugins/kagura-memory/skills/kagura-memory into your agent's skills folder as kagura-memory. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Session restore
Pulls recent branch state, memory highlights and upcoming follow-ups to resume work.
Recall past decisions
Searches stored memories by topic, type, tag or date to find prior decisions and fixes.
Save reusable knowledge
Stores decisions, bug fixes and troubleshooting notes as tagged, typed memories.
Memory maintenance
Reviews a context for outdated memories and proposes updates or deletions for approval.
MCP connection setup
Guides adding the Kagura MCP server to Codex config and verifying the connection.
Re-authentication help
Explains how to sign in again when a token is rejected or a new machine is used.

Good for

  • Restore yesterday's project context before continuing a coding task
  • Find the earlier decision about a library or architecture choice
  • Save the root cause and fix of a tricky bug for later sessions
  • Review a memory context for stale facts before a release
  • Check that the Kagura memory server is connected to Codex

Kagura memory FAQ

What does Kagura memory need to run?

A Kagura Memory Cloud endpoint, either hosted or self-hosted, configured as an MCP server in Codex, with the API key exported in the shell that starts Codex.

Does Kagura memory change my code or files?

The skill itself directs memory reads and writes through Kagura MCP tools. Local code is treated as the source of truth and is not changed by the skill's instructions.

When does Kagura memory trigger?

When you ask to start or restore a session, recall past decisions or bug fixes, save knowledge, maintain memory, inspect contexts, verify the connection, or log in again.

Does Kagura memory store my API key?

No. The skill instructs that keys stay in environment variables or hidden prompts and are never written into config files or chat.

How do I install Kagura memory in Claude Code?

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

Does Kagura 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 Kagura 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 Kagura memory?

The closest alternatives to Kagura memory are Compound memory, Claude mem, Session memory, Unified memory and Memory.

Where this comes from

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