@zosmaai/pi-llm-wiki 0.6.1 → 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.1",
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",
@@ -19,7 +19,7 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first to understand th
19
19
 
20
20
  1. Read `.llm-wiki/config.yaml` and `.llm-wiki/.discoveries/history.json`
21
21
  2. If a specific path is given (e.g., `/wiki-ingest .llm-wiki/raw/articles/my-file.md`), process just that file
22
- 3. If no path given, scan all files in `.llm-wiki/raw/` and find ones not in history
22
+ 3. If no path given, scan all files in `.llm-wiki/raw/` (respecting `.gitignore` — skip any matched files) and find ones not in history
23
23
  4. For each new source:
24
24
  a. Read the full content
25
25
  b. Briefly discuss with the user: "This is about [topic]. Key points: [summary]. Any specific emphasis?"
@@ -17,7 +17,7 @@ Read the LLM Wiki skill at `.pi/skills/llm-wiki/SKILL.md` first to understand th
17
17
 
18
18
  ## Steps
19
19
 
20
- 1. Scan all files in `.llm-wiki/wiki/`
20
+ 1. Scan all files in `.llm-wiki/wiki/` (respecting `.gitignore` — skip any matched files)
21
21
  2. Check for:
22
22
  - **Contradictions:** Conflicting claims between pages
23
23
  - **Orphans:** Pages with zero inbound `[[wikilinks]]`
@@ -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.
@@ -11,8 +11,8 @@ Show a quick overview of wiki health and statistics.
11
11
 
12
12
  ## Steps
13
13
 
14
- 1. Count sources in `.llm-wiki/raw/` (recursive)
15
- 2. Count pages in `.llm-wiki/wiki/` (by type: entities, concepts, sources, syntheses)
14
+ 1. Count sources in `.llm-wiki/raw/` (recursive, respecting `.gitignore`)
15
+ 2. Count pages in `.llm-wiki/wiki/` (by type: entities, concepts, sources, syntheses, respecting `.gitignore`)
16
16
  3. Check `.llm-wiki/wiki/LOG.md` for last ingest, lint, and discover dates
17
17
  4. Check for orphan pages (zero inbound links)
18
18
  5. Read `.llm-wiki/.discoveries/gaps.json` for known gaps
@@ -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