memory

memory is a skill for Claude Code, Codex from SparkElf/deepseek-harness-plus. It costs 72 tokens per session (1,014 once invoked), scanned A, original, MIT.

A personal memory management system for deciding what an assistant should remember, revise, combine, or forget across conversations. It separates memory extraction, review, and final storage, and requires evidence for saved items.

In plain words
What is it for?
Use it to extract lasting facts from conversation history, correct or delete outdated memories, review standard operating procedures, and keep an auditable daily memory record.
Why use it?
It prevents useful preferences and working rules from being lost while reducing clutter, unsupported memories, and accidental storage of secrets or sensitive information.

Skill for Claude CodeCodex

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

Good fit Use it to extract lasting facts from conversation history, correct or delete outdated memories, review standard operating procedures, and keep an auditable daily memory record.

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

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 memory

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sparkelf/deepseek-harness-plus/memory"><img src="https://agentmods.dev/badge/skills/sparkelf/deepseek-harness-plus/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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.00072 $0.01014
Opus 5.5 $0.00029 $0.00406
Sonnet 5.5 $0.00014 $0.00203
Haiku 4.5 $0.00007 $0.00101

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

Security

Grade A, and why

memory 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 4d 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.

downstream/packages/plugins/knowledge-base/skills/memory/SKILL.md · 50 lines

What it actually says

Memory

个人记忆只有一套写入链路:普通会话留下消息和工具轨迹,记忆守护会话是唯一写入者;抽取与 SOP 评估子代理只产出带证据的判断,不直接写记忆。三条角色准则放在 references/,按当前角色只读一份,不要一次全读。

什么时候用

  • 当前会话是记忆守护会话,收到 idle / compaction / dream 消息;
  • 被派为记忆抽取子代理,要从会话轨迹里提长期候选;
  • 被派为 SOP 评估子代理,要判断活跃 SOP 是否被使用、是否有效、下一步怎么办;
  • 用户问记忆规则、隐私分级、SOP 晋升标准,或要求整理/遗忘某条记忆。

先选角色

你的角色 读哪份参考 产出
记忆守护会话(唯一写入者) references/guardian.md 合并、纠偏、遗忘、日文档、SOP 晋升与审计
记忆抽取子代理 references/extract.md 五类候选 + 证据,不改写记忆
SOP 评估子代理 references/sop-evaluate.md 每份 SOP 的用量/效果判断与修订/晋升/保留/淘汰建议

守护会话派子代理时,明确告诉它读哪份参考;子代理不要把详细报告当成交付,只回一段结论,详细证据留在临时报告里由守护会话读取后删除。

通用硬规则

  • 只留会改变下次行为的内容:偏好、踩坑、情景、事实、SOP 五类;闲聊、一次性查询、公共制度不进入个人记忆。
  • 每条都要有证据:能定位到原消息或工具结果;没有证据的候选不提。
  • 不保存秘密:密钥、Token、密码只记“哪份凭据、什么用途、用于哪个系统”,实际值归凭据管理器。
  • 隐私分级:normal / private / sensitive / secret;拿不准按 private 处理。private 与 sensitive 不进部门提炼、不进共享摘要、不导出。
  • 部门 canonical 与红线优先:个人记忆与部门制度冲突时标记冲突,不要悄悄覆盖。
  • 串行处理:守护会话按消息到达顺序一轮一轮处理;上一轮没收尾,不开始下一轮。一个用户只有一个守护会话。
  • 不做机械计数:SOP 评估靠轨迹与原文证据做整体判断,不数使用次数、不设评分阈值。
  • 删除是真遗忘:用户要求删除、偏好过期或长期低价值时,真正删除并写清原因;删除不是隐藏。

标准一轮(守护会话)

  1. 确定今天真正活跃的会话范围(上次 dream 之后有新增消息或工具事件);
  2. 并行派抽取子代理和 SOP 评估子代理,各自按对应参考工作;
  3. 合并五类记忆,去重、纠偏、遗忘,更新日文档与当前有效快照;
  4. 评估并晋升 SOP:有效且可复用才沉淀为技能,技能写成功后再删除 SOP;
  5. 写审计,并用个人 scope 的 Git 提交作为 dream 前后恢复点。

细节(读什么、怎么合并、怎么写标题、隐私边界、Git 恢复点命令)见 references/guardian.md。

相关技能

  • knowledge-base:记忆文档、主题卡与知识图谱的读写入口;图谱流程见该技能的 references/graph.md。
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. 4d ago First seen · 50 lines · 72 tokens per session scan A 337d134e6a32

Subscribe to this mod's changes

memory is a skill published in the GitHub repository SparkElf/deepseek-harness-plus (1 stars, last pushed today), licensed MIT. It adds 72 tokens to every session and 1,014 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-11-26.

Related

memory compared with skills from other repositories

memory next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
memorySparkElf/deepseek-harness-plusSkill1todayMITA72Claude Code, Codex
code-review-contextopeninterpreter/openinterpreterSkill69kyesterdayApache-2.0A7Codex
dsh-tui-guideccch1mneyyy/dsh-TUISkill8.4ktodayMITA41Claude Code, Codex
compact7df-lab/devoSkill3474d agoMITA38Claude Code, Codex
review-changesamplifthq/oh-my-dshSkill201mo agoMITA22Claude Code, Codex
systematic-debuggingamplifthq/oh-my-dshSkill201mo agoMITA15Claude Code, Codex
verify-before-doneamplifthq/oh-my-dshSkill201mo agoMITA22Claude Code, Codex