adapter
Route to, register, inspect, validate, and run explicitly trusted local private adapters…
Check if active wiki articles are still current. Re-fetches sources, detects changes, and offers to update stale articles.
> /plugin marketplace add nvk/llm-wiki > /plugin install wiki@llm-wiki
How it fires
How this command gets triggered: by you, by Claude, or both.
/refreshContext preview
What this command does when you run it.
Check if active wiki articles are still current. Re-fetches sources, detects changes, and offers to update stale articles.
description: "Check if active wiki articles are still current. Re-fetches sources, detects changes, and offers to update stale articles." argument-hint: "[<article-path>|--due] [--wiki <name|all>] [--local] [--include-archived]" allowed-tools: Read, Write, Edit, Glob, Grep, Bash(ls:*), Bash(wc:*), Bash(date:*), WebFetch, WebSearch, Agent
**Resolve the wiki.** Do NOT search the filesystem or read reference files — follow these steps: 1. Read `$HOME/.config/llm-wiki/config.json`. If it has `hub_path`, expand leading `~` only (not tildes in `com~apple~CloudDocs`) and prefer that path; use `resolved_path` only as a fallback cache when the expanded `hub_path` is unavailable and `resolved_path` is initialized. If config has only `resolved_path`, use it. If the configured path can be statted but reading `wikis.json` or listing `topics/` fails with `Operation not permitted`, stop and ask the user to grant Full Disk Access/iCloud Drive access to the launcher; do not fall back to `~/wiki` or `resolved_path`. Do not write machine-specific `resolved_path` into shared configs. 2. If no config → read `$HOME/wiki/_index.md`. If it exists → HUB = `$HOME/wiki`. If nothing found, ask the user where to create the wiki. 3. **Wiki location** (first match): `--local` → `.wiki/` in CWD; `--wiki all` → HUB with an `ALL_TOPICS` flag for step 5; `--wiki <name>` → `HUB/wikis.json` lookup with portable path resolution (`<HUB>`, `~`, absolute, or HUB-relative); if the registry path is stale, fall back to `HUB/topics/<name>`; CWD has `.wiki/` → use it; else → HUB. 4. Read `<wiki>/_index.md` to verify. If missing → stop with "No wiki found. Run `/wiki init` first." 5. **Hub-level detection**: Refresh operates on articles inside a single topic wiki. The HUB has no `wiki/` subdirectory. If `ALL_TOPICS` is set from `--wiki all`, read registered topic wikis from `HUB/wikis.json` (excluding the synthetic `hub` entry) and iterate refresh against each topic wiki sequentially. If the resolved wiki is the HUB (detected by the presence of `wikis.json` and the absence of a `wiki/` subdir) AND the user did not pass `--wiki <name>`, do NOT iterate against an empty topic surface. Instead, present a numbered list of registered topic wikis from `HUB/wikis.json` and ask the user to pick one. Re-resolve the wiki path with the selected name (`HUB/topics/<name>/`) and continue.
Check whether wiki articles are still current by re-examining their sources. This is NOT automatic recompilation — it's a human-gated assessment of what may have changed.
Inventory awareness: if refresh finds a source that needs later follow-up, monitoring, replacement, or access repair, offer an inventory record or update an existing one. Do not create records for every minor stale article; reserve inventory for durable watch items and blocked actions.
topics are skipped by default so old interests do not create freshness chores.
When `--wiki all` is used, iterate active registered topic wikis only unless `--include-archived` is present. If a single `--wiki <name>` target is archived, ask for `--include-archived` or restoration before refreshing.
For each article being refreshed:
1. Read the article's `sources:` frontmatter to get the list of raw source files. Resolve each entry with the Source Reference Resolution protocol in `references/wiki-structure.md`; preserve paths with whitespace and never split entries on whitespace. 2. For each raw source, read its `source:` URL from frontmatter 3. Use WebFetch to re-fetch the URL content 4. Compare the fetched content against the stored raw source using key-fact extraction:
5. Classify each source as: **unchanged**, **updated** (new info available), **contradicted** (facts changed), or **unreachable** (URL 404/timeout)
For sources classified as **updated** or **contradicted**:
1. Summarize what changed: new information added, statistics updated, conclusions revised, sections removed 2. Classify the change impact on the wiki article:
Present the assessment to the user with options per source:
## Refresh Report — <article title> ### Sources checked: N 1. **[Source Title]** — unchanged (last fetched: YYYY-MM-DD) 2. **[Source Title]** — updated (additive) What changed: New benchmarks published for 2026 Q2, 15% performance improvement reported → skip | update | flag 3. **[Source Title]** — unreachable (HTTP 404) → skip | retract ### Article freshness Current: volatility hot, verified 45 days ago Recommendation: update sources 2, retract source 3
On user selection:
LLM-compiled knowledge bases for any AI agent. Parallel multi-agent research, thesis-driven investigation, source ingestion, wiki compilation, querying, and artifact generation.
Route to, register, inspect, validate, and run explicitly trusted local private adapters…
Archive or restore whole topic wikis so old interests stay preserved but out of default…
Assess a local repo against the active wiki's research body and the broader market. Gap…
Truth-seeking umbrella audit for llm-wiki. Combines active wiki maintenance, output drift…
Export, refresh, verify, or import a comprehensive cross-topic Project Knowledge Checkpoint…