memory

memory is a skill for Claude Code from metraton/gaia. It costs 0 tokens per session (7,039 once invoked), scanned A, original, MIT.

A memory-management guide for an agent. It explains how to separate temporary events, searchable past sessions, and deliberately retained knowledge.

In plain words
What is it for?
Use it when deciding what to remember, searching past work, recording decisions, or tracking an ongoing task across sessions.
Why use it?
It helps keep useful context without treating every past event as permanent truth or cluttering future sessions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions OpenCode.

Part of the gaia plugin — 43 skills, 9 agents, 12 hooks shipped together

Good fit Use it when deciding what to remember, searching past work, recording decisions, or tracking an ongoing task across sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metraton/gaia/memory
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add metraton/gaia --skill memory
Clone the repo
git clone --depth 1 https://github.com/metraton/gaia

Made for: Claude Code.

Or install gaia, the plugin that ships this one along with the rest of its 43 skills, 9 agents, 12 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/metraton/gaia/memory/github.svg)](https://agentmods.dev/skills/metraton/gaia/memory)
Your own site
<a href="https://agentmods.dev/skills/metraton/gaia/memory"><img src="https://agentmods.dev/badge/skills/metraton/gaia/memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/metraton/gaia/memory"><img src="https://agentmods.dev/badge/skills/metraton/gaia/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,039 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.07039
Opus 5.5 $0.00000 $0.02816
Sonnet 5.5 $0.00000 $0.01408
Haiku 4.5 $0.00000 $0.00704

Measured 23d ago against content hash 36388e7bc395, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 23d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/memory/SKILL.md · 473 lines

How it starts

The opening of the file, as written. The whole thing — 473 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory

Memory is the curation technique that turns selected experience into continuity: durable knowledge kept small, live work kept visible, and raw operational history left on the automatic event floors where it belongs. Every curated row is one claim of a closed kind, held by one owner, and Gaia delivers it to the readers that kind and owner reach.

What memory is for

Gaia's harness -- its identity, skills, hooks, CLI and the Environment every session is born with -- is what Gaia does for anyone. Memory holds only the difference this user, one of his workspaces, groups or projects makes to it. That one idea decides both whether something is kept and how it is written:

  • What Gaia already knows is no difference. Kept again, it is a second source that goes stale.
  • What would hold for any user is no difference either. It is a missing standard or a defect, fixed in the harness and never patched into his rows.
  • A difference lives only where the harness leaves a choice. A default bends to him once he has agreed to the bend. A wall never does -- consent, security, the contract every agent closes -- because a wall memory could move would not be a wall. Signing every PR as JLA is a difference; accepting every destroy is nothing memory can hold.
  • Whose difference it is decides its owner, so he never has to name one.
  • A row carries the difference alone, never the context Gaia already has, which is what keeps it short.
  • A decision goes to its home when it is made; the conversation is only a cache of it (When to save, below).

The three floors

Floor Purpose Lifecycle
Events Commands, dispatches, session events, and other operational facts Automatic and short-lived
Episodes Searchable agent-turn outcomes and anomalies Automatic, retained for diagnosis
Curated memory User-governed knowledge and work that must affect future decisions Deliberate and long-lived

Events and episodes are evidence, not durable truth.

Read the full file on GitHub · 473 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 23d ago Changed · +222 lines 36388e7bc395
  2. 1mo ago Changed · +1 lines 9266613d90b3
  3. 1mo ago Changed · +93 lines a21fe9844049
  4. 2mo ago Changed · +6 lines a40404e56ff6
  5. 3mo ago First seen · 151 lines · 0 tokens per session scan A 59b6b0c79f6a

Subscribe to this mod's changes

memory is a skill published in the GitHub repository metraton/gaia (4 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,039 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

memory compared with skills from other repositories

memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memorymetraton/gaiaSkill4todayMITA0Claude Code
context-driven-developmentIbrahim-3d/orchestrator-supaconductorSkill3842mo agoAGPL-3.0A40Claude Code
knowledge-managerIbrahim-3d/orchestrator-supaconductorSkill3842mo agoAGPL-3.0A54Claude Code
context-loaderIbrahim-3d/orchestrator-supaconductorSkill3842mo agoAGPL-3.0A32Claude Code
handoffbiggora/dev-teamSkill521d agononeA57Claude Code
compound-memoryqGolem/orcSkill58mo agoMITA9Claude Code
half-cloneqGolem/orcSkill58mo agoMITB10Claude Code