Obsidian Memory Skill — Development skill for Claude Code
🧠 Obsidian 记忆优先 Skill for DeepSeek Harness:分级检索省 token(小抄→索引→片段→原文) Tiered-recall DSH skill for your Obsidian vault.
How to install Obsidian Memory Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ImportMyBrain/obsidian-memory-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Obsidian Memory Skill does
🧠 Obsidian 记忆优先 Skill for DeepSeek Harness:分级检索省 token(小抄→索引→片段→原文)| Tiered-recall DSH skill for your Obsidian vault.
Alternatives in Development
- Scope Recall Hermes — Local long-term memory for Hermes, Codex, Claude Code, WorkBuddy and dsh agents: one SQLite store, source-back 438 ★
- Dsh Plugin Cc — Bridge Deepseek-harness into Claude Code for review, critique, delegation, and session import 80 ★
- Dsh Usage — 🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-chan 74 ★
README
🧠 obsidian-memory
**简体中文** | [English](#english)
让 AI 助手在开口之前,先翻一遍你的 Obsidian。
一个给 **DeepSeek Harness(DSH)** 用的「记忆优先」Skill:纯 Markdown,零依赖,不联网。
🌍 想用在 Claude Code / ChatGPT / Codex / Cursor / GitHub Copilot / Gemini CLI?用通用版:[obsidian-memory-anywhere](https://github.com/ImportMyBrain/obsidian-memory-anywhere)。
为什么需要它
和 AI 聊得越久,越容易遇到这三个问题:
- 上个月聊过的项目细节,今天它完全不记得;
- 你明明在 Obsidian 里记了目标、偏好、项目进度,它却像第一次见你;
- 每次都要重新贴背景,贴完还是模板化回答。
`obsidian-memory` 把「先查记忆,再回答」变成固定流程:**每次回答前,先分级检索你的本地 Obsidian 库,把相关记忆找出来、判断新旧、整合进答案,然后才开口。**
🆕 v2.0:分级检索(省 token)
不再全库 grep + 整篇读,改成 4 级:
| 级别 | 读什么 | 目标大小 |
|---|---|---|
| 0 小抄 | .memory/MEMORY_DIGEST.md:偏好 / 目标 / 当前项目 / 最近更新 |
~2–3 KB |
| 1 索引 | memory-search.mjs 返回 top 3–5 条摘要 |
≤2 KB |
| 2 片段 | 候选笔记前 60–80 行 / 关键词附近 ±20 行 | ≤1.5 KB/篇 |
| 3 原文 | 仅必要时,最多 1–2 篇 | ≤8 KB/篇 |
- 实测:搜“项目”从全库 grep 约 17 KB 输出降到 0.5–0.8 KB;每轮记忆读取约 5–8 KB,笔记再多也基本恒定。
- 冷归档(历史对话记录等)默认不参与,问“之前聊过”才查。
- skill 每会话只加载一次;同一话题追问复用结果。
✨ 它做了什么
| 步骤 | 说明 |
|---|---|
| 0. 先看小抄 | .memory/MEMORY_DIGEST.md(~2–3 KB) |
| 1. 查索引 | memory-search.mjs 返回 top 3–5 条摘要,不全库 grep |
| 2. 读片段 | 候选笔记前 60–80 行 / 关键词附近 ±20 行 |
| 3. 读原文 | 仅必要时,最多 1–2 篇 |
| 判断记忆 | 直接相关 / 背景相关 / 历史快照(冷)/ 无关;冲突时以较新的笔记为准 |
| 整合回答 | 记忆影响结论、优先级、语气和例子;引用来源与日期,区分事实和推断 |
| 必要时写回 | 只有出现新事实才更新主笔记并加 [[双链]],没新信息不动库 |
| 查不到时 | 一句话说明「没查到相关记录」,然后正常回答;绝不编造记忆 |
📦 安装
方式一:直接复制(最快)
把仓库里的 `obsidian-memory/` 文件夹放进 DSH 用户技能库:
# Windows
Copy-Item -Recurse obsidian-memory "$env:USERPROFILE\.dsh\skills\"
# macOS / Linux
cp -r obsidian-memory ~/.dsh/skills/
或者运行安装脚本:
.\install.ps1
方式二:下载 zip
从 [Releases](https://github.com/ImportMyBrain/obsidian-memory-skill/releases) 下载 `obsidian-memory-skill.zip`,解压后把 `obsidian-memory/` 放进 `~/.dsh/skills/`。
验证
新开 / 恢复一个会话后,技能目录里应出现 `obsidian-memory`;让 agent 用 `skill` 工具加载一次,能看到完整流程即可。
⚙️ 配置(必做,1 分钟)
打开 `obsidian-memory/SKILL.md`,改第 0
Related Skills
Unified Agent Memory
Unified fleet-wide agent memory system for DeepSeek Harness — shared Obsidian Vault for dsh, Codex, Claude Cod
Mnemo
Persistent memory layer for Claude Code and Codex — your Obsidian vault on autopilot. Seven skills: recall, sa
Dsh Fast
Read-only performance diagnostics for DeepSeek Harness: session load/restore timing, spill-hit counts, compact
Deepseek Harness Token Saver
🔥 Cut 91% of tokens, lose zero capability 省 91% token · 能力零损失 — Scope DSH skill catalogs & MCP tool schemas p
Dsh Plugin Claude Bridge
Bridge Claude Code memory, skills, and config into DeepSeek Harness
Dsh Layered Memory
Cross-session long-term memory plugin for DeepSeek Harness
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Local Writer
Use for high-token repetitive writing (docstrings, inline code comments, Markdown documentation, CHANGELOG/REA
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,