A self-maintaining knowledge OS — the public system layer of a personal LLM-wiki, and the companion to the paper on horizontal scaling.
This repository is the public system layer of a personal LLM-wiki. It is built by an automated export pipeline whose entire job is to publish the system, not the owner’s work. The governing principle:
Publish the method, not the work.
CLAUDE.md, the operating schema.privacy_scope: public_system and mode: meta — i.e. pages
about the system itself (its architecture, the Cognitive Lens, the autonomy/memory design, the Karpathy
pattern). There are ~18 of these.graph-local.json) and semantic index.01_raw/).local/, restricted/).09_working/), the inbox (00_inbox/), and the Obsidian vault config.privacy_scope is treated as local and never exported.build_graph.py --scope public emits a node only if it is
public_system AND mode: meta. tools/enforce_public_meta.py demotes any public_system page that
isn’t meta.export_public.py). After allowlisting the public pages and stripping private
wikilinks to plain text, export_public.py runs a leakage gate that scans the whole export for
secrets and PII (private-key blocks, API tokens, emails, wallet addresses) plus a configurable
denylist of project-specific private identifiers (read from tools/leakage-denylist.txt, which is
itself git-ignored). On any match it prints the offending file/line and aborts with a non-zero
exit — so an accidental leak can’t be pushed. A second local hardening pass additionally genericizes
domain-specific vocabulary in the exported copies before publishing.Keep your own data private the same way: default everything to local, give each page its real domain
mode, and mark a page public_system + mode: meta only when it is about the system and you have chosen
to share it. Never add a public remote to the vault that holds your raw sources.