鱼皮AI导航
鱼皮AI导航
  • 主页
  • 社区
  • AI工具
  • AI知识库
  • AI提示词
  • MCP
  • Skills
  • AI学习资源
  • AI资讯
  • GitHub开源
登录/注册

dsh-memory-setup

解决 AI 金鱼脑:本地可审计的个人记忆层——偏好、项目约定、工作流与纠错教训,以带变更日志与完整性校验的 JSON 持久化在工作区,支持一次性设置、项目约定自动提取、证据化教训与快照恢复。

记忆
访问 GitHub
文档README

dsh-memory-setup

Solve the AI goldfish brain 🐠 — a local, auditable personal memory layer for DeepSeek Harness. Remembers your preferences, project conventions, workflows, and error lessons, and injects them back into every session.

解决 AI 的"金鱼脑":本地、可审计的个人记忆层——偏好、项目约定、工作方式、纠错教训,会话间自动继承。

Install

▼
bash
复制代码
dsh plugin --profile <profile> add dsh-memory-setup

Tools

ToolWhat it does
memory_setupOne-time onboarding: language, code style, tools, conventions, workflows
memory_statusRead current memory + changelog (also auto-injected guidance at boot)
memory_updateUpdate one memory path (e.g. preferences.codeStyle) with a changelog entry
memory_projectAuto-extract project conventions from workspace files (README / package.json / configs), preview or apply
memory_lessonRecord an error lesson (error → fix → evidence) so the same mistake is not repeated
memory_reviewv0.2 — formalize an incident into a lesson with root cause; similar lessons are auto-merged (dedupe + hit counter)
memory_exportv0.2 — export the full memory + changelog to a Markdown file for review/backup
knowledge_addv0.3 — add a knowledge entry (title/content/tags/source); similar titles auto-merge
knowledge_searchv0.3 — keyword retrieval (title ×3 / tags ×2 / content ×1 scoring)
knowledge_list / knowledge_removev0.3 — browse / delete knowledge entries
memory_diffv0.4 — diff current memory against memory.json.bak, optionally written to memory-diff.md
memory_review_sessionv0.5 — bulk incident review: submit many failures at once, dedupe per item
memory_snapshot / memory_list_snapshots / memory_restorev0.6 — snapshot the memory (keeps N), list, and restore with auto-backup of the current state
memory_troubleshootv0.6 — given an error, search past lessons + knowledge base for a known fix
memory_statsv0.7 — aggregate stats across memory, knowledge base and snapshots
memory_promotev0.7 — promote recurring lessons (hits ≥ threshold) into standing conventions; auto-runs on save
memory_import / memory_mergev0.8 — import memory from JSON (auto-migrate) / merge two memories (newer or both)
kb_export / kb_importv0.8 — knowledge base JSON round-trip
memory_focusv0.9 — relevance-based injection: only memory matching a topic is injected
memory_tierv1.0 — hot/warm/cold tiers (hot is injected, cold is archived)
memory_auditv1.0 — sha256 integrity check + changelog audit report
memory_import_claudev1.1 — import conventions from CLAUDE.md
memory_export_all / memory_import_allv1.2 — full backup bundle (memory + KB + snapshots)
memory_annotatev1.2 — owner/purpose annotations on entries
knowledge_embedv0.5 — backfill embeddings for KB entries (needs embeddingEndpoint); enables semantic search

Storage & auditability

  • Location: <workspace>/.dsh-memory-setup/memory.json — plain JSON, easy to read/back up
  • Every mutation appends to changelog (when / what / why) — memory is auditable by design
  • Lessons carry an optional evidence field (file/command/observation) — no evidence, no lesson
  • Local-first: nothing leaves your machine

Config (optional)

FieldDefaultDescription
memoryDir.dsh-memory-setupmemory dir relative to the session workspace
injectOnBoottrueinject live memory into the system prompt (dynamic context, refreshed on save)
maxMemoryChars6000cap for rendered memory text
lessonTtlDays90lessons expire after this many days (0 disables)
changelogCap100max changelog entries kept
backupOnSavetruewrite memory.json.bak before every save
reviewRemindertrueappend self-review reminder to guidance
embeddingEndpoint(empty)OpenAI-compatible embeddings endpoint (enables semantic KB search)
embeddingKey(empty)Bearer key for the embeddings endpoint
embeddingModeltext-embedding-3-smallembeddings model name
snapshotKeep10max memory snapshots kept
troubleshootRemindertrueappend troubleshoot/snapshot reminder to guidance

Roadmap

  • v0.2 ✅: incident review with dedupe (memory_review), lesson/convention expiry + changelog cap (auto-pruned on save), memory.json.bak backup on every save, Markdown export (memory_export)
  • v0.3 ✅: personal knowledge base (knowledge_*, keyword retrieval, title-merge dedupe); dynamic memory injection via a live systemPrompt.context() section — refreshed at boot (from the workspace path) and after every memory save (throttled 30s), with static guidance as fallback
  • v0.4 ✅: BM25 retrieval for the knowledge base (title ×3 / tags ×2 / content ×1, IDF-scaled — no embeddings, no deps), memory diff export (memory_diff vs backup), self-review reminder in the injected guidance
  • v0.5 ✅: optional embeddings provider (OpenAI-compatible endpoint; knowledge_embed backfill + cosine retrieval, BM25 fallback), bulk incident review (memory_review_session), own-tool fs failure tracking surfaced into the injected context
  • v0.6 ✅: memory snapshots & restore (memory_snapshot / memory_list_snapshots / memory_restore, capped, index-file based), fault troubleshooting (memory_troubleshoot — lessons + knowledge lookup), troubleshoot reminder in guidance
  • v0.7 ✅: KB included in snapshots (snapshot/restore both memory + knowledge), lesson auto-promotion (recurring lessons with hits ≥ threshold become standing conventions, auto-run on save — the memory literally learns from repeated mistakes), memory stats (memory_stats)
  • v0.8 ✅: schema v2 migration (auto on load), memory import/merge (memory_import/memory_merge, newer/both conflicts), knowledge base JSON round-trip (kb_export/kb_import)
  • v0.9 ✅: lesson health evaluation (failing/resolved/active — auto on save, ⚠️ markers in render), relevance-focused injection (memory_focus)
  • v1.0 ✅: tiers (hot/warm/cold), integrity audit (memory_audit, sha256), privacy redaction in exports (sensitiveKeys)
  • v1.1 ✅: optimistic locking (revision-based CAS — multi-session/multi-agent safe), CLAUDE.md import (memory_import_claude)
  • v1.2 ✅: full backup bundle (memory_export_all/memory_import_all — memory + KB + snapshots), annotations (memory_annotate, owner/purpose) — team-ready
  • v1.3+: lesson auto-detection (pending a tool-call event API), web stats view

Security

Memory plugins are the highest-trust plugin type — see SECURITY.md for the audit posture.

记忆

快捷安装

复制到终端去安装插件

dshplugin--profilewebaddgithub:863683348/dsh-memory-setup

温馨提示

装插件等于在本机跑第三方代码,权限与你相同,能读文件、用凭据、访问网络,工具审批管不到。请只装可信来源,并尽量锁定 commit。

站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
站长:程序员鱼皮 老鱼简历 商务合作 增值电信业务经营许可证
2026 鱼皮AI导航 | 沪ICP备19026706号-6
🔥热门工具
朱雀AI检测朱雀AI检测
朱雀AI检测助手朱雀AI检测助手
LovartLovart
老鱼简历老鱼简历
WritePass官网WritePass官网
面多多面多多
CursorCursor
星月写作星月写作
零感AI零感AI
墨得问题墨得问题
dsh 插件推荐
dsh-memory-eternal
给 DeepSeek Harness 装上自研「第二大脑」:对话结束自动把值得复用的内容沉淀成本地 Markdown 知识卡(自研去重、CJK 检索、可 git 管理),设置页提供图形化知识库 + 交互式知识图谱(图例过滤、时间维、框选、合并、导入导出)。
dsh-decision-log
DeepSeek Harness 决策日志:通过 decision_log / decision_list / decision_audit 工具把关键决策(选了什么 + 为什么)沉淀为可版本化的 DECISIONS.md,并在后续会话自动注入摘要,让决策可追溯、不重复、不推翻。
dsh-flomo-report
生成 AI 叙事的 DSH 会话报告(日报/周报/月报、任意区间)并同步到 flomo:单一可配置标签(默认
dsh-memory-plugin
为 DeepSeek Harness 提供人工记忆、自动对话保留以及图谱和向量排序召回的持久记忆插件。
dsh-cc-haha-dream
DeepSeek Harness 自动做梦插件:后台定期回顾近期会话与记忆,整合去重、更新过时、删除矛盾、修剪索引,支持 hybrid/volume 自动触发、/dream 手动执行与设置面板配置。