A self-organizing Obsidian vault that gives AI coding agents persistent memory.
TypeScript ai-agentsclaude-codecodex-cligemini-cliknowledge-managementobsidianobsidian-vaultpersistent-memorysecond-braintemplate
docs: describe the Stop label as possibly joined with other plugin names (#334) (#344)
Kunal Jaiswala9e8c51f6624
diff --git a/.claude/skills/obsidian-mind/hooks/stop.ts b/.claude/skills/obsidian-mind/hooks/stop.tsindex c1114eb..52fc91b 100644--- a/.claude/skills/obsidian-mind/hooks/stop.ts+++ b/.claude/skills/obsidian-mind/hooks/stop.ts@@ -38,7 +38,10 @@ export function parseStopReport(stdout: string): StopReport {/*** The line drawn under the answer when the report changed: what drifted, in* the report's own words, and where the rest went. Claude Code shows it after- * the mod's name (observed on 2.1.288: `obsidian-mind: …`).+ * the names of the plugins that answered on Stop, joined with `+` (observed on+ * 2.1.288: `obsidian-mind: …`; reported on 2.1.296 as+ * `obsidian-mind+cc-plugin-agents-md: …` when a built-in plugin also answered —+ * TBC, not re-checked). Match any such label with `^obsidian-mind(\+[^:]+)?: `.*/export function summaryLine(report: StopReport): string {const what = report.claims.length > 0 ? report.claims.join(" · ") : "wrap-up checklist";diff --git a/README.ja.md b/README.ja.mdindex d1caffc..c4df3cb 100644--- a/README.ja.md+++ b/README.ja.md@@ -208,7 +208,7 @@ QMDは**3つの小さなモデルをローカルで**実行します。設定すClaude Code 2.1.287 以降では、ボールトは mod も同梱しています。`.claude/skills/obsidian-mind/` にある、Claude Code の内部で動くプラグインです。ボールト自身のフックスクリプトを実行し、その出力がセッションに届く経路だけを変えます。- **セッションコンテキストは、`CLAUDE.md` と同じく instruction ファイルとして届きます。** コンパクションや `/clear` の後もそのまま全体が読み直され(フック出力ではポインタに縮みます)、汎用サブエージェントにも届き(フック出力は届きません)、Claude Code のフック出力の 10,000 文字制限で切られません。予算は `vault-manifest.json` の `eager_layer_instruction_budget_bytes` です。オープンタスクのように縮まないセクションは、それを超えることがあります。`/memory` には `.claude/session-context.md` として表示されます。-- **Stop レポートは回答の下の 1 行になります。** 指摘が変わると、Claude の返答の下に `obsidian-mind: vault check: …` が表示され、Claude は完全なレポートを次のメッセージと一緒に、表示されない形で受け取ります。緊急とマークされた指摘は、代わりにすぐ Claude に届きます(あなたのメッセージ 1 通につき 1 回まで。2 件目はレポートの中で待ちます)。テンプレート自身のレポートにはそれはありません。+- **Stop レポートは回答の下の 1 行になります。** 指摘が変わると、Claude の返答の下に、mod の名前で始まる行 `obsidian-mind: vault check: …` が表示されます。Claude Code は Stop で応答したプラグインの名前を `+` で連結するため、他のプラグインも応答すると `obsidian-mind+<プラグイン>: vault check: …` のようになります。Claude は完全なレポートを次のメッセージと一緒に、表示されない形で受け取ります。緊急とマークされた指摘は、代わりにすぐ Claude に届きます(あなたのメッセージ 1 通につき 1 回まで。2 件目はレポートの中で待ちます)。テンプレート自身のレポートにはそれはありません。mod は処理するイベントごとに、対応するフックに待機を伝えます。mod が読み込まれない場所では、フックはこれまでどおり動きます。Codex と Gemini、古い Claude Code、ボールトのサブフォルダで始めたセッション(ボールトのルートで起動するか、そこへ `/cd` して `/clear`)、信頼していないフォルダです。mod は、ボールトに対する Claude Code の信頼確認を承認した後にだけ読み込まれます。diff --git a/README.ko.md b/README.ko.mdindex c0db445..83fbb9a 100644--- a/README.ko.md+++ b/README.ko.md@@ -208,7 +208,7 @@ QMD는 **세 개의 작은 모델을 로컬에서** 실행하므로, 설정할 AClaude Code 2.1.287 이상에서는 볼트가 mod도 함께 제공합니다. `.claude/skills/obsidian-mind/`에 있는, Claude Code 안에서 실행되는 플러그인입니다. 볼트 자체의 훅 스크립트를 실행하고, 그 출력이 세션에 전달되는 경로만 바꿉니다.- **세션 컨텍스트가 `CLAUDE.md`처럼 instruction 파일로 전달됩니다.** 컴팩션과 `/clear` 후에도 전체가 다시 읽히고(훅 출력은 포인터로 줄어듭니다), 범용 서브에이전트에도 전달되며(훅 출력은 전달되지 않습니다), Claude Code 훅 출력의 10,000자 제한에 잘리지 않습니다. 예산은 `vault-manifest.json`의 `eager_layer_instruction_budget_bytes`이며, 열린 작업처럼 줄어들지 않는 섹션은 이를 넘을 수 있습니다. `/memory`에는 `.claude/session-context.md`로 표시됩니다.-- **Stop 보고서가 답변 아래의 한 줄이 됩니다.** 발견 사항이 바뀌면 Claude의 답변 아래에 `obsidian-mind: vault check: …`가 표시되고, Claude는 전체 보고서를 다음 메시지와 함께 보이지 않게 받습니다. 긴급으로 표시된 발견 사항은 대신 즉시 Claude에게 전달됩니다(보내는 메시지 하나당 한 번까지이며, 두 번째는 보고서 안에서 기다립니다). 템플릿 자체의 보고서에는 그런 항목이 없습니다.+- **Stop 보고서가 답변 아래의 한 줄이 됩니다.** 발견 사항이 바뀌면 Claude의 답변 아래에 mod 이름으로 시작하는 줄 `obsidian-mind: vault check: …`가 표시됩니다. Claude Code는 Stop에서 응답한 플러그인의 이름을 `+`로 이어 붙이므로, 다른 플러그인도 응답하면 `obsidian-mind+<플러그인>: vault check: …`처럼 표시됩니다. Claude는 전체 보고서를 다음 메시지와 함께 보이지 않게 받습니다. 긴급으로 표시된 발견 사항은 대신 즉시 Claude에게 전달됩니다(보내는 메시지 하나당 한 번까지이며, 두 번째는 보고서 안에서 기다립니다). 템플릿 자체의 보고서에는 그런 항목이 없습니다.mod는 처리하는 이벤트마다 해당 훅에 대기하라고 알립니다. mod가 로드되지 않는 곳에서는 훅이 이전과 똑같이 동작합니다. Codex와 Gemini, 이전 버전의 Claude Code, 볼트 하위 폴더에서 시작한 세션(볼트 루트에서 실행하거나, 그곳으로 `/cd`한 뒤 `/clear`), 신뢰하지 않은 폴더입니다. mod는 볼트에 대한 Claude Code의 신뢰 확인을 수락한 뒤에만 로드됩니다.diff --git a/README.md b/README.mdindex 1b6507d..47e71d9 100644--- a/README.md+++ b/README.md@@ -217,7 +217,7 @@ The lifecycle hooks handle routing automatically:On Claude Code 2.1.287 or later, the vault also ships a mod: `.claude/skills/obsidian-mind/`, a plugin whose code runs inside Claude Code. It runs the vault's own hook scripts and changes only how their output reaches the session:- **Session context arrives as an instruction file**, the way `AGENTS.md` does. It is re-read whole after compaction and `/clear` (as hook output it shrinks to a pointer), it reaches general-purpose subagents (hook output never does), and it is not cut at Claude Code's 10,000-character hook limit. Its budget is `eager_layer_instruction_budget_bytes` in `vault-manifest.json`; sections that never shrink, such as open tasks, can still take it past that. `/memory` lists it as `.claude/session-context.md`.-- **The Stop report becomes one line under the answer.** When the findings change you see `obsidian-mind: vault check: …` beneath Claude's reply, and Claude gets the full report with your next message, unseen. A finding marked urgent gets Claude's attention at once instead, once per message you send (a second one waits inside the report); the template's own report has none.+- **The Stop report becomes one line under the answer.** When the findings change you see a line beneath Claude's reply, starting with the mod's name — `obsidian-mind: vault check: …`. Claude Code joins the names of the plugins that answered on Stop with `+`, so when another plugin also answers, the label reads `obsidian-mind+<plugin>: vault check: …`. Claude gets the full report with your next message, unseen. A finding marked urgent gets Claude's attention at once instead, once per message you send (a second one waits inside the report); the template's own report has none.For each event it handles, the mod tells the matching hook to stand down. Wherever the mod does not load, the hooks run exactly as before: Codex and Gemini, older Claude Code, a session started in a vault subfolder (launch from the vault root, or `/cd` there and `/clear`), or a folder you have not trusted. It loads only after you accept Claude Code's trust prompt for the vault.diff --git a/README.zh-CN.md b/README.zh-CN.mdindex 901ad8a..85bb79f 100644--- a/README.zh-CN.md+++ b/README.zh-CN.md@@ -208,7 +208,7 @@ QMD **在本地运行三个小模型**,因此不需要配置 API 密钥,没在 Claude Code 2.1.287 及以上版本中,仓库还附带一个 mod:`.claude/skills/obsidian-mind/`,一个在 Claude Code 内部运行的插件。它运行仓库自身的钩子脚本,只改变其输出到达会话的方式:- **会话上下文像 `CLAUDE.md` 一样以 instruction 文件的形式送达。** 压缩和 `/clear` 之后会被完整地重新读取(作为钩子输出时会缩减为一个指针),能送达通用子代理(钩子输出送达不了),也不会被 Claude Code 钩子输出的 10,000 字符上限截断。其预算是 `vault-manifest.json` 中的 `eager_layer_instruction_budget_bytes`;像未完成任务这样不会缩减的部分仍可能超出它。`/memory` 中显示为 `.claude/session-context.md`。-- **Stop 报告变成回答下方的一行。** 发现项变化时,你会在 Claude 的回复下方看到 `obsidian-mind: vault check: …`,而 Claude 会随你的下一条消息收到完整报告,对你不可见。标记为紧急的发现项则会立即送达 Claude(你每发送一条消息最多一次,第二个会在报告中等待);模板自身的报告中没有这类发现项。+- **Stop 报告变成回答下方的一行。** 发现项变化时,你会在 Claude 的回复下方看到以该 mod 名称开头的一行 `obsidian-mind: vault check: …`。Claude Code 会把在 Stop 上作出应答的插件名称用 `+` 连接起来,因此当其他插件也作出应答时,该标签会显示为 `obsidian-mind+<插件>: vault check: …`。Claude 会随你的下一条消息收到完整报告,对你不可见。标记为紧急的发现项则会立即送达 Claude(你每发送一条消息最多一次,第二个会在报告中等待);模板自身的报告中没有这类发现项。对于它处理的每个事件,mod 会通知对应的钩子让出。在 mod 未加载的地方,钩子与以前完全一样地运行:Codex 和 Gemini、旧版 Claude Code、在仓库子文件夹中启动的会话(请在仓库根目录启动,或 `/cd` 到根目录后执行 `/clear`)、以及未信任的文件夹。只有在你接受了 Claude Code 对该仓库的信任提示之后,mod 才会加载。