@zosmaai/pi-llm-wiki 0.10.7 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.de.md +35 -4
  3. package/README.es.md +260 -170
  4. package/README.fr.md +35 -4
  5. package/README.hi.md +35 -4
  6. package/README.ja.md +35 -4
  7. package/README.ko.md +35 -4
  8. package/README.md +38 -3
  9. package/README.pt.md +35 -4
  10. package/README.ru.md +35 -4
  11. package/README.zh.md +260 -170
  12. package/assets/demo.gif +0 -0
  13. package/dist/extensions/llm-wiki/lib/bootstrap.js +71 -0
  14. package/dist/extensions/llm-wiki/lib/embeddings.js +401 -0
  15. package/dist/extensions/llm-wiki/lib/guardrails.js +232 -0
  16. package/dist/extensions/llm-wiki/lib/indexing.js +78 -0
  17. package/dist/extensions/llm-wiki/lib/ingest-worker.js +310 -0
  18. package/dist/extensions/llm-wiki/lib/inject.js +65 -0
  19. package/dist/extensions/llm-wiki/lib/knowledge-document.js +442 -0
  20. package/dist/extensions/llm-wiki/lib/knowledge-links.js +206 -0
  21. package/dist/extensions/llm-wiki/lib/legacy-repair.js +443 -0
  22. package/dist/extensions/llm-wiki/lib/metadata.js +499 -0
  23. package/dist/extensions/llm-wiki/lib/model-command.js +86 -0
  24. package/dist/extensions/llm-wiki/lib/observation.js +283 -0
  25. package/dist/extensions/llm-wiki/lib/recall.js +875 -0
  26. package/dist/extensions/llm-wiki/lib/retro.js +158 -0
  27. package/dist/extensions/llm-wiki/lib/runtime.js +191 -0
  28. package/dist/extensions/llm-wiki/lib/source-extractors.js +426 -0
  29. package/dist/extensions/llm-wiki/lib/source-packet.js +229 -0
  30. package/dist/extensions/llm-wiki/lib/subagent.js +41 -0
  31. package/dist/extensions/llm-wiki/lib/task-config.js +172 -0
  32. package/dist/extensions/llm-wiki/lib/tools.js +1192 -0
  33. package/dist/extensions/llm-wiki/lib/trajectories-command.js +51 -0
  34. package/dist/extensions/llm-wiki/lib/trajectory.js +467 -0
  35. package/dist/extensions/llm-wiki/lib/utils.js +347 -0
  36. package/dist/extensions/llm-wiki/lib/vault-format.js +247 -0
  37. package/dist/extensions/llm-wiki/lib/visible-status.js +31 -0
  38. package/dist/extensions/llm-wiki/lib/wiki-service.js +128 -0
  39. package/dist/mcp/exec.js +121 -0
  40. package/dist/mcp/index.js +229 -0
  41. package/dist/mcp/operations.js +130 -0
  42. package/dist/package.json +1 -0
  43. package/docs/superpowers/plans/2026-08-02-okf-foundation.md +1579 -0
  44. package/docs/superpowers/plans/2026-08-03-okf-foundation-remediation.md +3005 -0
  45. package/docs/superpowers/plans/2026-08-06-okf-foundation-release-remediation.md +1174 -0
  46. package/docs/superpowers/specs/2026-08-02-okf-foundation-design.md +578 -0
  47. package/docs/superpowers/specs/2026-08-02-okf-v0.2-interoperability-design.md +538 -0
  48. package/extensions/llm-wiki/index.ts +22 -36
  49. package/extensions/llm-wiki/lib/bootstrap.ts +84 -0
  50. package/extensions/llm-wiki/lib/embeddings.ts +9 -3
  51. package/extensions/llm-wiki/lib/guardrails.ts +174 -29
  52. package/extensions/llm-wiki/lib/indexing.ts +2 -1
  53. package/extensions/llm-wiki/lib/ingest-worker.ts +170 -29
  54. package/extensions/llm-wiki/lib/knowledge-document.ts +661 -0
  55. package/extensions/llm-wiki/lib/knowledge-links.ts +282 -0
  56. package/extensions/llm-wiki/lib/legacy-repair.ts +572 -0
  57. package/extensions/llm-wiki/lib/metadata.ts +531 -116
  58. package/extensions/llm-wiki/lib/observation.ts +37 -43
  59. package/extensions/llm-wiki/lib/recall.ts +61 -33
  60. package/extensions/llm-wiki/lib/retro.ts +65 -41
  61. package/extensions/llm-wiki/lib/source-extractors.ts +12 -17
  62. package/extensions/llm-wiki/lib/source-packet.ts +44 -31
  63. package/extensions/llm-wiki/lib/tools.ts +406 -348
  64. package/extensions/llm-wiki/lib/trajectory.ts +15 -1
  65. package/extensions/llm-wiki/lib/utils.ts +121 -130
  66. package/extensions/llm-wiki/lib/vault-format.ts +363 -0
  67. package/extensions/llm-wiki/lib/wiki-service.ts +183 -0
  68. package/mcp/exec.ts +122 -0
  69. package/mcp/index.ts +60 -250
  70. package/mcp/operations.ts +176 -0
  71. package/package.json +8 -2
  72. package/scripts/migrate-llm-wiki.js +801 -0
  73. package/skills/llm-wiki/SKILL.md +8 -6
package/README.fr.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  Transformez des sources brutes (URLs, PDFs, markdown, JSON, XML) en un wiki durable, interconnecté et maintenu par LLM qui s'accumule avec le temps.
37
37
 
38
+ ### Prise en charge native d'Open Knowledge Format (OKF) v0.2
39
+
40
+ Créez une base de connaissances que vous pouvez conserver et transférer — pas une nouvelle exportation fermée propre à une application :
41
+
42
+ - **Créez des documents OKF v0.2 portables** avec un frontmatter canonique, des liens Markdown standard et des citations de sources stables.
43
+ - **Lisez les pages héritées et OKF** afin que les vaults existants continuent de fonctionner sans migration ni réécriture automatique.
44
+ - **Générez des index et des journaux déterministes** à partir des pages faisant autorité, pour une navigation et des métadonnées reproductibles.
45
+ - **Utilisez le même modèle de connaissances depuis Pi ou MCP** avec Claude Code, Cursor, Windsurf et d'autres clients MCP.
46
+ - **Restez compatible avec Obsidian** tout en préparant vos connaissances pour les outils prenant en charge Open Knowledge Format.
47
+
48
+ Commencez avec un nouveau vault OKF, ou utilisez pi-llm-wiki avec un vault existant et adoptez le format à votre rythme. Consultez la [spécification OKF Foundation](docs/superpowers/specs/2026-08-02-okf-foundation-design.md) pour les détails d'implémentation.
49
+
50
+ ---
51
+
52
+ ## Démo
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="Démonstration de pi-llm-wiki" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## Démarrage Rapide
@@ -82,11 +102,13 @@ Le résultat est un wiki qui s'accumule au fur et à mesure que vous capturez de
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **OKF v0.2 natif** | Documents Open Knowledge Format portables, lecture compatible des vaults hérités et projections déterministes |
107
+ | 🌐 **Serveur MCP** | Utilisez le même wiki compatible OKF depuis Claude Code, Cursor et Windsurf via le transport MCP stdio |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ Le résultat est un wiki qui s'accumule au fur et à mesure que vous capturez de
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### Commandes Slash
111
138
 
@@ -120,6 +147,10 @@ Le résultat est un wiki qui s'accumule au fur et à mesure que vous capturez de
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Couches de Vault
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ Consultez la section [Architecture de Vault en Couches](#architecture-de-vault-en-couches) ci-dessus pour les couches personnelles, de projet et d'entreprise.
361
392
 
362
393
  ### Modèle de Page à Quatre Couches
363
394
 
package/README.hi.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  कच्चे स्रोतों (URL, PDF, मार्कडाउन, JSON, XML) को एक टिकाऊ, आपस में जुड़े, LLM-अनुरक्षित Wiki में बदलें जो समय के साथ संचित होता रहे।
37
37
 
38
+ ### मूल Open Knowledge Format (OKF) v0.2 समर्थन
39
+
40
+ ऐसा ज्ञानकोष बनाएँ जिसे आप आगे ले जा सकें — कोई और बंद, ऐप-विशिष्ट निर्यात नहीं:
41
+
42
+ - **पोर्टेबल OKF v0.2 दस्तावेज़ बनाएँ** जिनमें मानक frontmatter, मानक Markdown लिंक और स्थिर स्रोत उद्धरण हों।
43
+ - **पुराने और OKF दोनों पृष्ठ पढ़ें**, ताकि मौजूदा vault बिना स्वचालित migration या पुनर्लेखन के काम करते रहें।
44
+ - **प्रामाणिक पृष्ठों से नियतात्मक index और log बनाएँ**, जिससे navigation और metadata पुनरुत्पाद्य रहें।
45
+ - **Pi या MCP से एक ही ज्ञान मॉडल उपयोग करें** — Claude Code, Cursor, Windsurf और अन्य MCP clients के साथ।
46
+ - **Obsidian-संगत रहें** और अपने ज्ञान को Open Knowledge Format समर्थित tools के लिए तैयार रखें।
47
+
48
+ नए OKF vault से शुरू करें, या pi-llm-wiki को मौजूदा vault पर उपयोग करके अपनी शर्तों पर format अपनाएँ। कार्यान्वयन विवरण के लिए [OKF Foundation specification](docs/superpowers/specs/2026-08-02-okf-foundation-design.md) देखें।
49
+
50
+ ---
51
+
52
+ ## डेमो
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="pi-llm-wiki डेमो" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## त्वरित शुरुआत
@@ -82,11 +102,13 @@ The extension will proactively suggest creating a wiki on your first session. Al
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **मूल OKF v0.2** | पोर्टेबल Open Knowledge Format दस्तावेज़, पुराने vault के लिए dual-read संगतता और नियतात्मक projections |
107
+ | 🌐 **MCP Server** | Claude Code, Cursor और Windsurf से stdio MCP transport द्वारा उसी OKF-सक्षम wiki का उपयोग करें |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ The extension will proactively suggest creating a wiki on your first session. Al
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### स्लैश कमांड
111
138
 
@@ -120,6 +147,10 @@ The extension will proactively suggest creating a wiki on your first session. Al
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Vault स्तर
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ व्यक्तिगत, project और company layering के लिए ऊपर दिया गया [स्तरित Vault आर्किटेक्चर](#स्तरित-vault-आर्किटेक्चर) अनुभाग देखें।
361
392
 
362
393
  ### चार-स्तरीय पृष्ठ मॉडल
363
394
 
package/README.ja.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  URL、PDF、Markdown、JSON、XML などの生ソースを、耐久性があり相互リンクされた LLM 管理の Wiki に変換し、時間とともに蓄積します。
37
37
 
38
+ ### Open Knowledge Format (OKF) v0.2 のネイティブサポート
39
+
40
+ 閉じたアプリ固有のエクスポートではなく、将来にわたって持ち運べるナレッジベースを構築できます:
41
+
42
+ - **ポータブルな OKF v0.2 ドキュメントを作成** — 正規 frontmatter、標準 Markdown リンク、安定したソース引用を使用します。
43
+ - **従来形式と OKF の両方のページを読み込み** — 既存の vault は自動移行や書き換えなしで動作し続けます。
44
+ - **信頼できるページから決定論的な index と log を生成** — ナビゲーションとメタデータを再現可能に保ちます。
45
+ - **Pi または MCP から同じナレッジモデルを利用** — Claude Code、Cursor、Windsurf、その他の MCP クライアントで使用できます。
46
+ - **Obsidian 互換性を維持**しながら、Open Knowledge Format 対応ツールで利用できる知識を構築します。
47
+
48
+ 新しい OKF vault から始めることも、既存の vault に pi-llm-wiki を接続して必要なタイミングで形式を採用することもできます。実装の詳細は [OKF Foundation 仕様](docs/superpowers/specs/2026-08-02-okf-foundation-design.md) を参照してください。
49
+
50
+ ---
51
+
52
+ ## デモ
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="pi-llm-wiki デモ" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## クイックスタート
@@ -82,11 +102,13 @@ The extension will proactively suggest creating a wiki on your first session. Al
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **OKF v0.2 ネイティブ** | ポータブルな Open Knowledge Format ドキュメント、従来 vault の dual-read 互換性、決定論的 projection |
107
+ | 🌐 **MCP サーバー** | Claude Code、Cursor、Windsurf から stdio MCP transport を介して同じ OKF 対応 Wiki を使用 |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ The extension will proactively suggest creating a wiki on your first session. Al
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### スラッシュコマンド
111
138
 
@@ -120,6 +147,10 @@ The extension will proactively suggest creating a wiki on your first session. Al
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Vault 層
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ 個人、プロジェクト、企業の階層については、上記の [階層型 Vault アーキテクチャ](#階層型-vault-アーキテクチャ) を参照してください。
361
392
 
362
393
  ### 4層ページモデル
363
394
 
package/README.ko.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  원시 소스(URL, PDF, 마크다운, JSON, XML)를 시간이 지남에 따라 축적되는 내구성 있고 상호 연결된 LLM 유지 관리 Wiki로 변환합니다.
37
37
 
38
+ ### Open Knowledge Format (OKF) v0.2 네이티브 지원
39
+
40
+ 폐쇄적인 앱 전용 내보내기가 아니라 계속 활용할 수 있는 지식 베이스를 구축하세요:
41
+
42
+ - **이식 가능한 OKF v0.2 문서 생성** — 표준 frontmatter, 표준 Markdown 링크, 안정적인 소스 인용을 사용합니다.
43
+ - **레거시 및 OKF 페이지를 모두 읽기** — 기존 vault를 자동 migration이나 재작성 없이 계속 사용할 수 있습니다.
44
+ - **권위 있는 페이지에서 결정론적 index와 log 생성** — 탐색과 metadata를 재현 가능하게 유지합니다.
45
+ - **Pi 또는 MCP에서 동일한 지식 모델 사용** — Claude Code, Cursor, Windsurf 및 기타 MCP 클라이언트에서 사용할 수 있습니다.
46
+ - **Obsidian 호환성 유지** — Open Knowledge Format을 지원하는 도구에서 바로 사용할 수 있는 지식을 구축합니다.
47
+
48
+ 새 OKF vault로 시작하거나, 기존 vault에 pi-llm-wiki를 연결하고 원하는 시점에 형식을 도입하세요. 구현 세부 사항은 [OKF Foundation 사양](docs/superpowers/specs/2026-08-02-okf-foundation-design.md)을 참조하세요.
49
+
50
+ ---
51
+
52
+ ## 데모
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="pi-llm-wiki 데모" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## 빠른 시작
@@ -82,11 +102,13 @@ The extension will proactively suggest creating a wiki on your first session. Al
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **OKF v0.2 네이티브** | 이식 가능한 Open Knowledge Format 문서, 레거시 vault dual-read 호환성, 결정론적 projection |
107
+ | 🌐 **MCP 서버** | Claude Code, Cursor, Windsurf에서 stdio MCP transport를 통해 동일한 OKF 지원 Wiki 사용 |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ The extension will proactively suggest creating a wiki on your first session. Al
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### 슬래시 명령
111
138
 
@@ -120,6 +147,10 @@ The extension will proactively suggest creating a wiki on your first session. Al
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Vault 계층
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ 개인, 프로젝트, 회사 계층에 대해서는 위의 [계층형 Vault 아키텍처](#계층형-vault-아키텍처) 섹션을 참조하세요.
361
392
 
362
393
  ### 4계층 페이지 모델
363
394
 
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -23,6 +23,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
23
23
 
24
24
  Turn raw sources (URLs, PDFs, markdown, JSON, XML) into a durable, interlinked, LLM-maintained wiki that compounds over time.
25
25
 
26
+ ### Native Open Knowledge Format (OKF) v0.2 support
27
+
28
+ Build a knowledge base you can carry forward — not another closed, app-specific export:
29
+
30
+ - **Create portable OKF v0.2 documents** with canonical frontmatter, standard Markdown links, and stable source citations.
31
+ - **Read both legacy and OKF pages** so existing vaults keep working without an automatic migration or rewrite.
32
+ - **Generate deterministic indexes and logs** from authoritative pages, keeping navigation and metadata reproducible.
33
+ - **Use the same knowledge model from Pi or MCP** with Claude Code, Cursor, Windsurf, and other MCP clients.
34
+ - **Stay Obsidian-compatible** while keeping your knowledge ready for tools that support Open Knowledge Format.
35
+
36
+ Start with a new OKF vault, or point pi-llm-wiki at an existing vault and adopt the format on your terms. See the [OKF Foundation specification](docs/superpowers/specs/2026-08-02-okf-foundation-design.md) for implementation details.
37
+
38
+ ---
39
+
40
+ ## Demo
41
+
42
+ <div align="center">
43
+ <img src="./assets/demo.gif" alt="pi-llm-wiki demo" width="1920" />
44
+ </div>
45
+
26
46
  ---
27
47
 
28
48
  ## Quick Start
@@ -71,11 +91,12 @@ The result is a wiki that **compounds** as you capture sources, ask questions, a
71
91
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
72
92
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
73
93
  | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) → distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
74
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
94
+ | 🌐 **OKF v0.2 native** | Portable Open Knowledge Format documents, dual-read legacy compatibility, deterministic projections |
95
+ | 🌐 **MCP Server** | Use the same OKF-aware wiki from Claude Code, Cursor, Windsurf via stdio MCP transport |
75
96
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
76
97
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
77
98
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
78
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
99
+ | 🧪 **562 tests, 85.09% coverage** | TypeScript, Vitest, Biome, Codecov, CodeQL |
79
100
 
80
101
  ---
81
102
 
@@ -440,6 +461,13 @@ Thanks to everyone who has contributed! This list is regenerated automatically b
440
461
  <sub><b>Akshay</b></sub>
441
462
  </a>
442
463
  </td>
464
+ <td align="center">
465
+ <a href="https://github.com/xcsf">
466
+ <img src="https://avatars.githubusercontent.com/u/43439835?v=4" width="64;" alt="xcsf"/>
467
+ <br />
468
+ <sub><b>xcsf</b></sub>
469
+ </a>
470
+ </td>
443
471
  <td align="center">
444
472
  <a href="https://github.com/danielnaab">
445
473
  <img src="https://avatars.githubusercontent.com/u/136512?v=4" width="64;" alt="danielnaab"/>
@@ -447,6 +475,13 @@ Thanks to everyone who has contributed! This list is regenerated automatically b
447
475
  <sub><b>Daniel Naab</b></sub>
448
476
  </a>
449
477
  </td>
478
+ <td align="center">
479
+ <a href="https://github.com/deestax">
480
+ <img src="https://avatars.githubusercontent.com/u/152369481?v=4" width="64;" alt="deestax"/>
481
+ <br />
482
+ <sub><b>Superdao</b></sub>
483
+ </a>
484
+ </td>
450
485
  <td align="center">
451
486
  <a href="https://github.com/mystery4f">
452
487
  <img src="https://avatars.githubusercontent.com/u/40482524?v=4" width="64;" alt="mystery4f"/>
package/README.pt.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  Transforme fontes brutas (URLs, PDFs, markdown, JSON, XML) em um wiki durável, interligado e mantido por LLM que se acumula ao longo do tempo.
37
37
 
38
+ ### Suporte nativo ao Open Knowledge Format (OKF) v0.2
39
+
40
+ Crie uma base de conhecimento que você possa levar adiante — não mais uma exportação fechada e específica de aplicativo:
41
+
42
+ - **Crie documentos OKF v0.2 portáteis** com frontmatter canônico, links Markdown padrão e citações de fonte estáveis.
43
+ - **Leia páginas legadas e OKF** para que vaults existentes continuem funcionando sem migração ou reescrita automática.
44
+ - **Gere índices e logs determinísticos** a partir de páginas autoritativas, mantendo a navegação e os metadados reproduzíveis.
45
+ - **Use o mesmo modelo de conhecimento no Pi ou via MCP** com Claude Code, Cursor, Windsurf e outros clientes MCP.
46
+ - **Mantenha a compatibilidade com Obsidian** e deixe seu conhecimento pronto para ferramentas que suportam Open Knowledge Format.
47
+
48
+ Comece com um novo vault OKF ou aponte o pi-llm-wiki para um vault existente e adote o formato no seu ritmo. Consulte a [especificação OKF Foundation](docs/superpowers/specs/2026-08-02-okf-foundation-design.md) para detalhes de implementação.
49
+
50
+ ---
51
+
52
+ ## Demonstração
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="Demonstração do pi-llm-wiki" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## Início Rápido
@@ -82,11 +102,13 @@ O resultado é um wiki que se acumula conforme você captura fontes, faz pergunt
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **OKF v0.2 nativo** | Documentos Open Knowledge Format portáteis, compatibilidade dual-read com vaults legados e projeções determinísticas |
107
+ | 🌐 **Servidor MCP** | Use o mesmo wiki compatível com OKF no Claude Code, Cursor e Windsurf via transporte MCP stdio |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ O resultado é um wiki que se acumula conforme você captura fontes, faz pergunt
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### Comandos de Barra
111
138
 
@@ -120,6 +147,10 @@ O resultado é um wiki que se acumula conforme você captura fontes, faz pergunt
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Camadas de Vault
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ Consulte a seção [Arquitetura de Vault em Camadas](#arquitetura-de-vault-em-camadas) acima para as camadas pessoal, de projeto e empresarial.
361
392
 
362
393
  ### Modelo de Página de Quatro Camadas
363
394
 
package/README.ru.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![CI](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/ci.yml)
8
8
  [![npm](https://img.shields.io/npm/v/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
9
9
  [![npm downloads](https://img.shields.io/npm/dm/@zosmaai/pi-llm-wiki)](https://www.npmjs.com/package/@zosmaai/pi-llm-wiki)
10
- [![Coverage](https://codecov.io/gh/zosmaai/pi-llm-wiki/branch/main/graph/badge.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
10
+ [![Coverage](https://img.shields.io/badge/coverage-85.09%25-brightgreen.svg)](https://codecov.io/gh/zosmaai/pi-llm-wiki)
11
11
  [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
12
12
  [![CodeQL](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml/badge.svg)](https://github.com/zosmaai/pi-llm-wiki/actions/workflows/codeql.yml)
13
13
  [![GitHub Repo Stars](https://img.shields.io/github/stars/zosmaai/pi-llm-wiki?style=social)](https://github.com/zosmaai/pi-llm-wiki/stargazers)
@@ -35,6 +35,26 @@ Follows Andrej Karpathy's [LLM Wiki pattern](https://gist.github.com/karpathy/44
35
35
 
36
36
  Превратите сырые источники (URLs, PDF, markdown, JSON, XML) в прочную, взаимосвязанную, поддерживаемую LLM вики, которая накапливается со временем.
37
37
 
38
+ ### Нативная поддержка Open Knowledge Format (OKF) v0.2
39
+
40
+ Создайте базу знаний, которую можно использовать в будущем, — без закрытого экспорта, привязанного к конкретному приложению:
41
+
42
+ - **Создавайте переносимые документы OKF v0.2** с каноническим frontmatter, стандартными Markdown-ссылками и стабильными ссылками на источники.
43
+ - **Читайте страницы устаревшего формата и OKF**, чтобы существующие vault продолжали работать без автоматической миграции или перезаписи.
44
+ - **Создавайте детерминированные index и log** из авторитетных страниц, сохраняя воспроизводимость навигации и метаданных.
45
+ - **Используйте одну модель знаний через Pi или MCP** с Claude Code, Cursor, Windsurf и другими MCP-клиентами.
46
+ - **Сохраняйте совместимость с Obsidian**, подготавливая знания для инструментов с поддержкой Open Knowledge Format.
47
+
48
+ Начните с нового OKF vault или подключите pi-llm-wiki к существующему vault и переходите на формат на своих условиях. Подробности реализации приведены в [спецификации OKF Foundation](docs/superpowers/specs/2026-08-02-okf-foundation-design.md).
49
+
50
+ ---
51
+
52
+ ## Демонстрация
53
+
54
+ <div align="center">
55
+ <img src="./assets/demo.gif" alt="Демонстрация pi-llm-wiki" width="1920" />
56
+ </div>
57
+
38
58
  ---
39
59
 
40
60
  ## Быстрый старт
@@ -82,11 +102,13 @@ The extension will proactively suggest creating a wiki on your first session. Al
82
102
  | 🧠 **Layered recall** | Searches both personal (`~/.llm-wiki/`) and project (`.llm-wiki/`) vaults — personal knowledge follows you everywhere |
83
103
  | 📝 **Auto-bootstrap** | Extension suggests creating a wiki when none exists in the current directory |
84
104
  | 💾 **Lightweight capture** | `wiki_retro` — save atomic insights as a single markdown file; full 4-layer pipeline also available via `wiki_capture_source` |
85
- | 🌐 **MCP Server** | Use with Claude Code, Cursor, Windsurf via stdio MCP transport |
105
+ | 🧭 **Agent working-memory** _(opt-in)_ | `wiki_capture_trajectory` records *how* a task was solved (tool-call trajectory) distill into reusable `skill`/`case` pages → `wiki_recall_skill` surfaces them next time. Off by default; enable with `/wiki-trajectories on` |
106
+ | 🌐 **Нативный OKF v0.2** | Переносимые документы Open Knowledge Format, dual-read совместимость с устаревшими vault и детерминированные проекции |
107
+ | 🌐 **MCP-сервер** | Используйте ту же OKF-совместимую вики в Claude Code, Cursor и Windsurf через stdio MCP transport |
86
108
  | 📝 **Obsidian-friendly** | Folder-qualified wikilinks, stable source-ID citations, compatible vault |
87
109
  | 🛡️ **Guardrails** | Blocks direct edits to raw sources and generated metadata |
88
110
  | 🔧 **Configurable PDF extraction** | MarkItDown timeout via `WIKI_MARKITDOWN_TIMEOUT_MS` env var |
89
- | 🧪 **38+ tests, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
111
+ | 🧪 **562 tests, 85.09% coverage, CI, CodeQL** | TypeScript, Vitest, Biome, Codecov |
90
112
 
91
113
  ---
92
114
 
@@ -106,6 +128,11 @@ The extension will proactively suggest creating a wiki on your first session. Al
106
128
  | `wiki_rebuild_meta` | Force a full metadata rebuild (registry, backlinks, index, log) |
107
129
  | `wiki_log_event` | Append a structured event to the wiki activity log |
108
130
  | `wiki_watch` | Print a `crontab` line for automatic wiki updates (daily / weekly / hourly) — does not install it |
131
+ | `wiki_capture_trajectory` _(opt-in)_ | Capture the completed task's tool-call trajectory (agent working-memory) |
132
+ | `wiki_distill_skills` _(opt-in)_ | Batch undistilled trajectories for synthesis into reusable skill pages |
133
+ | `wiki_recall_skill` _(opt-in)_ | Recall distilled skills + similar past cases — "have I done this before?" |
134
+
135
+ > The three agent-trajectory tools are **off by default** (issue #80). Enable them with `/wiki-trajectories on` (sets `llm-wiki.trajectories`); when off they are not registered at all.
109
136
 
110
137
  ### Слэш-команды
111
138
 
@@ -120,6 +147,10 @@ The extension will proactively suggest creating a wiki on your first session. Al
120
147
  | `/wiki-status` | Show a concise operational summary |
121
148
  | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
122
149
  | `/wiki-retro` | Save atomic insights from completed tasks |
150
+ | `/wiki-req <concept>` | Decompose a concept into atomic, traceable requirement pages |
151
+ | `/wiki-trajectories <on\|off>` | Enable/disable agent working-memory (opt-in, off by default) |
152
+ | `/wiki-record <title>` | Capture the completed task's trajectory (requires trajectories enabled) |
153
+ | `/wiki-skills [query]` | Search distilled skills + past cases (requires trajectories enabled) |
123
154
 
124
155
  ---
125
156
 
@@ -357,7 +388,7 @@ The bundled `llm-wiki` skill teaches the model to:
357
388
 
358
389
  ### Слои Vault
359
390
 
360
- See the [Layered Vault Architecture](#layered-vault-architecture) section above for the personal/project/company layering.
391
+ Описание личного, проектного и корпоративного уровней приведено выше в разделе [Многослойная архитектура Vault](#многослойная-архитектура-vault).
361
392
 
362
393
  ### Четырёхуровневая модель страниц
363
394