Commands
Commands
Section titled “Commands”Slash Commands
Section titled “Slash Commands”| Command | Description |
|---|---|
/wiki-init |
Create a new wiki vault |
/wiki-ingest |
Process new sources |
/wiki-query |
Ask questions against the wiki |
/wiki-lint |
Health check |
/wiki-discover |
Auto-discover sources |
/wiki-run |
Full cycle (discover → ingest → lint) |
/wiki-status |
Show wiki health |
/wiki-digest |
Daily/weekly summary |
/wiki-retro |
Save atomic insights from tasks |
/wiki-model |
View/set the background-task model |
/wiki-trajectories |
Enable/disable agent working-memory (on/off, opt-in) |
/wiki-record |
Capture the completed task’s trajectory (requires trajectories enabled) |
/wiki-skills |
Search distilled skills + past cases (requires trajectories enabled) |
/wiki-req |
Decompose a concept into atomic requirement pages |
/wiki-settings |
Browse or change all llm-wiki settings (project or global scope) |
/wiki-dashboard |
Read-only vault health: pages, freshness, activity, ingest queue, backlinks, embeddings |
Extension Tools
Section titled “Extension Tools”The extension always registers 14 tools the LLM can call directly. The 3 agent-trajectory
tools (wiki_capture_trajectory, wiki_distill_skills, wiki_recall_skill) are opt-in,
off by default (issue #80) — registered only when llm-wiki.trajectories is enabled
(/wiki-trajectories on).
| Tool | Purpose |
|---|---|
wiki_bootstrap |
Initialize a new vault |
wiki_capture_source |
Capture URL/file/text into immutable packet |
wiki_recall |
Search personal + project wikis for task-relevant pages (layered) |
wiki_retro |
Save atomic insights from completed tasks |
wiki_ingest |
Get batch of uningested sources |
wiki_ensure_page |
Create canonical page from template |
wiki_search |
Search the wiki registry |
wiki_lint |
Health check with auto-fix |
wiki_status |
Instant stats |
wiki_observe |
Record a timestamped observation from the current session |
wiki_rebuild_meta |
Force metadata rebuild |
wiki_reindex_embeddings |
Refresh semantic embeddings (no-op when no embedding provider) |
wiki_log_event |
Record custom event |
wiki_watch |
Schedule auto-updates |
wiki_capture_trajectory |
Capture the completed task’s tool-call trajectory |
wiki_distill_skills |
Batch undistilled trajectories for skill synthesis |
wiki_recall_skill |
Recall distilled skills + similar past cases |
Workflows
Section titled “Workflows”Capture → Ingest → Synthesize
Section titled “Capture → Ingest → Synthesize”wiki_capture_source(url="...")— creates packet + skeletonwiki_ingest()— get batch of sources needing synthesis- Read
.llm-wiki/raw/sources/SRC-*/extracted.md - Update skeleton source page with summary, entities, concepts
wiki_ensure_page(type="entity", title="...")for each entity- Add
[[wikilinks]]between related pages - Extension auto-rebuilds metadata
Query → Answer → File
Section titled “Query → Answer → File”wiki_search(query="...")to find relevant pages- Read those pages
- Synthesize answer with
[[wikilink]]citations - If novel: create analysis page via
wiki_ensure_page(type="analysis") - Extension auto-updates metadata
Task → Record → Distill (agent working-memory)
Section titled “Task → Record → Distill (agent working-memory)”Opt-in: enable first with /wiki-trajectories on.
- Finish a non-trivial task (debug, refactor, integration)
wiki_capture_trajectory(title="...")— auto-extracts the tool-call trajectory from the live session intoraw/trajectories/TRJ-*with a self-contained summary (no skeleton to flesh)wiki_distill_skills()— get undistilled trajectorieswiki_ensure_page(type="skill", title="...")— generalize into a reusable skill citing[[trajectories/TRJ-...]](and optionally acasepage)- Next time,
wiki_recall_skill(query="...")surfaces the skill/case before you start