Knowledge wiki
The Knowledge tab is the console's team knowledge wiki: what you and the agent have learned about your fleet, kept as short facts about named things, drawn as a graph, and readable by the agent and by an MCP client such as Claude Code.
Where agent memory holds a handful of machine-local notes, the wiki is structured: every fact is about one or more entities, and the entities link together through the facts they share.
The tab has two views: Tools (the team's pages, the default) and Inbox (facts waiting for review). Beside them, Fact graph opens every fact drawn as a graph over the tab, with fact search and the facts pinned into the agent's context, and Pull updates everything from the team's wiki repo.
Tools: the team's pages
The Tools view (the tab's default) is the team tools wiki. It lists every runnable the console has discovered, grouped by venv, and marks the ones with a page in the team's wiki repo. Pick one to see:
- its header from the runnable's own
runspec.toml: description, the hosts it's on, its verbs, args and autonomy. The page doesn't repeat these; - the team's page for it,
runnables/<name>.mdin the wiki repo, section by section. Tools named in its Works with section link to their own pages, and Open in repo opens the file on GitLab or GitHub; - team facts about it that aren't on the page yet;
- a dashed This console panel with the facts only true on this console (see below). They're never shared.
Under the tool's name are the ways to use it: Run… opens its run form, Ask about puts a question about it in the command bar for you to finish (AI only), Recent runs opens its History, and Show connections opens the fact graph on it. A page for a tool that no connected host has is tagged not installed here and has no Run.
Pages for tools this console hasn't discovered are listed under Not installed here, and the team's other pages (services, terms, topics, teams, runbooks, hosts) under Other pages. The search box finds tools by name and pages by their text.
The pages come from the wiki repo set in Settings → Memory Sync. Pull copies
every page under runnables/, services/, terms/, topics/, teams/,
runbooks/ and hosts/ into {app_dir}/knowledge/pages/ (replacing what was
there), from the same branch or tag it pulls facts from. The console only reads
them: write and change pages in the repo, where the team reviews them, then Pull.
A page is read as the repo's CI lints it (OKF frontmatter with a type); one that
doesn't parse cleanly is still shown, with a note.
Editing pages and proposing them to the team
You change the team's pages from the console as page edits: the page's new
text, kept on this console ({app_dir}/knowledge/drafts/) until you propose it.
- Add to page (on an inbox fact, or on a team fact under a page) approves the
fact and adds it as a bullet to its page (the button only shows on facts that
have a page to go on, and its tooltip names the page and section): on a runnable's page, how tools
connect (
pairing,effect) goes under Works with and everything else under Watch out for; other pages get a Notes section. A fact about several things goes on the first of runnable, service, term, topic, team, runbook. A page that doesn't exist yet starts from a new OKF page (status: draft). Facts that stay on this console can't be added. - Add all facts to pages does that once for every approved team fact that isn't on a page yet (yours and the team's; not the built-in ones). Use it when you move a team from facts to pages. It asks before it changes any pages.
- Edit page (or Start a page on a tool with none) opens the page's Markdown to change it by hand (Preview shows how it will read). A new runnable page starts with the runnable's own description under What it's for. Closing the editor with unsaved changes asks first.
An edited page shows its diff against the team's page, with Edit and
Discard (which asks first), and the index marks it. Propose changes pushes every page edit
in one commit to your own branch contrib/<lane> (never a force push) and gives
you a link that opens the merge request into the team branch on GitLab (or the
compare view on GitHub). The team reviews it there like any change to the repo.
Your edits stay on this console until a Pull shows the team's page matching
them, so you can keep editing and propose again; the same branch updates.
Once proposed, the bar above the Tools view says the pages are proposed in
contrib/<lane>, waiting for the team to merge, with an Open merge request
link, and each page's header says the same. Change a proposed page again and it
counts as not proposed yet until the next Propose changes, which only
lists the pages that changed.
The wiki check
A line at the top of the Tools view says what in the team wiki needs a look, and opens to the details:
- out of date: a runnable's page mentions a
--flagitsrunspec.tomldoesn't have (on the runnable or any of its verbs;--help,--debug,--envand--run-asalways count as known). The page needs updating. - due a check: a page past its
stale_afterdate, or markeddeprecatedwhile the tool is still installed. - repeated: the same bullet on more than one page (bullets under 24 characters don't count). Keep it in one place.
- without a page: installed runnables the team has no page for. Click one to open it and Start a page.
Clicking a finding opens the page. The agent runs the same check with
check_wiki (read-only, no approval), so you can ask it to look over the wiki
and suggest fixes, which reach you as facts or page edits to review.
The agent gets a runnable's page too. When it searches for or describes the
runnable, the page's Works with and Watch out for bullets come first in
its notes, before facts. search_wiki also searches pages, and wiki_page
returns a runnable's page sections as team_page.
What a fact looks like
kind location
about host:web-01, app:orders, file:/var/log/orders/app.log
text orders logs are in /var/log/orders/app.log on web-01
Entities are written type:name. The types the tab colours are host, group,
profile, runnable, file, term (team jargon), app, service, team,
trigger, schedule, runbook and topic. A fact's kind is one of location, glossary, pairing, host,
effect (knock-on effects), arg-habit (kept for older facts; Capture no longer makes them), procedure or note.
Each entity gets a page listing every fact about it, the entities it links to, and who contributed. The same fact proposed twice, or by two people, is recognised and counted as a confirmation instead of a duplicate.
Facts are refused when they look like they contain a password, key or token. The wiki is meant to be shared.
Where facts come from
| Source | How | Goes to |
|---|---|---|
| Capture | Mines run history over the range picked next to the button (7, 30 or 90 days, or all history; 30 by default) for what usually runs after what (the same person running B within 15 minutes of A, at least 3 times). The arguments people usually pass are left out: which project, space or path someone picks is their habit, not a fact about the tool. Also reads your config: what each trigger and schedule runs and where, what each runbook is for and which runnables it uses, and the saved file filters. Which hosts a runnable runs on, and which hosts are in each group and profile, are left out: History, the sidebar and the agent's search_history / console_status already show them. No AI. Also re-runs on its own, in the background, over the same range, when the tab opens and the last capture is over an hour old; the tab opens straight away and refreshes when it lands. |
The wiki, marked observed |
| Built in | Ships with the console: what runspec is, the runspec.toml format, how to write a runnable (the add-runnable skill's steps) or install one from the Marketplace, what each console feature does, and every built-in agent tool. |
The wiki, marked source seed |
| The agent | propose_fact, whenever it learns something reusable |
The inbox |
| Claude Code (via the console MCP server) | the same propose_fact tool |
The inbox |
| Suggest from chats | The utility model reads your saved chats over the same range and suggests facts. It sees your messages, the agent's replies, each tool call and the start of what it returned (300 characters, with anything that looks like a secret redacted), so it can spot one tool's output feeding the next. Long history is read in batches of about 24,000 characters, one model call each, up to 10 per click; the next click carries on. Chats already read are remembered, so a re-run only reads new chats and new turns. Hidden when AI is off. | The inbox |
| Add fact | You write one in the tab | The wiki |
Facts are linked to the fleet's real entities. When a suggestion, or a fact the
agent proposes, names one of your hosts, groups, profiles, runnables, triggers,
schedules or runbooks, it is attached to that existing node rather than a
lookalike. term:Linux Servers becomes group:Linux Servers, and the hosts
the text names are linked too. Capture links earlier facts the same way, so a
fact written before a group existed joins it once it does. Very common words
such as local are only linked when a fact names them as a subject, not when
they appear in a sentence.
Find facts at the top of the Inbox runs Capture usage or Suggest from chats and sets the range they read; Add fact writes one by hand. Nothing proposed joins the wiki until you review it there. Each fact has one main button: Add to page when it has a page to go on, else Approve; then Edit and Reject. From the keyboard, J and K move between facts and P, A, E and R add to page, approve, edit or reject the highlighted one (Reject still asks). Clicking an entity on a fact opens the fact graph on it, and a fact's side panel there has an Open wiki page link to the page it belongs on.
A runnable with past runs that isn't installed on any connected host now is drawn faded and marked not installed; tick Hide not installed to take those off the graph. The graph has zoom in, zoom out and fit-to-view buttons in its corner, and the scroll wheel zooms about the pointer. Click empty space on the graph (or the clear button under the zoom buttons) to clear the selection.
Agent and MCP tools
| Tool | Does | Autonomy |
|---|---|---|
search_wiki |
ranked search (kind and entity filters) | autonomous |
wiki_page |
one entity's page | autonomous |
wiki_graph |
an entity's neighbours, with weights | autonomous |
propose_fact |
adds a fact to the inbox | autonomous |
list_wiki_inbox |
pending facts with source and author | autonomous |
review_wiki_fact |
approve or reject (optionally editing) | confirm |
edit_wiki_fact |
correct an approved fact | confirm |
retire_wiki_fact |
retire a wrong or stale fact (also drops its pin) | confirm |
pin_wiki_fact |
pin a fact into every chat's context, or unpin it | autonomous |
The default system prompt tells the agent to check search_wiki before asking
you where something lives or what a term means, and to propose_fact what it
learns. The only part of the wiki in the prompt is your pinned facts; the
agent looks everything else up when it needs it. A custom [llm] system
replaces that line, so add it to yours (or use system_append) if you want the
same behaviour.
Because the built-in facts cover runspec and the console, "how do I add a
runnable?" or "what can the Schedules tab do?" is answered from the wiki, by the
console's own agent or by Claude Code through the MCP server (with
expose_builtins on).
Team facts and this-console facts
The wiki is a team tools wiki: what holds on every teammate's console. Each teammate's console has its own hosts, host groups, profiles, triggers, schedules and runbooks, so a fact tied to those is true here but not necessarily there. The console works out a fact's scope and shows it:
- Team: about runnables, apps, services, terms, teams and topics, in words that hold anywhere. These are the facts that can go on the team's pages.
- This console (a dashed tag on the fact; the tooltip says why): the fact is
about a
host:,group:,profile:,trigger:,schedule:orrunbook:; it came from this console's run history or config (Capture); or its text names one of this console's hosts, groups, profiles, triggers, schedules or runbooks, a home directory (~/,/home/<you>,C:\Users\<you>), or an account likename@machine. These stay here: they help the agent on this console and are never pushed.
To share something you know about a host, describe the host by its role ("the orders web hosts") and write it about the runnable or app. The chat-suggest prompt asks the model to do the same.
Pinned facts
Pin up to six facts that matter on almost every turn (the pushpin on a fact, or
the agent's pin_wiki_fact); they are folded into every chat's system prompt
under Pinned facts (team wiki). With nothing pinned the prompt is unchanged.
The side panel lists the pins when no entity is selected, and the context gauge
counts them. Pins belong to this console: they live in state.toml, Memory Sync
never shares them, and you can pin a fact pulled from the team. A pin follows a
fact through an edit or a review, and goes away when the fact is retired or
rejected. Only an approved fact can be pinned, since a pin rides every
chat; approve it from the inbox first. (Pins carried over from the old agent
memory may sit on a pending fact until you review it.)
Facts about a runnable
Don't spend a pin on advice for one tool. A fact about runnable:<name> is
shown to the agent whenever it searches for that runnable (up to three notes on
its search_runnables row) or describes it (up to eight in describe_runnable):
the team page's Works with and Watch out for bullets first, then
approved facts, then observed ones. The agent gets the advice at the
moment it picks the tool, and facts about other runnables stay out of its
context.
Advice that holds wherever the runnable is used, such as which args keep
Confluence macro formatting or which verb is the right entry point, belongs in
the arg and runnable description fields of its runspec.toml instead. That
text is part of the tool's schema, so every agent sees it, including Claude Code
through the MCP server. Use a wiki fact for what is specific to your team.
Moving over from the old agent memory
The wiki replaced the agent's older memory (remember, search_memory,
list_memories, forget_memory over runspec_memory.toml) in console 0.332.0.
The first time the wiki is opened after the upgrade, each remembered fact moves
into the inbox as a pending note from source memory: about app:<app>
(unless it was the default general), its first three tags as topic: entities,
and any host, group or runnable the text names. Pinned memories stay pinned (the
six most recalled), so the prompt carries the same facts as before. They move to
the inbox rather than straight into the wiki because the old memory was never
shared and approved facts are what Memory Sync pushes: you decide which become
team knowledge. Until you approve one, search_wiki doesn't return it. A fact
that looks like it contains a secret is not moved. The old file is renamed
runspec_memory.toml.migrated and kept as a backup.
| Old tool | Now |
|---|---|
remember |
propose_fact (then approve it in the inbox) |
remember with pin |
propose_fact, then pin_wiki_fact |
search_memory, list_memories |
search_wiki, wiki_page |
forget_memory |
retire_wiki_fact |
With [mcp_server] expose_builtins = true, the same tools are published to an MCP
client. A confirm-gated call from Claude Code (review, edit, retire) waits for you
in the console's confirmation card, so a client can curate but cannot approve
facts into the wiki without you. Facts it proposes are marked with source mcp.
The tools don't need the console's own model, so they keep working with
[console] ai = false.
Storage
Everything lives in {app_dir}/knowledge/:
| File | Holds |
|---|---|
facts.toml |
facts approved on this console (your contributions) |
inbox.toml |
proposed facts awaiting review |
observed.toml |
usage patterns and config facts from the last capture (rewritten each capture) |
team/*.toml |
facts pulled from the team by Memory Sync, one file per contributor (replaced on each pull) |
runspec_console/knowledge_seed.toml (in the package) |
the built-in facts; read-only. Retiring or editing one writes your own copy that overrides it, and Memory Sync never pushes them |
index.sqlite |
search/graph index, rebuilt from the files whenever they change; safe to delete |
state.toml |
this console's bookkeeping: the capture range, which chats were already read, the pinned facts, and the last Memory Sync push and pull. Never shared; deleting it re-reads every chat and clears the pins |
The TOML files are the source of truth, written in a stable order so they diff cleanly in git.
Sharing with your team (Memory Sync)
Memory Sync shares the wiki through a git repo of its own. It is a sibling of Config Sync with a separate repo and credential, so a wiki token never reaches your config, and Config Sync stays pull-only.
Set up in Settings → Memory Sync:
| Field | Meaning |
|---|---|
| Wiki repository | HTTPS or SSH URL of an empty repo kept for the wiki |
| Credential | a Credentials entry that can push to it (a token, or an ssh-key credential over SSH) |
| Team branch | where merges land and pushes start; default main |
| Pull from | The team branch (default: every merge reaches the team at once), The newest release tag (only what was released; Tag prefix, default v, picks the series), or A pinned tag (stays on one release until you change it) |
| Your name in the wiki | your lane; blank uses your login name. Kept on this machine across a Config Sync pull |
| Commit email | the author email on your pushes; use the one on your git account. Blank uses <lane>@runspec-console.invalid, so the repo's history never records your machine's name. Kept on this machine |
| CA bundle, Verify TLS | as for Config Sync, for an internal CA or a TLS-inspecting proxy |
Test connection checks the repo is reachable and whether the team branch and your branch exist yet. Save, Test, Propose and Pull each leave their result on screen (under the buttons in Settings, beside them on the Knowledge tab) until the next action, so a credential or server error is visible.
If GitLab refuses a push with Author '…' is not a member of team (or another
author or committer check), the repo has a push rule that only accepts commits
from known accounts. Set Commit email to the email on your GitLab account
and push again. The settings are stored as [memory_sync] in
config.toml; the secret stays in the keychain.
You share with the team through the wiki's pages: Propose changes on the
Tools view (see Editing pages and proposing them to the team).
Your edits reach the team when someone merges contrib/<lane> into the team
branch, so everything is reviewed twice: on your console, then in the merge
request. Protect the team branch on the repo so merges go through review.
Earlier consoles shared facts directly as facts/<lane>.toml. That Push
button is gone (console 0.411.0): use Add all facts to pages once to move
your approved team facts onto the pages, and propose them. Pull still reads any
facts/*.toml already in the repo, so a team can move over at its own pace.
A pull ignores any this-console fact a teammate shared from an older console
(one about their hosts, groups, schedules or host:local).
Pull reads the team's pages (see Tools) and every
facts/*.toml on the team branch except your own (those facts are already
here) into team/, replacing what was there. A file that
isn't valid TOML aborts the pull with nothing written; a file whose name isn't a
valid lane is skipped. Team facts show in the graph, pages and search like your
own, and confirmations from the team add to your count.
With Pull from set to a release tag, a merged fact reaches other consoles
only once someone tags the team branch (v1.4.0, v2026.10.12), the same
releases that publish the Pages site. "Newest" compares the numbers, so
v1.10.0 beats v1.9.0; pre-release tags (v2.0.0-rc1) and other series
(emea-v3) never count. A repo with no release tag yet refuses the pull and
says so. Your own facts and page edits are unaffected: they are on your console
from the moment you make them, and Propose still starts your branch from the
team branch.
When the Knowledge tab opens, and after each pull, the console asks the repo
(one ls-remote, nothing downloaded) whether there's something newer: new
merges on the team branch, or a newer release tag. A dot on Pull says there
is, and its tooltip names the version you last pulled. A pinned tag shows a
newer release in the tooltip only, since pulling stays on the pin until you
change it in Settings.
Layout of the wiki repo:
facts/
alice.toml # merged from contrib/alice
alice.toml # merged from contrib/alice
The wiki repo template
The console ships a starter wiki repo in the
Open Knowledge Format
(OKF v0.2): plain Markdown pages, one per thing, each with YAML frontmatter whose
type says what it is. Any OKF reader or Markdown viewer can read it, and it
doubles as the Memory Sync repo (the facts/ folder sits beside the pages).
There are two ways to start one:
- Settings → Memory Sync → Create wiki repo pushes the template to the team
branch of the configured repo as one commit. If the team branch already
exists (GitLab and GitHub create
mainormasterwith a README when you tick "initialize with a README"), the template goes tosetup/wiki-templateinstead, starting from the team branch: open a merge request into the team branch and merge it. The team branch itself is never written, and a branch that is already a wiki is refused (use Refresh runspec pages). - Copy the folder. The template is
packages/python/runspec-console/runspec_console/wiki_template/in the runspec repo (also inside the installed package). Copy it into a new repo and commit.
What's in it:
index.md # okf_version: "0.2" and links to each folder
log.md # what changed, newest first
README.md # how to add a page, review, tag a release
runnables/ services/ hosts/ runbooks/ terms/ topics/ teams/
runspec/ # generated pages about runspec and the console (don't edit)
tools/okf_lint.py # OKF conformance, links, secrets, stale pages (stdlib only)
tools/build_site.py
.gitlab-ci.yml # lint merge requests, publish GitLab Pages from v* tags
.github/workflows/wiki.yml
A page looks like this:
---
type: Runnable
title: cron
description: Manage a user's crontab on a Linux host.
tags: [linux, scheduling]
---
# cron
What it's for, and how the team uses it.
type is the only required field. sources, status, stale_after,
generated and verified are optional; the README in the template explains
each. Link between pages from the bundle root (/runnables/cron.md).
Lint. python tools/okf_lint.py checks that every page has frontmatter with
a type, that index.md and log.md don't, that nothing looks like a secret
(errors), and reports broken links and pages past their stale_after date
(warnings; --strict fails on them too). It needs no install. The console runs
the same file before it pushes pages.
Site. tools/build_site.py turns the pages into a MkDocs site. The CI
examples run it on release tags (v*), so readers see a reviewed snapshot.
They lint each merge request and lint again on the tag, not after every merge.
Memory Sync pulls the team branch unless a console is set to pull release tags
(see Pull from, above).
Delete whichever CI file you don't use; set PIP_INDEX_URL in CI if runners can
only reach an internal package mirror.
The runspec/ pages are generated from the documentation summaries that
ship with the console (the same ones seeded into the Knowledge tab). Each page
records generated.by: runspec-console-seed/<hash>, a hash of its content, so a
page that didn't change keeps its date. After upgrading the console, use
Settings → Memory Sync → Refresh runspec pages: it regenerates the pages
and pushes only the ones that changed (and removes ones that no longer exist)
to the refresh/runspec-docs branch, for you to merge like any other change.