update-memory

update-memory is a command for Claude Code from manishiitg/coding-agent-loop. It costs 0 tokens per session (391 once invoked), scanned A, original, MIT.

A conversation-review command that saves useful project knowledge and working skills for later use.

In plain words
What is it for?
It is for reviewing a chat and recording the parts that should become lasting project memory or reusable skills.
Why use it?
It prevents important decisions and lessons from being lost when a conversation ends.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit It is for reviewing a chat and recording the parts that should become lasting project memory or reusable skills.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/manishiitg/coding-agent-loop/update-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.

Clone the repo
git clone --depth 1 https://github.com/manishiitg/coding-agent-loop

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/manishiitg/coding-agent-loop/update-memory/github.svg)](https://agentmods.dev/commands/manishiitg/coding-agent-loop/update-memory)
Your own site
<a href="https://agentmods.dev/commands/manishiitg/coding-agent-loop/update-memory"><img src="https://agentmods.dev/badge/commands/manishiitg/coding-agent-loop/update-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 update-memory

Your own site · 80×15
<a href="https://agentmods.dev/commands/manishiitg/coding-agent-loop/update-memory"><img src="https://agentmods.dev/badge/commands/manishiitg/coding-agent-loop/update-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 391 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.00000 $0.00391
Opus 5.5 $0.00000 $0.00156
Sonnet 5.5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

Measured 25d ago against content hash 3ade97d7f430, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

update-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 25d 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.

agent_go/internal/workproduct/commands/update-memory.md · 24 lines

What it actually says

Review this conversation and persist what is worth keeping as durable project knowledge — both memory and skills.

{{context}}

Memory

  • Read the project-root MEMORY.md first (create it if it does not exist).
  • Extract stable, verified project truths from this conversation: facts, preferences, decisions, constraints, and corrections. Test each candidate with "Crew should remember that…".
  • Follow the project memory contract: concise reverse-chronological entries, one topic per dated heading, merge into an existing topic instead of appending a duplicate, and replace or remove entries that newer evidence contradicts.
  • Do not save guesses, transient status, raw chat, credentials, or unverified research.

Skills

Invoking this command is my explicit ask to preserve reusable procedures, so the normal "skills change only on explicit ask" bar is met for what follows:

  • Call list_skills first and inspect the names and descriptions of every existing project skill before choosing a destination.
  • For each genuinely reusable procedure in this conversation — test it with "When asked to do X, Crew should…" — create or update a focused project-local skill at skills/<skill-name>/SKILL.md with concise name and description frontmatter. Never write it into the account-wide skills/custom/ library.
  • Update an existing skill only when the new knowledge has the same topic and would be loaded for the same kind of future request; create a separate, clearly named skill when the topic, trigger, or outcome differs. If an existing skill has become a catch-all, split the relevant material into focused skills. Link memory and skill entries rather than duplicating instructions.
  • Select each created or updated skill for this project with update_project_skill_selection so the runtime can load it.

Report

Tell me briefly what you added or changed in MEMORY.md and in skills — and what you deliberately left out, so I can correct you.

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. 25d ago First seen · 24 lines · 0 tokens per session scan A 3ade97d7f430

Subscribe to this mod's changes

update-memory is a command published in the GitHub repository manishiitg/coding-agent-loop (13 stars, last pushed 19d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 391 tokens. 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-09-22.