memory-log

memory-log is a skill for Claude Code from ryanzhao1011/workframe. It costs 154 tokens per session (1,733 once invoked), scanned A, original, MIT.

A read-only timeline of changes to an agent's stored memories, including additions, corrections, downgrades, migrations, and rollbacks. It rebuilds the timeline from event records and current memory metadata.

In plain words
What is it for?
Use it to review recent memory activity, filter events by time, shared scope, or role, and inspect the current status of remembered information.
Why use it?
It lets you see what changed in memory and when without modifying the memory files. This helps distinguish historical events from the current status of an entry.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the core plugin — 36 skills, 4 agents, 12 hooks shipped together

Good fit Use it to review recent memory activity, filter events by time, shared scope, or role, and inspect the current status of remembered information.

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

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 4 agents, 12 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/memory-log"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/memory-log.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 154 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,733 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.00154 $0.01733
Opus 5.5 $0.00062 $0.00693
Sonnet 5.5 $0.00031 $0.00347
Haiku 4.5 $0.00015 $0.00173

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

Security

Grade A, and why

memory-log 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 15d 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.

plugins/core/skills/memory-log/SKILL.md · 70 lines

How it starts

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

/core:memory-log 记忆活动流水

用途

用户显式 /core:memory-log 时执行。Claude 不会自动调用。

回答:最近记忆层发生了什么?谁加了什么?谁降级了什么?哪些纠正进入了高置信记忆或模块文档?哪些条目移出了角色记忆?shared 有没有新共识?

输入

  • 无参数 → 默认近 14 天
  • 7d / 30d → 窗口
  • shared → 仅 shared/ 范围
  • <role> → 仅某个角色
  • module → 仅模块纠正 / 提醒;module <basic[/sub]> 进一步限定模块路径(memory_moved_out 按源 scope 展示,去向另列)

执行步骤

  1. Read .workframe/state/events.jsonl,逐行 JSON 解析;跳过 __schema__ 描述行和 malformed 行。
  2. 按窗口过滤事件:
    • type ∈ {memory_promoted, memory_decayed, user_correction, memory_migrated, memory_moved_out, selfiter_op_applied, selfiter_op_rolled_back};后台操作按 target_path 区分角色记忆与模块提醒,保留 job_id / op_id,通过对应 journal 查看前后内容。
    • rollback_applied 仅在 target 或 source 指向角色记忆目录(路径含 agent-memory/ 段)或记忆 sidecar(路径以 memory-index.json 结尾)时纳入。
  3. Read .workframe/state/memory-index.json 拿当前 sidecar 元数据;若文件不存在,按空索引 {entries:{}} 处理,并在输出中提示 memory-index.json 不存在,仅展示事件快照,当前状态元数据(protected / provenance)不可用。。
  4. 展示时优先使用事件自带快照字段:summary / entry_key / source / source_path / age_days / provenance / module / target_path / from_ref / from_entry_key / archive_path(events 是只追加历史层,早期事件可能带旧的数字型 confidence 快照字段——按原样展示,不换算、不回写)。sidecar 只用于补充当前仍存在 MEMORY 条目的 protected / provenance 等当前状态,不作为历史事实唯一来源;scope=module 没有 sidecar 与 entry_key 属正常形态,不报丢失。
  5. 按时间倒序 + scope 分组输出。scope 优先取事件字段,scope=module 再按 module 分组并展示完整 target_path;memory rollback 可从路径里的 agent-memory/<scope>/ 段推断,无法推断时归入 unknown/。

输出格式

## 📔 记忆层活动(近 <N> 天)

### shared/
- 2026-04-20 [promoted] "发版前必须跑脱敏终检" (entry=shared:2026-04-20:发版前必须跑脱敏终检, source=notes.md, protected=true)

### pm/
- 2026-04-22 [decayed] "旧的 baseline 路径" (entry=pm:2026-02-16:旧的baseline路径, age_days=65, provenance=external)
- 2026-04-18 [promoted] "自迭代走 proposal 闭环" (entry=pm:2026-04-18:自迭代走proposal闭环)

### dev/
- 2026-04-22 [moved-out] "模块输出结构的操作提醒" (entry=dev:2026-04-19:模块输出结构的操作提醒, archive_path=.workframe/agent-memory/dev/notes-archive.md, target_path=projects/modules/catalog/export/module-memory.md)
- 2026-04-21 [migrated] "构建脚本必须在仓库根执行" (entry=dev:2026-04-21:构建脚本必须在仓库根执行, source=auto-memory, from_ref=build-script-root-only.md)
- 2026-04-19 [correction] "不要 mock 数据库" (entry=dev:2026-04-19:不要mock数据库, protected=true)
- 2026-04-17 [rolled-back] dev/MEMORY.md → 回滚至 logs/librarian-snapshots/2026-04-15/10-30-dev-MEMORY.md

### module/catalog/export
- 2026-04-22 [correction] "导出字段按当前需求文档执行" (target_path=projects/modules/catalog/export/requirements/fields/main/prd.md;无 entry_key / sidecar)

Read the full file on GitHub · 70 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. 15d ago Changed ffecca83ec7b
  2. 20d ago Changed · +6 lines · +11 tokens per session de4c8dc63a64
  3. 1mo ago Changed · -4 lines · +91 tokens per session b77863fd7991
  4. 3mo ago First seen · 68 lines · 52 tokens per session scan A 4bb03ff00cd9

Subscribe to this mod's changes

memory-log is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 154 tokens to every session and 1,733 once invoked, about $0.0006 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

memory-log compared with skills from other repositories

memory-log next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memory-logryanzhao1011/workframeSkill95d agoMITA154Claude Code
catchupFlorianBruniaux/claude-code-pluginsSkill475d agoMITA28Claude Code
setupAbdurRafay2004/handoffSkill613d agoMITA131Claude Code
decision-ledgersvy04/ballastSkill863mo agoMITA48Claude Code
knowledge-basesvy04/ballastSkill863mo agoMITA47Claude Code
pinsvy04/ballastSkill863mo agoMITA57Claude Code
brain-initsvy04/ballastSkill863mo agoMITA60Claude Code