agent-memory

A setup assistant for adding shared agent memory to a repository. It creates a tracked learnings file and tells agents through CLAUDE.md when to read and update it.

In plain words
What is it for?
Use it to install, repair, or enable repository-level memory for setup quirks, conventions, resolved causes, and other lasting lessons.
Why use it?
It lets useful project knowledge survive across fresh agent sessions instead of being lost when a conversation ends.

Skill for Claude CodeCodex

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.

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

Made for: Claude Code, Codex.

Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,089 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00126 $0.01089
Opus 5 $0.00063 $0.00544
Sonnet 5 $0.00025 $0.00218
Haiku 4.5 $0.00013 $0.00109

Measured yesterday against content hash 9c604b46de0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-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 yesterday.

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/agent-memory/SKILL.md · 85 lines

How it starts

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

Agent Memory (repo-level)

This skill installs a lightweight, git-tracked memory pattern into a repository so that learnings survive across fresh agent sessions. It sets up two things:

  1. agent-memory.md at the repo root — a curated, high-signal log of learnings that a cold-start agent would have wanted to know (setup quirks, non-obvious invocations, resolved root causes, dead ends, repo conventions).
  2. A block in CLAUDE.md instructing agents to read agent-memory.md at the start of non-trivial work and when stuck, and to append to it when they learn something durable — checking for and resolving duplicate or contradicting entries first, rather than stacking near-identical notes.

The division of labor matters: CLAUDE.md holds the always-loaded behavior (when to read and write), and agent-memory.md holds the accumulated content, read on demand.

Setting it up

Do this directly with your own file tools — read the bundled templates below, then create or edit the files in the target repo. No script is needed; you create the files yourself. Work at the repository root (the top of the project — confirm with git rev-parse --show-toplevel if git is available, otherwise use the project's top directory).

Both steps are deliberately non-destructive — check before you write:

  1. Create agent-memory.md at the repo root — only if it's missing.

    • If ./agent-memory.md already exists, leave it untouched. It holds accumulated learnings, and overwriting it would throw them away.
    • If it does not exist, create it with the exact contents of assets/agent-memory.template.md.
  2. Add the instruction block to CLAUDE.md — exactly once.

    • Read ./CLAUDE.md (create it if it doesn't exist).
    • If it already contains the marker <!-- agent-memory:start -->, leave it as-is so the block isn't duplicated.
    • Otherwise, append the full contents of assets/claude-md-block.md, preceded by a blank line if the file already has content.

Read the full file on GitHub · 85 lines

Files

What ships with it

2 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. yesterday First seen · 85 lines · 126 tokens per session scan A 9c604b46de0d

Subscribe to this mod's changes

agent-memory is a skill published in the GitHub repository brianschroeder/simple-agent-memory (1 stars, last pushed 1mo ago), licensed MIT. It adds 126 tokens to every session and 1,089 once invoked, about $0.0006 per session on Opus 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

Other skills, from other repositories

agent-challenges

Agent skill for challenges - invoke with $agent-challenges.

ruvnet/ruflo · 15 tokens

claude-certification

AI-native tutor and onboarding workflow for the four independent Claude certification tracks in AI Engineering from Scratch. Use when a learner wants to choose a Claude certification, prepare for CCAO-F, CCDV-F, CCAR-F, or CCAR-P, resume a certification path, learn the next lesson interactively, run and verify…

rohitg00/ai-engineering-from-scratch · 109 tokens

check-understanding

Phase quiz for AI Engineering from Scratch. Trigger with "quiz me", "test phase", "check my understanding", "do I know phase 3", or /check-understanding .

rohitg00/ai-engineering-from-scratch · 44 tokens

find-your-level

Interactive quiz that maps your AI/ML knowledge to a starting point in the 523-lesson, 20-phase AI Engineering from Scratch curriculum. Trigger phrases: "where should I start", "find my level", "what do I know", "which phase", "assess my knowledge", "placement test", "skip ahead".

rohitg00/ai-engineering-from-scratch · 71 tokens

learn-mcp

Focused interactive tutor for the Model Context Protocol (MCP) path in AI Engineering from Scratch. Start or resume this route when a learner wants to build, secure, debug, verify, or operate MCP clients, servers, transports, gateways, registries, or conformance gates. Teaches one lesson per invocation and records…

rohitg00/ai-engineering-from-scratch · 77 tokens

learn

Interactive lesson tutor for the AI Engineering from Scratch curriculum. Reads LEARNING.md, fetches the next lesson, teaches it section by section in the terminal, quizzes at the end, and records progress. Works cloned or entirely over raw.githubusercontent.com — no setup required. Trigger phrases: "next lesson"…

rohitg00/ai-engineering-from-scratch · 80 tokens