Open Knowledge Format for Claude: the OKF skill, /okf:gem setup and doctor, and a post-edit hook that runs the okf CLI's validate and lint checks on the bundle you touched.
Your coding agent works out how your system fits together — why the service
exists, what the metric actually measures, which line of the schema is
load-bearing — and then the session ends and all of it is gone. Next session it
works the same things out again, from the same code, and reaches slightly
different conclusions.
okf gives that reasoning somewhere to live. Plain Markdown files in your
repo, next to the code they explain, written and kept current by the agent
itself rather than by you.
It adds nothing to your stack. No database, no service, no new place to keep
knowledge — just files, reviewed in the same pull request as the code. If you
stop using okf tomorrow, everything it wrote is still Markdown your team can
read.
See it in sixty seconds
This repository documents itself in OKF, so you can walk a real bundle before
installing anything:
gem install okf
git clone https://github.com/serradura/okf && cd okf
okf server .okf # the whole ecosystem as an interactive graph
No Ruby on the machine? The published image runs the same commands —
docker.okfgem.com. Or skip the clone entirely and
open demo.okfgem.com.
Why it doesn't rot
Notes decay because keeping them current is a separate act from doing the work.
Here it isn't:
The agent writes it, not you. An Agent Skill ships with the gem, so
curation happens inside the work rather than after it.
Drift is a failing build.okf validate and okf lint return exit codes,
so a stale or malformed bundle breaks CI the same way a broken test does.
The agent reads only what it needs.okf index reads the map and
okf search pulls the handful of files a task touches, so the knowledge
outgrows the context window instead of filling it.
How it compares
Knowledge already has several homes near an agent, and each holds something
different. None of the others is built for curated, durable team knowledge: