OKF Harness

English | 中文
An agent-first, local-first, terminal-native harness for maintaining OKF-compatible LLM Wikis.
OKF Harness is an independent open-source project built on two upstream ideas: Andrej Karpathy's LLM Wiki pattern for agent-maintained living wikis, and Google's Open Knowledge Format / OKF specification for portable markdown knowledge bundles.
source files or URLs
|
v
raw/sources + .okfh/manifest.jsonl
|
v
wiki/*.md with citations
|
v
supported agents use okfh evidence/read/graph
OKF Harness does not ask you to learn a new knowledge-base app. You run setup once for the agents you use, create one local workspace per knowledge domain, then ask your agent to add sources, maintain the wiki, and answer from it.
Origins
OKF Harness builds on:
Within that, OKF Harness draws two lines of its own:
- Change history lives in the workspace's git repository, not in the wiki. The wiki holds knowledge only.
- Harness checks the source trail — whether each citation really lands on the bytes of a registered source. It does not judge whether the wiki is right, and it does not require every sentence to carry a citation.
This repository is not affiliated with or endorsed by Andrej Karpathy or Google.
Install Once
The recommended installer script for your operating system runs universal setup.
If you're on macOS or Linux, run this script:
curl -fsSL https://okf-harness.dev/install.sh | sh
In Windows PowerShell, run this instead:
irm https://okf-harness.dev/install.ps1 | iex
Already have Node.js 22 or newer?
npx @okf-harness/setup@latest
Normal use needs Node.js 22 or newer, the workspace recovery dependency checked by setup, and at least one supported agent integration. Repository development additionally needs pnpm.
OKF Harness is local-first, not air-gapped: workspace files stay on your machine, but the first use of each newly pinned runtime version fetches that runtime once from npm.
Setup detects supported agent clients and installs the selected native integrations. It does not install a global okfh; the unified host entrypoint resolves each workspace's pinned runtime through the launcher. Direct native install paths are available for users who already know their agent:
| Agent | Native install command |
|---|
| Claude Code | claude plugin marketplace add pumblus/okf-harness && claude plugin install okf-harness@okf-harness |
| Codex | codex plugin marketplace add pumblus/okf-harness --json && codex plugin add okf-harness@okf-harness --json |
| OpenCode | opencode plugin @pumblus/okf-harness --global |
| Pi | pi install npm:@pumblus/okf-harness |
| Hermes Agent | hermes skills tap add pumblus/okf-harness && hermes skills install pumblus/okf-harness/okf-harness |
| OpenClaw | openclaw skills install @pumblus/okf-harness --global |
On a compatible agent client outside the supported agent set? The Agent Plugin install page documents the manual install paths.
Advanced direct CLI use is documented in the CLI reference. It does not write agent entrypoints.
After setup, use the same okf-harness entrypoint before and inside a workspace. Workspace-local guidance may add detail for supported agents, but it does not introduce another prefix.
The recommended parent folder is only a convention, not a hidden CLI default. On macOS or Linux, use $HOME/Documents/OKF Harness. On Windows PowerShell, use $env:USERPROFILE\Documents\OKF Harness. On Command Prompt, use %USERPROFILE%\Documents\OKF Harness.