memory-management

memory-management is a skill for Claude Code, Codex from soden46/engineer-flow. It costs 38 tokens per session (279 once invoked), scanned A, original, MIT.

A project-memory system for recalling useful past context while checking it against the current code and configuration.

In plain words
What is it for?
Use it for relevant prior project context, durable engineering checkpoints, and memory handling when earlier work could affect correctness.
Why use it?
It reduces reliance on stale or unsafe notes and avoids storing secrets or personal data.

Skill for Claude CodeCodex

Part of the engineer-flow plugin — 18 skills shipped together

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/soden46/engineer-flow/memory-management
Any agent
npx skills add soden46/engineer-flow --skill memory-management
Clone the repo
git clone --depth 1 https://github.com/soden46/engineer-flow

Made for: Claude Code, Codex.

Or install engineer-flow, the plugin that ships this one along with the rest of its 18 skills.

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-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/soden46/engineer-flow/memory-management.svg)](https://agentmods.dev/skills/soden46/engineer-flow/memory-management)
Your own site
<a href="https://agentmods.dev/skills/soden46/engineer-flow/memory-management"><img src="https://agentmods.dev/badge/skills/soden46/engineer-flow/memory-management.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 279 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.00038 $0.00279
Opus 5 $0.00019 $0.00139
Sonnet 5 $0.00008 $0.00056
Haiku 4.5 $0.00004 $0.00028

Measured 3d ago against content hash 215139dd2045, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memory-management 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 3d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/memory.mjs), 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.

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/engineer-flow/infrastructure/memory-management/SKILL.md · 39 lines

What it actually says

Memory Management

Use memory as conditional infrastructure, not specialist expertise.

Preflight

Run memory preflight only when prior project/session/workflow context could materially affect correctness. Skip self-contained tasks.

Prefer an active MCP memory tool when the host provides one. Otherwise use:

node skills/engineer-flow/infrastructure/memory-management/scripts/memory.mjs auto --cwd <project-root> --query "<task intent>" --limit 5

The command prints decision: RUN or decision: SKIP. On RUN, use only sparse relevant memory and verify it against current code/config.

Rules

  • Memory never consumes primary or support specialist slots.
  • Current code/config beats old memory.
  • Do not store secrets, .env values, raw credentials, or personal data.
  • Preserve provenance and status.
  • Checkpoint only durable reusable knowledge.

Checkpoint

After meaningful work, checkpoint only when durable knowledge changed:

node skills/engineer-flow/infrastructure/memory-management/scripts/memory.mjs checkpoint --project <alias> --summary "<durable summary>"
Files

What ships with it

1 file 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. 3d ago First seen · 39 lines · 38 tokens per session scan A 215139dd2045

Subscribe to this mod's changes

memory-management is a skill published in the GitHub repository soden46/engineer-flow (3 stars, last pushed 6d ago), licensed MIT. It adds 38 tokens to every session and 279 once invoked, about $0.0002 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

llm-wiki

Build and maintain an LLM-curated personal knowledge base — the "LLM Wiki" pattern from Andrej Karpathy's April 2026 gist. Use this skill whenever the user wants to ingest a source (paper, article, transcript, PDF, notes) into a persistent compounding knowledge base, ask a question against accumulated notes, lint or…

praneybehl/llm-wiki-plugin · 221 tokens

kb-answer

Answer questions using your project's knowledge base with evidence-backed citations. Every answer must cite literal quotes from KB files to prevent hallucinations. Use this for any question that should be answered from documented knowledge rather than general knowledge.

techwolf-ai/ai-first-toolkit · 46 tokens

kb-import

Import knowledge from existing documents into structured KB entries. Reads source documents (Markdown, PDF, DOCX, plain text), extracts key information, and creates properly formatted KB entries with YAML frontmatter.

techwolf-ai/ai-first-toolkit · 42 tokens

kb-refresh

Add new sources to your knowledge base or re-scrape existing ones to pick up changes. Supports Notion, Slack, Confluence, and local files. Can be run anytime after /setup-knowledge-base.

techwolf-ai/ai-first-toolkit · 46 tokens

setup-knowledge-base

Interactive onboarding to create a structured knowledge base. Defines categories, scaffolds the directory structure, creates the index, and optionally imports initial content. Run this first before using /kb-answer or /kb-import.

techwolf-ai/ai-first-toolkit · 47 tokens

session-search

Find context from past Claude Code (CLI) and Claude Cowork (desktop) sessions on this Mac. Use when the user wants to recall something they did before but can't find it , phrasings like "where did I work on X", "find that session where I…", "when did I last do Y", "pull up the conversation about Z", "that time I…

techwolf-ai/ai-first-toolkit · 113 tokens