Old-Friends-Gathering

Sedimem — Development skill for Claude Code

Development community

sedimem · 本地跨会话「自我迭代」记忆层:DSH / Codex CLI / Claude Code 共用一份只追加的真相层,重点治冗余·重复·冲突·过时(MCP + 四道写入卫生 + Agent 裁决闭环).

How to install Sedimem

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Old-Friends-Gathering/sedimem and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Sedimem does

sedimem · 本地跨会话「自我迭代」记忆层:DSH / Codex CLI / Claude Code 共用一份只追加的真相层,重点治冗余·重复·冲突·过时(MCP + 四道写入卫生 + Agent 裁决闭环).

Alternatives in Development

  • Mempalace Help — Show comprehensive MemPalace help — available skills, MCP tools, CLI commands, hooks, and architecture 58.6k ★
  • Storybloq — Cross-session context for Claude Code 696 ★
  • Dexscreener Unofficial CLI + MCP + Skills — You are a token scanning specialist using the Dexscreener Unofficial CLI (not affiliated with or endorsed by D 213 ★

README

sedimem

**记忆不是攒得越多越好 —— 它该像地层一样沉积、可回溯、会收敛。**

跨会话、跨客户端的本地记忆层:DSH / Codex CLI / Claude Code 三端共读一份真相层, 把"记忆"当数据库治理,而不是当 prompt 攒。

[![ci](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/ci.yml/badge.svg)](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/ci.yml) [![quality](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/quality.yml/badge.svg)](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/quality.yml) [![security](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/security.yml/badge.svg)](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/security.yml) [![issue-link](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/issue-link.yml/badge.svg)](https://github.com/Old-Friends-Gathering/sedimem/actions/workflows/issue-link.yml) [![license: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![node](https://img.shields.io/badge/node-%E2%89%A522-3c873a) ![deps](https://img.shields.io/badge/runtime%20deps-0-brightgreen) ![tests](https://img.shields.io/badge/tests-288-brightgreen) ![eval](https://img.shields.io/badge/injection%20eval-I1%E2%80%93I24-blueviolet)

**[🌐 图文版项目站](https://old-friends-gathering.github.io/sedimem/)** · [快速开始](#快速开始) · [架构](#架构) · [三端接入](#三端接入dsh--codex--claude) · [部署](#部署常驻观察台与-nightly) · [设计决策](#设计决策为什么这么做) · [文档](#文档地图)


为什么

用久了会发现,几乎所有 agent 记忆方案最后都烂在同一个地方:**它不是"检索得不够准",而是"根本没人管"**。

半年后你的记忆库通常长这样 后果
同一条事实存了 7 份,措辞略有不同 上下文被稀释,模型反而更容易抓错重点
旧版本和新版本同时存在,没人知道哪个有效 "明明记得是这个,它偏说是那个"
只增不删,直到把配额吃满 检索变慢、token 成本线性上涨
有人往记忆里塞了一句"忽略之前所有指令" 之后每个会话都被悄悄影响

sedimem 的立场是:**记忆的难点在治理,不在检索**。所以它把力气花在四件事上—— 写入时去重、冲突时失效而不删除、过期后仍可回看、脏数据不进上下文。

写入路径:四道门

它解决什么

常见做法 sedimem 的做法
记忆越攒越多,重复/矛盾条目一起进上下文 写入门控:hash 短路 → 同 slot 判等 → 近重复判定,重复的直接 noop
换