refresh-metadata

refresh-metadata is a skill for Claude Code, Codex from acn-ericlaw/agent-memory. It costs 75 tokens per session (974 once invoked), scanned A, original, Apache-2.0.

A tool that recalculates memory facts' last-used dates, use counts, and activity levels from session reference logs. These logs record which facts were used in past sessions.

In plain words
What is it for?
Use it during a memory review or when a checker reports outdated metadata. It updates the calculations but does not decide which facts to archive.
Why use it?
Memory labels can become inaccurate when facts are used or forgotten over time. Recomputing them from the logs avoids relying on hand-updated numbers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it during a memory review or when a checker reports outdated metadata. It updates the calculations but does not decide which facts to archive.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/acn-ericlaw/agent-memory/refresh-metadata
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 acn-ericlaw/agent-memory --skill refresh-metadata
Clone the repo
git clone --depth 1 https://github.com/acn-ericlaw/agent-memory

Made for: Claude Code, 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 refresh-metadata

README.md
[![agentmods](https://agentmods.dev/badge/skills/acn-ericlaw/agent-memory/refresh-metadata/github.svg)](https://agentmods.dev/skills/acn-ericlaw/agent-memory/refresh-metadata)
Your own site
<a href="https://agentmods.dev/skills/acn-ericlaw/agent-memory/refresh-metadata"><img src="https://agentmods.dev/badge/skills/acn-ericlaw/agent-memory/refresh-metadata/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 refresh-metadata

Your own site · 80×15
<a href="https://agentmods.dev/skills/acn-ericlaw/agent-memory/refresh-metadata"><img src="https://agentmods.dev/badge/skills/acn-ericlaw/agent-memory/refresh-metadata.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 974 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.00075 $0.00974
Opus 5.5 $0.00030 $0.00390
Sonnet 5.5 $0.00015 $0.00195
Haiku 4.5 $0.00007 $0.00097

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

Security

Grade A, and why

refresh-metadata 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 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/refresh-metadata.mjs, scripts/refresh-metadata.py, scripts/test_refresh_metadata.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.

agent-skills/refresh-metadata/SKILL.md · 60 lines

How it starts

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

⚠️ Tool-managed skill provided by agent-memory (provenance: agent-memory-builtin). Don't edit it in place — fork under a new name, or upstream a fix to the agent-memory project (see SKILLS.md).

This skill performs REVIEW.md steps 2–3 (apply events + re-tier) as a runnable script. For every fact in continuity.md and every memory/open-threads/thread-<id>.md (v4.39.0) it recomputes last_used, uses, and tier from the ## Memory References across memory/sessions/, and writes the footers back. This is the "full rebuild" path REVIEW.md already calls "deterministic and reproducible by any agent" — pure arithmetic, no judgment — so it's safe to mechanize. Agents routinely skip this pass (they archive faded facts but don't re-tier the ones that stay), leaving stale footers; a cross-vendor review proved it. This closes that gap.

What it does NOT do

  • It does not decide what to archive — that's archive-fact plus the agent's judgment (never-pick-a-winner). It clamps tier at archive-candidate; a fact still in continuity is never marked archived (that tier means moved).
  • It does not touch core or superseded facts (human-set / terminal), or facts with no reference in any session log (legacy — can't recompute, so preserved), and it never adds missing fields.
  • For a pinned - [ ] open thread it refreshes the factual fields (uses / last_used) but leaves the tier label as-is (v4.26.1) — pinned-ness protects an open thread, not its tier, so the tool doesn't opine on it (a working-tagged open thread is fine).

So the division of labor across the three memory tools mirrors the meaning/mechanics split: memory-lint verifies (read-only) · refresh-metadata re-tiers (arithmetic) · archive-fact moves (the decided archival). Only which facts to archive needs the agent.

How to run

From the repo root, whichever runtime the machine has (output is byte-identical):

Read the full file on GitHub · 60 lines

Files

What ships with it

4 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. 2mo ago Changed · +3 lines ed56314bc52d
  2. 3mo ago First seen · 57 lines · 75 tokens per session scan A f42a07e7bbda

Subscribe to this mod's changes

refresh-metadata is a skill published in the GitHub repository acn-ericlaw/agent-memory (5 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 75 tokens to every session and 974 once invoked, about $0.0003 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

refresh-metadata compared with skills from other repositories

refresh-metadata next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refresh-metadataacn-ericlaw/agent-memorySkill52mo agoApache-2.0A75Claude Code, Codex
memory-systembojieli/ai-agent-bookSkill60kyesterdayApache-2.0A95Claude Code, Codex
memory-recallzilliztech/memsearchSkill3.0k3d agoMITA152Claude Code
memanto-companionmoorcheh-ai/memantoSkill2.4k2d agoApache-2.0A72Claude Code
openloreaakarim/OpenLoreSkill2.0k8d agoApache-2.0A42Claude Code, Codex
Context Doctorletta-ai/letta-codeSkill3.9ktodayApache-2.0A66Claude Code, Codex
mnemonmnemon-dev/mnemonSkill7527d agoApache-2.0A25Claude Code, Codex