guide to agentprivacy
Browse collections
โœจVisualise
Connect with Star
Your VTA, your chosen perspective

The planned connection uses your VTA and the Trust Spanning Protocol to carry a scoped exchange for you or your agent. You choose what is presented; the receiving service checks the request before a view is shared.

This guide has no VTA connection adapter yet. Opening Star does not connect an identity or send a key.

Open Star โ†— ยท Inspect your City Key โ†—
guide / Skill / Wiki LLM Knowledge Base

Wiki LLM Knowledge Base

Category wikis ยท Version 5.5

Building and maintaining a persistent, LLM-maintained knowledge base โ€” the LLM-Wiki pattern: an LLM incrementally compiles immutable raw sources into a cross-linked, self-consistent wiki it owns, governed by a schema, via ingest / query / lint, with a content index and a chronological log. Activates when designing a knowledge base, ingesting sources into a wiki, health-checking one, or mapping the pattern onto the agentprivacy federation (which IS an instance of it). Part of the git-less onboarding/distribution layer kept by the Librarian ๐Ÿ—ƒ๏ธ in the Tower's Wikis.

The LLM-Wiki pattern: instead of re-deriving knowledge from raw documents on every query (RAG),
an LLM incrementally builds and maintains a persistent, interlinked wiki that sits between you and
the sources. Knowledge is compiled once and kept current โ€” the cross-references are already there,
the contradictions already flagged, the synthesis already reflects everything read. The wiki is a
compounding artifact. You curate sources, explore, and ask questions; the LLM does the summarizing,
cross-referencing, filing, and bookkeeping. Obsidian (or a FedWiki) is the IDE; the LLM is the
programmer; the wiki is the codebase.

The three layers

Layer What it is Rule
Raw sources the curated source documents (articles, papers, repos, data) immutable โ€” the LLM reads, never modifies; the source of truth
The wiki the LLM-generated markdown: summaries, entity/concept pages, comparisons, an overview the LLM owns it entirely โ€” creates, updates, cross-references, keeps consistent; you read it
The schema the config doc (CLAUDE.md / AGENTS.md) telling the LLM the structure, conventions, workflows the key file โ€” makes the LLM a disciplined maintainer, not a generic chatbot; co-evolved over time

The three operations

  • Ingest โ€” drop a source in; the LLM reads it, discusses takeaways, writes a summary page, updates the
    index, updates the entity/concept pages it touches (a single source may touch 10โ€“15 pages), appends a log
    entry. One source at a time with supervision, or batch with less.
  • Query โ€” ask against the wiki; the LLM finds relevant pages, reads, synthesizes a cited answer. Good
    answers are filed back into the wiki as new pages
    โ€” explorations compound just like ingested sources.
  • Lint โ€” periodically health-check: contradictions between pages, stale claims newer sources supersede,
    orphan pages (no inbound links), important concepts lacking a page, missing cross-references, data gaps to
    fill with a search. Keeps the wiki healthy as it grows.

Two navigation files

  • index.md โ€” content-oriented: a catalog of every page (link + one-line summary + optional metadata),
    grouped by category. The LLM reads it first when answering. Avoids embedding-RAG at moderate scale (~100s of pages).
  • log.md โ€” chronological: append-only record of ingests/queries/lints. Use a consistent prefix
    (## [2026-04-02] ingest | Title) so it's greppable (grep "^## \[" log.md | tail -5).

The load-bearing rules

  1. The LLM owns the wiki layer; the human owns sourcing, direction, and questions.
  2. Raw sources are immutable โ€” never edited, always the source of truth.
  3. The schema governs โ€” disciplined maintenance comes from the config doc, not the model's whim.
  4. Maintenance cost is near zero (the LLM touches 15 files without boredom), so the wiki stays current โ€”
    that is why it works where human-maintained wikis are abandoned.
  5. Answers worth keeping are filed back, not lost to chat history.

This federation IS an instance of the pattern

The agentprivacy guide federation (see the agentprivacy-wiki-sync skill) is a worked LLM-Wiki:

LLM-Wiki concept agentprivacy federation realization
Raw sources (immutable) the git canon repos โ€” agentprivacy-skills-v5, cityofmages, agentprivacy-docs, spellweb (gate G0: git is upstream, never authored-first on the wiki)
The wiki (LLM-owned) the FedWiki federation โ€” skill / tomes / research / atlas โ‰ˆ 1,175 forkable, cross-linked pages
The schema (CLAUDE.md) the agentprivacy-wiki-sync skill โ€” conventions, the gates G0โ€“G7, the manifest-first discipline
Ingest the build-* sync passes โ€” manifest-first G1 classify, project canon โ†’ pages + assets, cross-link
Query FedWiki search + activity + the federationmap; answers filed back via file-answer.js โ†’ notes/ โ†’ the The Notes hub on the guide (so explorations compound)
Lint the leak-scan + link-integrity sweep + the coverage audit + forkback.js (G7)
index.md the hub/welcome-visitors pages + the live federationmap (sized by page count)
log.md log.js โ†’ a single greppable Federation Log (grep "^## \[" log.md), published as a page; the dated chronicles remain the long-form prose log
cross-references <a class="wlink" href="wikilinks.html">wikilinks</a> derived from the spellweb graph edges (G5); cross-site reference items
search/CLI tool (qmd) the FedWiki search plugin + the verify recipes (sitemap / link-integrity / leak-scan)

The difference our framing adds: the distribution gates make the LLM-Wiki governed โ€” what crosses
from rawโ†’wiki (G0โ€“G6) and wikiโ†’raw (G7) is gated for classification, coherence, attribution, and a
First-Person sign-off, rather than ungoverned LLM edits. The Memex maintenance problem Vannevar Bush
couldn't solve โ€” who does the bookkeeping โ€” the LLM solves; the gates keep it honest.

Fully realised (2026-06-27): every operation now has a home โ€” including the two the essay names that a
chronicle-only system lacked: answers filed back (file-answer.js โ†’ the The Notes hub) and a single
greppable log.md (log.js โ†’ the Federation Log page). Worked synthesis: Governing an LLM-Wiki: the
eight gates
(filed in The Notes). Tooling: ~/.wiki/skill-fedwiki/{log.js, file-answer.js, build-guide-extras.js}.

When applying the pattern fresh

  1. Define the three layers for the domain (where raw sources live, where the wiki lives, the schema doc).
  2. Write the schema first (it is the LLM-Wiki's CLAUDE.md) โ€” conventions, page formats, the ingest/lint
    workflows. Co-evolve it.
  3. Ingest one source: summary page โ†’ index โ†’ touched entity/concept pages โ†’ log entry.
  4. Query, and file good answers back.
  5. Lint regularly (contradictions / stale / orphans / missing pages / gaps).
  6. Keep index.md (content) and log.md (chronological, greppable) current.

Upstream: the LLM-Wiki pattern essay supplied by the user (Skill/llm-wiki.md) โ€” vendored +
re-framed; the pattern is the source's, the federation mapping and gate correspondence are ours.

Verify: agentprivacy.ai ยท the agentprivacy-wiki-sync skill (the instantiation) ยท
plan ~/.claude/plans/moonlit-stirring-lagoon.md

Provenance

Forkable skill page migrated from the agentprivacy skills repo (persona/agentprivacy-wiki-llm-knowledge-base, v5.5).
Source of truth: agentprivacy-skills-v5. Fork this page to materialize a local SKILL.md via fedwiki-to-skill.

origin: 0xagentprivacy ยท author: Mitchell Travers

Assets

๐Ÿ“Ž wiki-llm-knowledge-baseSKILL.md

Navigation

โ† Welcome Visitors ยท The Wikis