using-memory

using-memory is a skill for Claude Code, Codex from Lotargo/memory_plugin. It costs 91 tokens per session (2,550 once invoked), scanned A, original, MIT.

Instructions for using a persistent memory and knowledge system connected to helper tools. It covers saving and retrieving facts, searching a curated knowledge base, managing documents, and linking related project information.

In plain words
What is it for?
Use it when recording durable preferences or project rules, recalling saved facts, ingesting documents, searching the knowledge base, or managing links between stored information.
Why use it?
It explains which memory or knowledge operation fits each situation, so useful project context can be stored and found later instead of being lost between sessions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Use it when recording durable preferences or project rules, recalling saved facts, ingesting documents, searching the knowledge base, or managing links between stored information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lotargo/memory_plugin/using-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 Lotargo/memory_plugin --skill using-memory
Clone the repo
git clone --depth 1 https://github.com/Lotargo/memory_plugin

Made for: Claude Code, Codex.

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 using-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/lotargo/memory_plugin/using-memory/github.svg)](https://agentmods.dev/skills/lotargo/memory_plugin/using-memory)
Your own site
<a href="https://agentmods.dev/skills/lotargo/memory_plugin/using-memory"><img src="https://agentmods.dev/badge/skills/lotargo/memory_plugin/using-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 using-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/lotargo/memory_plugin/using-memory"><img src="https://agentmods.dev/badge/skills/lotargo/memory_plugin/using-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,550 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.00091 $0.02550
Opus 5.5 $0.00036 $0.01020
Sonnet 5.5 $0.00018 $0.00510
Haiku 4.5 $0.00009 $0.00255

Measured 1mo ago against content hash e89cc0f9c4be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

using-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 1mo 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/using-memory/SKILL.md · 82 lines

How it starts

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

Using Memory, Hybrid RAG Knowledge Engine & MCP Helper Tools

You have access to a persistent dual-layer memory engine supercharged with an Agent-Driven Knowledge Graph and general MCP integration helpers:

  1. Layer 1: Notebook Store (Key-Value Facts): Stores high-signal personal preferences, project conventions, and durable rules in clean Markdown.
  2. Layer 2: Curated RAG Knowledge Base: Preserves selected external findings, documentation, repositories, and technical guides that are likely to matter again.
  3. Layer 3: Agent-Driven Knowledge Graph: Connects Notebook facts (Layer 1) to specific Knowledge Base documents, sections, and exact line ranges (Layer 2).
  4. Integration Layer (General MCP Helpers): Quickly discovers connected MCP servers and identifies appropriate tools for specific tasks.

Session Initialization (MANDATORY)

Follow this exact sequence at the start of every session:

  1. If the client has already supplied an auto-injected <MEMORY> block (native OpenCode), treat the active memory as loaded and do not call recall again merely for initialization. In clients without auto-injection, your very first step MUST be recall(scope: "all") with no restrictive filters — never mode: "headers". The default result is bounded: global facts and active directives are complete, project facts are the 10 newest (newest first) and the response states how many older ones are not shown. Treat the newest project facts as the current state and request more only when the task needs history: recall(offset=…) for the next page, recall(limit=0) for everything, or recall(query=…).
  2. Apply entries marked kind: "directive" as active user-selected personalization or working instructions. Treat kind: "fact" entries as descriptive context.
  3. Call memory_info for the current workspace.
  4. If it reports Identity: git and Registry: unlinked, immediately call link_project_memory for the current directory.
  5. If the link result reports migrated: true, call recall(scope: "all") again so the migrated facts enter the active context.
  6. If it reports Identity: no-git, do not create project memory and do not invent a remote; continue with global memory only.

Read the full file on GitHub · 82 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. 1mo ago Changed e89cc0f9c4be
  2. 2mo ago Changed · -179 lines · -33 tokens per session 95ae021c633e
  3. 3mo ago First seen · 261 lines · 124 tokens per session scan A 1fc5d6f78dee

Subscribe to this mod's changes

using-memory is a skill published in the GitHub repository Lotargo/memory_plugin (2 stars, last pushed 1mo ago), licensed MIT. It adds 91 tokens to every session and 2,550 once invoked, about $0.0004 per session on Opus 5.5. 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

using-memory compared with skills from other repositories

using-memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
using-memoryLotargo/memory_pluginSkill21mo agoMITA91Claude Code, Codex
brain-pagemindmuxai/brain.mdSkill72819d agoApache-2.0A47Claude Code
brain-setupmindmuxai/brain.mdSkill72819d agoApache-2.0A63Claude Code
brain-bootstrapmindmuxai/brain.mdSkill72819d agoApache-2.0A79Claude Code, Codex
brain-ingestmindmuxai/brain.mdSkill72819d agoApache-2.0A48Claude Code, Codex
crystalline-capturejordiboehme/crystallineSkill19todayMPL-2.0A47Claude Code, Codex
crystalline-intelligencejordiboehme/crystallineSkill19todayMPL-2.0A36Claude Code, Codex