Run these jobs from the Mini-A checkout or package directory, using ojob utils/<name>.yaml. The wikihydrate, wikidream, and wikiquery shortcuts resolve their jobs from the package. Each utility has its own defaults; do not substitute agent defaults for them.
Start with the wiki guide or maintenance guide for worked examples.
graphStats
Given a mini-a wiki knowledge graph JSON file (see ojob.io/mini-a) produces statistics about its nodes, edges, communities and cross-document surprise links, plus the graph version, deleted edges, stored summaries and semantic cache entries.
The graph file is typically stored under “
Examples: ojob ojob.io/mini-a/graphStats file=”/path/to/.mini-a-wiki-graph/graph.json” ojob ojob.io/mini-a/graphStats file=”/path/to/graph.json” top=5 __format=json
| Argument | Required | Behavior |
|---|---|---|
file |
No | The path to the mini-a graph.json file (if not provided defaults to key/pipeline data) |
key |
No | The key where the graph data is stored (if not provided defaults to file or __pm) |
detailed |
No | Add meaningful document connectivity diagnostics (default false) |
top |
No | Number of top entries to include in each ranked list (default: 10) |
indexStats
Given a mini-a wiki index folder (see ojob.io/mini-a) produces statistics about the cached page metadata (title, type, tags, links, headings, aliases, updates) and the underlying lexical (lucene), graph, ingest, V2 serving and knowledge state indexes. V2 reports persisted telemetry and generation contracts; runtime compatibility and artifact integrity are not validated. Telemetry may lag unflushed requests.
pages.source identifies the metadata store, not the retrieval mode. Page, link, heading, tag and alias statistics come from .mini-a-wiki-meta; V2 generation counts are under indexes.serving.current.catalogue.stats and may differ. pages.recordVersions counts metadata formats; pages.versions counts frontmatter version values. pages.noOutboundLinks also appears as orphans for compatibility; it does not count pages with no inbound links. Missing metadata is reported as pages.present=false; zero metadata counts then do not mean the wiki is empty.
The folder can either be the root of the wiki (containing the “.mini-a-wiki-meta”, “.mini-a-wiki-lucene”, “.mini-a-wiki-graph” and “.mini-a-wiki-ingest” folders) or the “.mini-a-wiki-meta” or “.mini-a-wiki-serving” folder itself.
Examples: ojob ojob.io/mini-a/indexStats dir=”/path/to/wiki” ojob ojob.io/mini-a/indexStats dir=”/path/to/wiki” top=5 __format=json
| Argument | Required | Behavior |
|---|---|---|
dir |
Yes | The path to the mini-a wiki root folder (or directly to its .mini-a-wiki-meta or .mini-a-wiki-serving folder) |
top |
No | Number of top entries to include in each ranked list (default: 10) |
wikiCompact
Compact a local Retrieval V2 wiki without a model. Preview: ojob utils/wikiCompact.yaml dir=/path/to/wiki Apply after stopping other wiki processes: ojob utils/wikiCompact.yaml dir=/path/to/wiki apply=true offline=true Use the publisher’s wikilexical and wikiretrievalconfig settings. Retains fallback dependencies, source pages, graph and ingestion state.
| Argument | Required | Behavior |
|---|---|---|
dir |
Yes | Local wiki directory |
apply |
No | Rebuild and reclaim instead of preview (default false) |
offline |
No | Confirm other wiki readers and writers have stopped |
wikilexical |
No | Publisher lexical configuration |
wikiretrievalconfig |
No | Publisher Retrieval V2 configuration |
wikiDream
Run a wiki dream (reorganization by default) on a local Mini-A wiki, then compact it.
Stop other readers and writers of the wiki first: reorg can move, merge and delete
pages, and compaction rebuilds the serving index offline. Mutating modes (reorg,
apply, repair, auto, rebuild) first zip the wiki to
ojob utils/wikiDream.yaml wikiroot=okts/docs ojob utils/wikiDream.yaml wikiroot=okts/docs semantic=true ojob utils/wikiDream.yaml wikiroot=okts/docs dreamwikimode=plan ojob utils/wikiDream.yaml wikiroot=okts/docs organize=topics mode=ollama
Defaults: mode=poweruser, dreamwikimode=reorg (with dreamwikireorg=true and dreamwikiapproval=auto), usewikigraph=true, wikiretrievalv2=true, wikitelemetry=true and wikilexical from OAF_MINI_A_WIKI_LEXICAL. Other Mini-A dream/wiki arguments (dreammaxsteps, dreamreport, model, …) are passed through.
| Argument | Required | Behavior |
|---|---|---|
wikiroot |
Yes | Existing local wiki directory |
mode |
No | Mode preset for model and settings (default poweruser; none to skip) |
model |
No | SLON/JSON model config (overrides the mode preset, then OAF_MODEL) |
dreamwikimode |
No | Wiki dream mode (default reorg): auto, plan, apply, reorg, repair, reindex, rebuild, graph, indexes |
semantic |
No | Opt-in LLM semantic graph extraction (default false) |
backup |
No | Zip the wiki next to it before a mutating dream (default true) |
dryrun |
No | Propose changes without writing; skips backup and compaction (default false) |
compact |
No | Compact the serving index afterwards (default true) |
organize |
No | Reorg organization: none (default) or topics |
instructions |
No | Additional guidance appended to the reorg objective |
dreammaxsteps |
No | Total model step budget for reorg/auto (default 40) |
wikiGraph
Export a wiki as a self-contained, offline constellation graph. Uses .mini-a-wiki-graph/graph.json when present; otherwise scans Markdown pages and resolves local wiki/Markdown links. No model or server required.
ojob utils/wikiGraph.yaml dir=/path/to/wiki ojob utils/wikiGraph.yaml dir=/path/to/wiki output=/tmp/atlas.html title=”My wiki”
| Argument | Required | Behavior |
|---|---|---|
dir |
Yes | Wiki directory |
output |
No | Output HTML file or existing directory (default: ./wiki-graph.html) |
title |
No | Atlas title (default: Wiki constellation) |
wikiHydrate
Hydrate a local Mini-A wiki from a source folder, then compact its serving index. Stop other readers and writers of the wiki first: compaction rebuilds the serving index offline and reclaims unreachable artifacts.
ojob utils/wikiHydrate.yaml wikiroot=okts/docs source=./docs ojob utils/wikiHydrate.yaml wikiroot=okts/docs source=./docs prune=true ojob utils/wikiHydrate.yaml wikiroot=okts/docs source=./docs dream=true ojob utils/wikiHydrate.yaml wikiroot=okts/docs source=./docs semantic=true mode=ollama
Defaults: mode=poweruser, ingestmode=auto, ingestlayout=source, usewikigraph=true, wikiretrievalv2=true, wikitelemetry=true, wikimaxprompttokens=200000 and wikilexical from OAF_MINI_A_WIKI_LEXICAL (else English with ngrams and shingles). OAF_MINI_A_WIKI_RETRIEVAL_CONFIG supplies wikiretrievalconfig. Any other mini-a-ingest or Mini-A wiki argument (ingestinclude, ingestexclude, model, …) is passed through.
| Argument | Required | Behavior |
|---|---|---|
wikiroot |
Yes | Local wiki directory (created when missing) |
source |
Yes | Folder to ingest (a git repository or page URL also works) |
mode |
No | Mode preset for model and settings (default poweruser; none to skip) |
model |
No | SLON/JSON model config (overrides the mode preset, then OAF_MODEL) |
semantic |
No | Opt-in LLM semantic graph extraction while finalizing (default false) |
prune |
No | Remove previously ingested content missing from the source (default false) |
dryrun |
No | Report what would be ingested without writing (default false) |
compact |
No | Compact the serving index afterwards (default true) |
dream |
No | Run a wiki dream after ingestion and before compaction (default false) |
dreamwikimode |
No | Dream mode when dream=true (default reorg): auto, plan, apply, reorg, repair, reindex, rebuild, graph, indexes |
dreamsemantic |
No | Semantic graph extraction for the chained dream (default: same as semantic) |
backup |
No | Zip the wiki next to it before a mutating dream (default true) |
wikiOps
Run the same wiki operations as mini-a wikiman=true without interactive menus. ojob utils/wikiOps.yaml operation=wiki.lint wikiroot=/path/to/wiki ojob utils/wikiOps.yaml operation=wiki.reindex wikiroot=/path/to/wiki wikiaccess=rw confirm=true Graph params: extraction=structural|semantic, modelHelp=off|auto, strategy=incremental|full|resume, force, maxCalls, maxTokens, maxMinutes, preset. graph.settings reads shared defaults; graph.defaults saves extraction/assistance/budgets. Full retains valid caches; force bypasses them; resume continues pending sections. Structural and modelHelp=off make zero model calls. Parameters use JSON/SLON. Mutations require confirm=true. Reorg also requires backupconfirmed=true dreamwikireorg=true dreamwikiapproval=auto. Secrets may be supplied using existing configuration or shell environment expansion.
| Argument | Required | Behavior |
|---|---|---|
operation |
Yes | Namespaced operation (wiki.lint, graph.stats, dream.reorg, ingest.run, absorb.status, etc.) |
params |
No | JSON/SLON operation parameters |
wikiroot |
No | Explicit wiki directory (or configure another backend / mounts) |
wikitarget |
No | Optional read-only mount name |
confirm |
No | Explicitly authorize mutation (default false) |
backupconfirmed |
No | Acknowledge an external reorg recovery point (default false) |
wikiQuery
Query a local Mini-A wiki (read-only) from the console, the web UI or as a one-shot goal. Build the wiki first with utils/wikiHydrate.yaml (and optionally utils/wikiDream.yaml).
ojob utils/wikiQuery.yaml wikiroot=okts/docs ojob utils/wikiQuery.yaml wikiroot=okts/docs web=true onport=8888 ojob utils/wikiQuery.yaml wikiroot=okts/docs goal=”How does compaction work?” ojob utils/wikiQuery.yaml wikiroot=okts/docs mode=poweruser
Defaults: mode=wiki, wikiaccess=ro, usewikigraph=true, wikiretrievalv2=true and wikilexical from OAF_MINI_A_WIKI_LEXICAL (else English with ngrams and shingles). Any other Mini-A argument (model, wikimounts, wikisourceurl, …) is passed through.
| Argument | Required | Behavior |
|---|---|---|
wikiroot |
Yes | Existing local wiki directory |
mode |
No | Mode preset (default wiki; none to skip) |
model |
No | SLON/JSON model config (overrides the mode preset, then OAF_MODEL) |
web |
No | Open the web UI instead of the console (default false) |
onport |
No | Web UI port (implies web mode) |
goal |
No | Ask one question, print the answer and exit |