Use cases / Knowledge CI
Catch stale knowledge before it ships.
Add source checks and retrieval tests when other people or production agents depend on your wiki.
Add checks after the local wiki works
okn setup github Wiki --plan{
"profile": "github",
"plan": true,
"created": ["/your-project/.github/workflows/openknowledge.yml"]
}Preview the workflow file that setup would create. No files are written in plan mode.
okn setup github Wiki{
"profile": "github",
"plan": false,
"created": ["/your-project/.github/workflows/openknowledge.yml"]
}Writes the GitHub workflow locally. Commit and push it to run the checks in GitHub Actions.
Review the plan before applying it. The GitHub setup adds a source baseline, starter evaluation questions, workflow configuration, and maintenance controls.
Knowledge CI setup guideCheck the questions people actually ask
okn check WikiKnowledge status
Structure READY
Links READY
Freshness NOT CONFIGURED
Retrieval NOT CONFIGURED
Overall READYStructure and links pass. Freshness and retrieval checks stay optional until you configure them.
okn eval run evals/questions.yaml Wiki --base main --gate regressionsgate regressions
unchanged_pass citation-policy
PASS: 0 improved, 0 regressed, 0 proposed failuresCompare retrieval against main. A regression makes the gate fail; results depend on your dataset and changes.
Replace evals/questions.yaml with your dataset. Retrieval tests check whether expected evidence is returned. Generated-answer evaluation requires an agent runner.
A READY status covers configured checks. It does not certify freshness or retrieval when those layers are not configured.
Review changes before publication
okn review Wiki# Open Knowledge Content Review
Review scope: `changed`
Deterministic validation: 0 errors, 0 warnings.
Treat findings as advisory.Choose an installed agent, copy the task, or save it. The task guides a review; it is not a completed review result.
okn publish Wiki --target viewer --out ./site --planPublication plan
Knowledge base: /your-project/Wiki
OKF version: 0.2
VIEWER 6 files -> /your-project/siteShows the local viewer bundle to build. Remove --plan to write it; hosting is a separate step.
Enable viewer in release.outputs before planning publication. Checks gate configured outputs; publication remains explicit. Schedule agent maintenance only after configuring its runtime and permissions.
Publication referenceSee the knowledge it uses
This repository’s own wiki documents its commands, design decisions, and release history.
Open the Open Knowledge wiki