memory-log

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 CodeCodex

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/ryanzhao1011/workframe/memory-log
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, Codex.

Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,329 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.00052 $0.01329
Opus 5 $0.00026 $0.00665
Sonnet 5 $0.00010 $0.00266
Haiku 4.5 $0.00005 $0.00133

Measured 2d ago against content hash 4bb03ff00cd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 68 lines

How it starts

The opening of the file, as written. The whole thing — 68 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> → 仅某个角色

执行步骤

  1. Read .claude/workframe-state/events.jsonl,逐行 JSON 解析;跳过 __schema__ 描述行和 malformed 行。
  2. 按窗口过滤事件:
    • type ∈ {memory_promoted, memory_decayed, user_correction, memory_migrated}
    • rollback_applied 仅在 targetsource 指向 .claude/agent-memory/.claude/workframe-state/memory-index.json 时纳入。
  3. Read .claude/workframe-state/memory-index.json 拿当前 sidecar 元数据;若文件不存在,按空索引 {entries:{}} 处理,并在输出中提示 memory-index.json 不存在,仅展示事件快照,当前状态元数据(protected / provenance)不可用。
  4. 展示时优先使用事件自带快照字段:summary / entry_key / source / age_days / provenance(events 是只追加历史层,早期事件可能带旧的数字型 confidence 快照字段——按原样展示,不换算、不回写)。sidecar 只用于补充当前仍存在条目的 protected / provenance 等当前状态,不作为历史事实唯一来源。
  5. 按时间倒序 + scope 分组输出。scope 优先取事件字段;memory rollback 可从路径 .claude/agent-memory/<scope>/... 推断,无法推断时归入 unknown/

输出格式

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

### shared/
- 2026-04-20 [promoted] "研发任务签发仅由 qa 执行" (entry=shared:2026-04-20:研发任务签发仅由qa执行, 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-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

示例的三条纪律,照抄即合规:组内按日期倒序(与步骤 5 一致);所有条目落在同一窗口内(上例跨 04-17~04-22,任何 ≥7d 的窗口都自洽——decayed 那条的 entry 日期是条目创建日,可以早于窗口,age_days 由它与事件日之差算得);示例值一律虚构通用,不写任何真实项目的条目内容或文件名。

[migrated][promoted] 展示上要能区分:前者是跨 scope 搬迁source 指向另一个记忆域),后者是同域内 notes 提升sourcenotes.md)。搬迁事件带 from_ref,展示时一并给出,否则读者无法回答「它原来在哪」。 [rolled-back] 没有 entry——回滚的对象是整个文件而非单条,故格式为 <文件> → 回滚至 <快照路径>

Read the full file on GitHub · 68 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. 2d 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 (4 stars, last pushed 15d ago), licensed MIT. It adds 52 tokens to every session and 1,329 once invoked, about $0.0003 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

check-understanding

Phase quiz for AI Engineering from Scratch. Trigger with "quiz me", "test phase", "check my understanding", "do I know phase 3", or /check-understanding .

fancyboi999/ai-engineering-from-scratch-zh · 44 tokens

find-your-level

Interactive quiz that maps your AI/ML knowledge to a starting point in the 260-lesson, 20-phase AI Engineering from Scratch curriculum. Trigger phrases: "where should I start", "find my level", "what do I know", "which phase", "assess my knowledge", "placement test", "skip ahead".

fancyboi999/ai-engineering-from-scratch-zh · 71 tokens

audit-agents-skills

Audit Claude Code agents, skills, and commands for quality and production readiness. Use when evaluating skill quality, checking production readiness scores, or comparing agents against best-practice templates.

FlorianBruniaux/claude-code-plugins · 41 tokens

eval-agents

Audit Claude Code agents defined in .claude/agents/ for description specificity, model tier appropriateness, tools scoping, and system prompt quality. Detects dispatch ambiguity between agents, flags over-permissive tool grants, and checks for human-in-the-loop patterns that break programmatic orchestration. Use when…

FlorianBruniaux/claude-code-plugins · 93 tokens

eval-hooks

Audit Claude Code hooks defined in settings.json files for validity, performance safety, and correctness. Resolves each command against the filesystem, checks exit-code strategy for blocking hooks, flags missing timeouts, and reviews interactive vs async patterns. Use when setting up hooks for the first time…

FlorianBruniaux/claude-code-plugins · 78 tokens

check-cache-bugs

Audit Claude Code setup for cache bugs (CC#40524): sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5.

FlorianBruniaux/claude-code-plugins · 38 tokens