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.
npx skills add ryanzhao1011/workframe --skill memory-loggit clone --depth 1 https://github.com/ryanzhao1011/workframeWrote 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.
[](https://agentmods.dev/skills/ryanzhao1011/workframe/memory-log)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 展示,去向另列)
执行步骤
- Read
.workframe/state/events.jsonl,逐行 JSON 解析;跳过__schema__描述行和 malformed 行。 - 按窗口过滤事件:
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结尾)时纳入。
- Read
.workframe/state/memory-index.json拿当前 sidecar 元数据;若文件不存在,按空索引{entries:{}}处理,并在输出中提示memory-index.json 不存在,仅展示事件快照,当前状态元数据(protected / provenance)不可用。。 - 展示时优先使用事件自带快照字段:
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 属正常形态,不报丢失。 - 按时间倒序 + 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)
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.
- 15d ago Changed ffecca83ec7b
- 20d ago Changed · +6 lines · +11 tokens per session de4c8dc63a64
- 1mo ago Changed · -4 lines · +91 tokens per session b77863fd7991
- 3mo ago First seen · 68 lines · 52 tokens per session scan A 4bb03ff00cd9
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.
memory-log compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memory-logryanzhao1011/workframe | Skill | 9 | 5d ago | MIT | A | 154 | Claude Code |
| catchupFlorianBruniaux/claude-code-plugins | Skill | 47 | 5d ago | MIT | A | 28 | Claude Code |
| setupAbdurRafay2004/handoff | Skill | 6 | 13d ago | MIT | A | 131 | Claude Code |
| decision-ledgersvy04/ballast | Skill | 86 | 3mo ago | MIT | A | 48 | Claude Code |
| knowledge-basesvy04/ballast | Skill | 86 | 3mo ago | MIT | A | 47 | Claude Code |
| pinsvy04/ballast | Skill | 86 | 3mo ago | MIT | A | 57 | Claude Code |
| brain-initsvy04/ballast | Skill | 86 | 3mo ago | MIT | A | 60 | Claude Code |