@zosmaai/pi-llm-wiki 0.6.2 → 0.6.3

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.
package/README.md CHANGED
@@ -84,9 +84,15 @@ The result is a wiki that **compounds** as you capture sources, ask questions, a
84
84
 
85
85
  | Command | Description |
86
86
  |---------|-------------|
87
+ | `/wiki-init <topic>` | Initialize a new LLM Wiki vault |
88
+ | `/wiki-ingest [path]` | Process new source files and update the wiki |
89
+ | `/wiki-query <question>` | Ask questions against the wiki with citations |
90
+ | `/wiki-discover [--topic <topic>]` | Auto-discover new sources from the web |
91
+ | `/wiki-run [--schedule daily\|weekly]` | Full cycle: discover → ingest → lint |
92
+ | `/wiki-lint [--fix]` | Health check (orphans, contradictions, gaps) |
87
93
  | `/wiki-status` | Show a concise operational summary |
88
- | `/wiki-lint [mode]` | Run mechanical lint (`all`, `links`, `orphans`, `frontmatter`, `duplicates`, `coverage`, `staleness`) |
89
- | `/wiki-rebuild` | Force a full metadata rebuild |
94
+ | `/wiki-digest [--period daily\|weekly]` | Generate a digest of recent activity |
95
+ | `/wiki-retro` | Save atomic insights from completed tasks |
90
96
 
91
97
  ---
92
98
 
package/docs/commands.md CHANGED
@@ -12,15 +12,18 @@
12
12
  | `/wiki-run` | Full cycle (discover → ingest → lint) |
13
13
  | `/wiki-status` | Show wiki health |
14
14
  | `/wiki-digest` | Daily/weekly summary |
15
+ | `/wiki-retro` | Save atomic insights from tasks |
15
16
 
16
17
  ## Extension Tools
17
18
 
18
- The extension registers 10 tools the LLM can call directly:
19
+ The extension registers 12 tools the LLM can call directly:
19
20
 
20
21
  | Tool | Purpose |
21
22
  | --------------------- | ------------------------------------------- |
22
23
  | `wiki_bootstrap` | Initialize a new vault |
23
24
  | `wiki_capture_source` | Capture URL/file/text into immutable packet |
25
+ | `wiki_recall` | 🔄 Auto-called at turn start — search wiki |
26
+ | `wiki_retro` | Save atomic insights from completed tasks |
24
27
  | `wiki_ingest` | Get batch of uningested sources |
25
28
  | `wiki_ensure_page` | Create canonical page from template |
26
29
  | `wiki_search` | Search the wiki registry |
@@ -51,7 +51,7 @@ export default function (pi: ExtensionAPI) {
51
51
  installGuardrails(pi);
52
52
 
53
53
  pi.on("session_start", async (_event, ctx) => {
54
- ctx.ui.setStatus("llm-wiki", "🧠 LLM Wiki (11 tools, auto-recall active)");
54
+ ctx.ui.setStatus("llm-wiki", "🧠 LLM Wiki (12 tools, auto-recall active)");
55
55
  });
56
56
 
57
57
  // ─── Auto-recall hook ──────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zosmaai/pi-llm-wiki",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Self-maintaining LLM Wiki for Pi — Karpathy-pattern knowledge base with immutable source capture, automated ingestion, search, linting, and Obsidian-compatible vault. auto-updating personal & company wiki.",
5
5
  "keywords": [
6
6
  "pi",
@@ -0,0 +1,34 @@
1
+ ---
2
+ description: Save an atomic insight from the current task into the wiki. Creates a source packet and source page for future auto-recall.
3
+ argument-hint: "<title> [--category <category>]"
4
+ section: LLM Wiki
5
+ topLevelCli: true
6
+ ---
7
+
8
+ # /wiki-retro
9
+
10
+ Save an atomic insight from a completed task into the wiki.
11
+
12
+ Captures what you learned as an immutable source packet + wiki source page so that `wiki_recall` automatically surfaces it in future sessions.
13
+
14
+ ## User Arguments
15
+
16
+ $ARGUMENTS
17
+
18
+ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first to understand the wiki conventions.
19
+
20
+ ## Steps
21
+
22
+ 1. Identify the key insight(s) from the current task — non-obvious learnings, patterns, or decisions worth preserving
23
+ 2. For each insight, call `wiki_retro` with:
24
+ - `slug`: unique kebab-case identifier (e.g., `jwt-revocation-pattern`)
25
+ - `title`: short descriptive phrase, ≤60 chars, noun phrase not a sentence
26
+ - `body`: markdown explanation with `[[wikilinks]]` to related wiki pages
27
+ - `category`: optional (frontend, architecture, devops, bugfix, design, etc.)
28
+ 3. Confirm the insight was saved and will be auto-surfaced in future sessions
29
+ 4. If the insight relates to existing wiki pages, update those pages with cross-references
30
+
31
+ **Rules:**
32
+ - One atomic insight per `wiki_retro` call. Use multiple calls for multiple insights.
33
+ - Don't save obvious things. Save non-obvious patterns, tradeoffs, and design decisions.
34
+ - Always add `[[wikilinks]]` to connect the new insight with existing wiki knowledge.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: llm-wiki
3
- description: Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 10 custom tools.
3
+ description: Build and maintain a persistent, interlinked Obsidian-compatible markdown wiki using Karpathy's LLM Wiki pattern. Extension-backed with auto-generated metadata, guardrails, and 12 custom tools.
4
4
  ---
5
5
 
6
6
  # LLM Wiki for Pi