memory

memory is a skill for Claude Code, Codex from scott-fryxell/brayness. It costs 117 tokens per session (617 once invoked), scanned A, original, MIT.

A system for saving and retrieving durable notes about how a coding-agent setup behaves over time.

In plain words
What is it for?
Use it to check previous learnings before related work and record dated lessons after notable outcomes or user corrections.
Why use it?
It prevents useful lessons, recurring failures, and corrections from being forgotten between similar tasks.

Skill for Claude CodeCodex

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

Good fit Use it to check previous learnings before related work and record dated lessons after notable outcomes or user corrections.

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

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 memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/scott-fryxell/brayness/memory/github.svg)](https://agentmods.dev/skills/scott-fryxell/brayness/memory)
Your own site
<a href="https://agentmods.dev/skills/scott-fryxell/brayness/memory"><img src="https://agentmods.dev/badge/skills/scott-fryxell/brayness/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/scott-fryxell/brayness/memory"><img src="https://agentmods.dev/badge/skills/scott-fryxell/brayness/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 617 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.00117 $0.00617
Opus 5.5 $0.00047 $0.00247
Sonnet 5.5 $0.00023 $0.00123
Haiku 4.5 $0.00012 $0.00062

Measured 28d ago against content hash 66b7e3c85825, 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 28d 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 · 53 lines

How it starts

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

Memory

Learnings are written to AGENTS.local.md (or AGENTS.md for rules everyone must see). AGENTS.local.md is loaded into the system prompt every session by the agents-local extension, so a lesson written there is guaranteed to be in context next session - no on-demand recall needed. The same extension syncs the work/ project table in that file from disk each session; edit descriptions there, not the row list. This separates it from the vault (your knowledge) and from AGENTS.md (standing rules).

Only cross-cutting lessons learned from experience belong here. Standing policies go in AGENTS.md; fix-specific trivia stays with the project. Keep AGENTS.local.md small - every line costs tokens in every session.

Write after a correction or outcome

On a user correction, a repeated failure, or a notable outcome, append a dated bullet under a ## Learnings section in AGENTS.local.md:

## Learnings

- YYYY-MM-DD: [the one reproducible lesson / hint]

Keep every entry to 5-7 words - one hint, no reasoning. If the lesson should guide every agent, put it in AGENTS.md instead - other harnesses read that, not AGENTS.local.md.

Read before you act

AGENTS.local.md is already in your system prompt every session - check it before acting. If a past entry says a given approach failed, say so and take the other route.

Critical refinement loop

On a user correction or a repeated failure, work the loop:

  1. Name the exact correction/failure.
  2. Gather evidence: the user's words, the failing command/output, the file path.
  3. Decide whether the fault is in a skill/process or was a one-off mistake.
  4. If it points at a skill defect, propose the change as a diff to that skill's SKILL.md (in chat, or a file under plans/ for bigger rewrites) and wait for a human to approve before editing the production skill.
  5. Append the learning to AGENTS.local.md Learnings regardless.

The producer never grades its own homework: when reviewing your own work, reason from evidence and state what is wrong plainly.

Read the full file on GitHub · 53 lines

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. 28d ago Changed 66b7e3c85825
  2. 1mo ago First seen · 53 lines · 117 tokens per session scan A e3be91cb1d94

Subscribe to this mod's changes

memory is a skill published in the GitHub repository scott-fryxell/brayness (125 stars, last pushed 29d ago), licensed MIT. It adds 117 tokens to every session and 617 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

knowledge-ingest

Ingest documents, articles, conversations, or supplied text into Knowledge with retained originals, sourced claims, entity updates, timelines, and cross-links; also learn durable lessons from a set of conversations, transcripts, or past sessions (/learn). Routes meetings to knowledge-meeting-ingest and short thoughts…

openclaw/openclaw · 67 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

forget

Remove a personal fact, preference, relationship detail, topic, or prior event from Muse's active memory and stop existing copies or automations from bringing it back. Use for explicit requests such as 'forget that', 'don't remember this about me', or 'remove that from your memory'. Do not use when 'forget it' merely…

asgeirtj/system_prompts_leaks · 74 tokens

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

memory

Use when the user asks to remember, recall, forget, update, search, or inspect durable OpenSquilla memory, including profile facts in USER.md and long-term notes in MEMORY.md or memory//.md.

opensquilla/opensquilla · 44 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens