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 SparkElf/deepseek-harness-plus --skill memorygit clone --depth 1 https://github.com/SparkElf/deepseek-harness-plusWrote 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/sparkelf/deepseek-harness-plus/memory)<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.
<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>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.00072 | $0.01014 |
| Opus 5.5 | $0.00029 | $0.00406 |
| Sonnet 5.5 | $0.00014 | $0.00203 |
| Haiku 4.5 | $0.00007 | $0.00101 |
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.
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 评估靠轨迹与原文证据做整体判断,不数使用次数、不设评分阈值。
- 删除是真遗忘:用户要求删除、偏好过期或长期低价值时,真正删除并写清原因;删除不是隐藏。
标准一轮(守护会话)
- 确定今天真正活跃的会话范围(上次 dream 之后有新增消息或工具事件);
- 并行派抽取子代理和 SOP 评估子代理,各自按对应参考工作;
- 合并五类记忆,去重、纠偏、遗忘,更新日文档与当前有效快照;
- 评估并晋升 SOP:有效且可复用才沉淀为技能,技能写成功后再删除 SOP;
- 写审计,并用个人 scope 的 Git 提交作为 dream 前后恢复点。
细节(读什么、怎么合并、怎么写标题、隐私边界、Git 恢复点命令)见 references/guardian.md。
相关技能
knowledge-base:记忆文档、主题卡与知识图谱的读写入口;图谱流程见该技能的references/graph.md。
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.
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.
- 4d ago First seen · 50 lines · 72 tokens per session scan A 337d134e6a32
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.
memory compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| memorySparkElf/deepseek-harness-plus | Skill | 1 | today | MIT | A | 72 | Claude Code, Codex |
| code-review-contextopeninterpreter/openinterpreter | Skill | 69k | yesterday | Apache-2.0 | A | 7 | Codex |
| dsh-tui-guideccch1mneyyy/dsh-TUI | Skill | 8.4k | today | MIT | A | 41 | Claude Code, Codex |
| compact7df-lab/devo | Skill | 347 | 4d ago | MIT | A | 38 | Claude Code, Codex |
| review-changesamplifthq/oh-my-dsh | Skill | 20 | 1mo ago | MIT | A | 22 | Claude Code, Codex |
| systematic-debuggingamplifthq/oh-my-dsh | Skill | 20 | 1mo ago | MIT | A | 15 | Claude Code, Codex |
| verify-before-doneamplifthq/oh-my-dsh | Skill | 20 | 1mo ago | MIT | A | 22 | Claude Code, Codex |