Skip to content
GitHub

Search, check, refactor. Your OKF catalogue.

okf-cli is the command line for catalogues of Open Knowledge Format (OKF) v0.2 bundles: Markdown files with YAML frontmatter. Humans read them, agents query them, scripts check them.

  • One static binary
  • CLI and MCP server
  • Made for AI agents
~/kc · okf check

Words first. Meaning when words fail.

The lexical arm ranks by the words in your query. It runs locally on an FTS5 index and needs no network. No word of this query appears in the Bread page, so the top hit is Gazpacho.

~/kc · okf find 'kneading and proofing' --limit 2

The whole catalogue. Or one bundle.

okf find searches every bundle under the catalogue root. Two bundles answer here.

~/kc · okf find overview --limit 2

Hand agents the right pages.

~/kc · okf ctx show onboarding

Preview first, then write.

~/kc · okf rename
okf rename \  recipes/soup.md \  recipes/broth.md

Moves a concept and its links

The concept to move

Prints a diff. --apply writes it

  1. Moves a concept and its links
  2. The concept to move
  3. Prints a diff. --apply writes it

Read about safe edits

Built for humans, agents and programs.

Markdown for humans
A catalogue is a folder of Markdown files. Read it, edit it, diff it like code.
MCP and CLI for agents
okf install registers an MCP server and a skill. okf prime onboards a fresh session in one call.
JSON for programs
Every command answers --json with one envelope, and every failure has an exit code that names its class.
Your catalogues
--root points one binary at any catalogue, so private, project and shared bundles stay apart.
Anchored to the spec
okf-cli follows the OKF specification and is adapted when it changes.