agents-memory-updater

agents-memory-updater is an agent for Claude Code, Cursor from heyAyushh/stacc. It costs 28 tokens per session (405 once invoked), scanned A, original, MIT.

A tool that reads new coding-agent transcripts and records lasting user preferences and workspace facts in AGENTS.md, a file that gives agents shared instructions and memory.

In plain words
What is it for?
Use it to review recent transcripts, update or create AGENTS.md, remove duplicate memories, and maintain the index of processed transcript files.
Why use it?
It removes the need to manually carry useful corrections and facts from one session to the next. It also avoids repeatedly scanning old transcripts by tracking what has already been processed.

Agent for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions AGENTS.md.

Good fit Use it to review recent transcripts, update or create AGENTS.md, remove duplicate memories, and maintain the index of processed transcript files.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/heyayushh/stacc/agents-memory-updater
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/heyAyushh/stacc

Made for: Claude Code, Cursor.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/heyayushh/stacc/agents-memory-updater"><img src="https://agentmods.dev/badge/agents/heyayushh/stacc/agents-memory-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 405 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.00028 $0.00405
Opus 5.5 $0.00011 $0.00162
Sonnet 5.5 $0.00006 $0.00081
Haiku 4.5 $0.00003 $0.00040

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

Security

Grade A, and why

agents-memory-updater 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 3mo 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.

.cursor/agents/agents-memory-updater.md · 48 lines

What it actually says

AGENTS.md memory updater

Own the full memory update flow for continual learning.

Trigger

Use from continual-learning when transcript deltas may produce durable memory updates.

Workflow

  1. Read existing AGENTS.md first. If it does not exist, create it with only:
    • ## Learned User Preferences
    • ## Learned Workspace Facts
  2. Load the incremental index if present.
  3. Inspect only transcript files under ~/.cursor/projects/<workspace-slug>/agent-transcripts/ that are new or have newer mtimes than the index.
  4. Pull out only durable, reusable items:
    • recurring user preferences or corrections
    • stable workspace facts
  5. Update AGENTS.md carefully:
    • update matching bullets in place
    • add only net-new bullets
    • deduplicate semantically similar bullets
    • keep each learned section to at most 12 bullets
  6. Refresh the incremental index for processed transcripts and remove entries for files that no longer exist.
  7. If the merge produces no AGENTS.md changes, leave AGENTS.md unchanged but still refresh the index.
  8. If no meaningful updates exist, respond exactly: No high-signal memory updates.

Guardrails

  • Use plain bullet points only.
  • Keep only these sections:
    • ## Learned User Preferences
    • ## Learned Workspace Facts
  • Do not write evidence/confidence tags.
  • Do not write process instructions, rationale, or metadata blocks.
  • Exclude secrets, private data, one-off instructions, and transient details.

Output

  • Updated AGENTS.md and .cursor/hooks/state/continual-learning-index.json when needed
  • Otherwise exactly No high-signal memory updates.
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. 3mo ago First seen · 48 lines · 28 tokens per session scan A 93dfb244f173

Subscribe to this mod's changes

agents-memory-updater is an agent published in the GitHub repository heyAyushh/stacc (3 stars, last pushed 2mo ago), licensed MIT. It adds 28 tokens to every session and 405 once invoked, about $0.0001 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-31.

Related

agents-memory-updater compared with agents from other repositories

agents-memory-updater next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents-memory-updaterheyAyushh/staccAgent32mo agoMITA28Claude Code, Cursor
context-finderfuturegerald/futuregerald-claude-pluginAgent8yesterdaynoneA107Claude Code
wiki-ingestkarlorz/llm-wikiAgent52d agononeA64Claude Code
memory-curatorwbind-core/termpipe-mcpAgent023d agononeA45Claude Code
data scientistkhalilbenaz/MDANAgent01mo agoMITA8Claude Code
playwright-test-generatormicrosoft/playwrightAgent102kyesterdayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42kyesterdayMITA61Claude Code