agents-memory

agents-memory is a skill for Codex from vasilyu1983/AI-Agents-public. It costs 43 tokens per session (5,476 once invoked), scanned D, original, MIT.

A guide for managing AGENTS.md and CLAUDE.md files, which store persistent instructions for coding agents in a project. It explains how to keep those rules scoped, portable, and up to date.

In plain words
What is it for?
Use it to audit project memory, fix stale instructions, organize directory-specific rules, and migrate guidance when the coding model or tool changes.
Why use it?
Outdated or overly broad project instructions can confuse agents and add unnecessary text to every coding task.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to audit project memory, fix stale instructions, organize directory-specific rules, and migrate guidance when the coding model or tool changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vasilyu1983/ai-agents-public/agents-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 vasilyu1983/AI-Agents-public --skill agents-memory
Clone the repo
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public

Made for: 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 agents-memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/agents-memory"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/agents-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,476 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 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.00043 $0.05476
Opus 5 $0.00022 $0.02738
Sonnet 5 $0.00009 $0.01095
Haiku 4.5 $0.00004 $0.00548

Measured 9d ago against content hash 9c58c9ee4c69, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade D, and why

agents-memory scanned grade D with 2 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/audit_portfolio.sh, scripts/audit_repo.sh, scripts/compare_blocks.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

- `<!-- audit-ignore: ./gradlew, res/values/strings.xml -->` — whitelist intentional non-existent paths (DON'T-do-this examples, future tooling). Glob patterns supported.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| Codex runtime permissions | `~/.codex/config.toml`, trusted `.codex/config.toml`, permission profiles, `.rules` | Configure sandbox boundaries, approval policy/reviewer, and executable command policy |
frameworks/shared-skills/skills/agents-memory/SKILL.md · 303 lines

How it starts

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

Project Memory for Claude Code + Codex

Configure project memory so Claude Code and Codex get stable, scoped instructions across sessions without bloating every prompt. For shared teams, keep the portable project rules in AGENTS.md, mirror that into CLAUDE.md when needed, and keep tool-specific behavior in the tool's native layer.

Treat repo memory as a living exception file. If an agent can reliably infer something by reading the code, config, or README, keep it out of the always-loaded layer. Put only the durable, non-inferable guidance here.

Quick Reference

Layer Typical Location Purpose
Shared project memory ./AGENTS.md Portable repo instructions for Codex and other AGENTS.md-aware tools
Claude project memory ./CLAUDE.md Claude Code project instructions; often a symlink or mirror of AGENTS.md
Claude scoped rules ./.claude/rules/*.md Modular Claude-only rules, optionally path-scoped
Codex personal instructions ~/.codex/AGENTS.md Personal behavioral guidance across repositories
Codex directory override ./AGENTS.override.md Higher-precedence guidance for one directory; it may be local or checked in
Codex runtime permissions ~/.codex/config.toml, trusted .codex/config.toml, permission profiles, .rules Configure sandbox boundaries, approval policy/reviewer, and executable command policy
Codex auto-memory ~/.codex/memories/ (opt-in via [features] memories = true) Machine-local accumulated recall; off by default; keep must-always rules in AGENTS.md, not here
Claude auto memory ~/.claude/projects/<project>/memory/MEMORY.md index + topic files Machine-local, accumulated notes; first 200 lines / 25 KB of MEMORY.md load each session; topic files load on demand
Instruction budget ~100–150 usable lines across all loaded CLAUDE.md tiers Community-derived heuristic (not an official Anthropic figure): compliance drops past ~150–200 discrete instructions, of which the system prompt already spends ~50; budget is a shared pool across all tiers
Layered memory model references/memory-patterns.md Keep the hot memory small; push history and reusable procedures into the right layers

Read the full file on GitHub · 303 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. 9d ago First seen · 303 lines · 43 tokens per session scan D 9c58c9ee4c69

Subscribe to this mod's changes

agents-memory is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (87 stars, last pushed 7d ago), licensed MIT. It adds 43 tokens to every session and 5,476 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 2 findings (hidden instructions, reads agent configuration directories). 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

continuum-memory

Configure and use Continuum's two-tier memory system — mem0+Qdrant/Milvus for long-term facts, Redis for short-term sessions, with multi-tenant scopes (USER / AGENT / SHARED / RUN / CONVERSATION). Invoke when the user asks about "remember", "user preferences", "long-term memory", "vector search over memories"…

shyftlabs/continuum · 107 tokens

evolve

Use this skill when extracting session patterns into reusable learnings. Three modes: analyze (extract from session history), review (edit/manage existing learnings), list (display active learnings). Manages .orchestrator/metrics/learnings.jsonl.

Kanevry/session-orchestrator · 53 tokens

memory-cleanup

Use this skill when performing manual memory consolidation (Dream-equivalent). Reviews, consolidates, and prunes memory files under /.claude/projects//memory/. Run after major refactors, every 5+ sessions, or when memory quality degrades (broken links, stale references, contradictions, MEMORY.md > 200 lines). Invoke…

Kanevry/session-orchestrator · 77 tokens

session-handoff

Context transfer between AI sessions. Trigger when the user wants to save the context, resume a task, or hand off the work to another session.

christopherlouet/claude-base · 33 tokens

memory-types-team-stores

Use when configuring shared team memory stores and knowledge graphs.

imMamdouhaboammar/get-fable · 16 tokens

memory-types

Use when managing persistent project memory, facts, and developer context.

imMamdouhaboammar/get-fable · 15 tokens