Open Knowledge Format: knowledge as a Markdown bundle for AI agents
Open Knowledge Format (OKF) v0.3 checked at the source: the spec, an example bundle, a validator of my own, okf.md fact-checked and Grav as a knowledge base.
by Jean Pierre Kolb ·
Every article and every overview page of JPKCom DB also exists as raw Markdown. Next to /db/en/blog/grav-cms/ sits /db/en/blog/grav-cms.md, the llms.txt links these Markdown twins, and if you ask with Accept: text/markdown, you get them directly. This has been one of this knowledge base's experiments from the start, and it comes down to one question: what does knowledge in files have to look like so that an AI agent can not only read it but also put it in context? Where does a statement come from, who checked it, is it still current?
The Open Knowledge Format, OKF for short, is an open specification from Google Cloud that describes knowledge as a folder of Markdown files with YAML frontmatter, including fields for provenance, review and freshness. It answers exactly these questions and is deliberately plain. It interests me for a second reason too. I'm a big fan of Grav, the flat-file CMS, and I run a knowledge base on Grav myself, served through FrankenPHP. Using Grav as a knowledge base is an idea that, to me, fits OKF remarkably well, because Grav also stores everything as Markdown with YAML in folders. How far that idea goes is covered further down.
First, though, the format itself, and a distinction you should keep in mind from the start. The authoritative text is specification v0.3 in the GitHub repository open-knowledge-format/open-knowledge-format (opens in a new tab). The site okf.md (opens in a new tab) is an independent community guide, useful, but out of date in quite a few places. I look at both here: the specification as the reference, and okf.md critically but fairly.
On method: This article is based on the full text of specification v0.3, the three Google Cloud blog posts, the repositories, the official skills (instruction packages for AI agents) and the pages of okf.md. Third-party scripts were only read, not executed. The only thing executed was the small validator from this article, against the example bundle from this article. What's said about Grav here comes from docs and source code and hasn't been tested in a running installation.
The short version
| Question | Answer |
|---|---|
| What is OKF? | An open specification for knowledge as a folder of Markdown files with YAML frontmatter. A folder is called a bundle, a file a concept |
| Who's behind it? | Google Cloud, introduced in June 2026. Since v0.3 it lives in its own GitHub organisation, but contributions still require Google's CLA |
| Which version applies? | v0.3, no longer marked as a draft since 18 November 2026, Apache-2.0 |
| What's mandatory? | Only the type key. A concept with nothing but type is fully conformant |
| What makes it special? | Fields for provenance (sources), trust (generated, verified), freshness (stale_after) and lifecycle (status, superseded_by) |
| Is okf.md official? | No. An independent guide that, for the most part, still explains v0.1 |
| Can I use it today? | Yes, with Git, an editor and the official skills. The ecosystem is young, and many tools only know v0.2 |
| Does Grav fit? | As an editor with an export, yes; as a bundle directly in the pages folder, no. Grav reads only one page file per folder (per language) |
Watch out: a name trap
When you see "OKF", you might think of the Open Knowledge Foundation (opens in a new tab), the organisation founded in 2004 that is behind CKAN, with Open Knowledge Foundation Deutschland as its German chapter. It has nothing to do with the Open Knowledge Format. The mix-up is so easy that it happened to Google itself: the meta description of the blog post on v0.2 literally speaks of "the Open Knowledge Foundation v0.2 spec". For your research, that means: search for "Open Knowledge Format" in quotation marks. The second risk of confusion is mistaking okf.md for the official source; more on that shortly.
Where OKF comes from
From LLM wiki to specification
On 4 April 2026, Andrej Karpathy published the gist LLM Wiki (opens in a new tab). The idea: a language model maintains a persistent wiki of Markdown files instead of gathering everything again for every question, with an index.md as the catalogue ("each page listed with a link, a one-line summary") and a log.md as the chronicle ("an append-only record of what happened and when"). He explains why this suits AI so well: "LLMs don't get bored, don't forget to update a cross-reference, and can touch 15 files in one pass."
On 12 June 2026, Sam McVeety and Amir Hormati of Google Cloud introduced version 0.1 in the post Introducing the Open Knowledge Format (opens in a new tab). They explicitly name Karpathy's gist and describe OKF as "an open specification that formalizes the LLM-wiki pattern into a portable, interoperable format". Put bluntly, OKF is Karpathy's LLM wiki as a specification, plus a layer for trust. The format should "never require a proprietary account or SDK to read, write, or serve". The post doesn't hide the commercial context: Google's Knowledge Catalog, formerly Dataplex, has been able to ingest OKF since the launch.
heise/iX (opens in a new tab) (German) reported on 15 June that Google intended to develop the specification further together with the community and keep it backward compatible. That's not quite how it turned out.
Three versions in five months
| Version | Date | What changed |
|---|---|---|
| v0.1 | 12 June 2026 | Basic form: folders, frontmatter with the mandatory field type, reserved index.md and log.md, sources as a list under # Citations |
| v0.2 | 24 July 2026 | Trust signals: sources, generated, verified, status, stale_after and the type Attested Computation. timestamp becomes generated.at, # Citations becomes sources with footnotes |
| v0.3 | Commit on 23 October, marked as final on 18 November, announced on 19 November 2026 (opens in a new tab) | Clarifications, two breaking changes, plus superseded_by, bundle metadata and rules for custom keys |
As early as v0.2, the blog and the specification contradict each other. The post calls the release "additive, backward-compatible, with two deliberate renames", while the specification speaks of "two deliberate breaking changes". After that, the text of v0.2 was changed once more, and suddenly every timestamp needed a time zone. The v0.3 specification notes this later change itself and contains a new rule: "After the release of a version, a change to its normative text requires a new version." The blog post on v0.3, however, only promises that for the time from version 1.0 onwards.
v0.3 brings two named breaking changes. Path fields in the frontmatter such as resource or computation without a leading slash now start from the file's folder instead of the bundle root, and for the trust tier only reviews after the last change to the content count. That's allowed, because according to §12 any minor version may break before version 1.0. So write okf_version into your bundle and expect further breaks until 1.0. One detail shows how fresh all of this is: the sentence that binds MUST, SHOULD and MAY to RFC 2119 was deleted from the specification on 18 November, yet the blog post of 19 November still says "uses RFC 2119 keywords".
Tip: read the specification in the right place
The specification has moved twice, and some of Google's own links still point to old copies:
| Location | Version | Status |
|---|---|---|
GoogleCloudPlatform/knowledge-catalog, folder okf/ |
v0.2 | frozen: "Stop using the copy under okf/ in this repository" |
GoogleCloudPlatform/open-knowledge-format |
v0.2 | marked "deprecated" since 18 November 2026 |
open-knowledge-format/open-knowledge-format |
v0.3 | authoritative, active, Apache-2.0 |
The blog post on v0.3 links "v0.3 spec" to the deprecated repository, which still holds v0.2. And the usecases/ folder that the post and the README refer to returns a 404 at the end of November 2026, because the only use case was removed again on 6 November with pull request #7 (opens in a new tab). My advice: open the SPEC.md in the new repository (opens in a new tab) and check the version line at the very top. If it doesn't say "Version 0.3", you're in the wrong place.
Who's behind it
With v0.3, according to Google, OKF moved "out of the Google Cloud Platform GitHub org into a standalone organization". In practice it remains a project led by Google: the CONTRIBUTING.md requires Google's Contributor License Agreement (CLA, an agreement in which you grant rights to your contribution), the pyproject.toml says "Copyright 2026 Google LLC", and so far only two committers have merged anything. There's no steering committee and no documented decision process. I consider that more honest than a foundation on paper. But you should know it before you make a format the basis of your knowledge store.
The format, from simple to deep
A folder full of Markdown
A bundle is a folder, and every Markdown file in it with suitable frontmatter is a concept. The frontmatter is the YAML block between two --- lines at the top of the file, as you'll know it from static site generators. The specification sums up the attitude like this: "If you can cat a file, you can read OKF. If you can git clone a repository, you can ship it." The concept ID is the path without .md. Other files such as images are called assets, and files or folders starting with a dot, such as .git/ or .obsidian/, aren't part of the bundle. A bundle is distributed as a Git repository (recommended), as an archive or as a subfolder of a larger repository. The specification doesn't define delivery over HTTP.
The file must begin with a line that reads exactly ---, the block must parse as a YAML 1.2 mapping and must not contain duplicate keys. Values that look like numbers or booleans should be in quotation marks. One rule strikes me as particularly smart for files maintained by agents: "A producer that modifies an existing file SHOULD NOT re-serialize values that it did not change. This keeps diffs small."
One mandatory field: type
"type is the only key that is always required. A concept that has only type is fully conformant." There's no fixed vocabulary; the specification's examples are BigQuery Table, API Endpoint, Metric, Playbook or Reference, and consumers must accept unknown types. Four further keys are optional: title as the display name, description as one sentence that indexes and search snippets use, resource as a URI for the thing described, such as a table, and tags as a YAML list. A single string in tags is one tag and isn't split at commas.
index.md and log.md are reserved
These two file names have a fixed meaning at every level: "Consumers MUST NOT treat them as concepts, whatever frontmatter they contain." An index.md lists the contents of its folder so that an agent sees what's there before it opens files. The specification calls this progressive disclosure. Entries take the form * [Title](path) - Description under headings, and the description should come from the concept's description. An index.md in a subfolder has no frontmatter. The log.md is the chronicle, with date headings of the form ## YYYY-MM-DD, newest date at the top, also without frontmatter.
Only the index.md at the root may carry frontmatter. There you put okf_version as a quoted string and, since v0.3, also the bundle metadata title, description and license, the latter as an SPDX expression (the standardised short form for licences such as CC-BY-4.0) or as a path to a licence file. The description has a special job: "An agent that has access to many bundles can read this sentence to select a bundle."
Links and paths since v0.3
Concepts link to each other with normal Markdown links, and there are three rules for resolving them. A value with a URI scheme such as https: is an absolute URL, a value with a leading / starts at the bundle root, and everything else starts in the folder of the file the link is in. Both forms within the bundle are valid. The official skill okf-generate recommends relative links in the text, because they also work on GitHub, and paths with / in fields such as superseded_by. Paths are case-sensitive. Consumers have to tolerate broken links, because a missing target "can be knowledge that nobody has written yet". A value that resolves outside the bundle root is external, and a consumer must not read it from the local file system.
Links are untyped and directed; the hierarchy comes only from the folder tree. Typed relationships such as "contradicts" have been postponed to a later version. And if you use Obsidian, remember this sentence from §6.1: "Other syntaxes, for example [[wikilinks]], are not links in OKF." A vault with double brackets is therefore a collection of concepts without edges.
Provenance: sources and footnotes
What a concept was built from goes into sources, a list with resource as the mandatory field per entry and optionally id, title, author, usage_count and last_modified. You back up individual statements in the text with a footnote whose label is the id of an entry, for example [^rfc7763]. A list of sources in the text isn't intended, and the reasoning makes sense when agents rewrite files all the time: "When the list order changes, a position gives the wrong attribution and nothing shows the error."
Trust: generated, verified and three tiers
For me, this is the strongest idea in the whole format. generated records who wrote the current content and when (by, at), verified is a list of reviews, each with by and at. You write actors as <producer>/<version> for agents and tools, human:<id> for people, team:<id> for groups and process:<id> for automated processes. From this, a consumer calculates a trust tier:
| Tier | Condition |
|---|---|
| unverified | no current review |
| machine-confirmed | current reviews only by non-humans, including team: |
| human-reviewed | at least one current review by human:<id> |
"Current" means: not older than generated.at, and if generated is missing, every review counts. The specification gives this reason: "When an agent rewrites a concept after a human review, the human did not read the new text. Thus the concept is not human-reviewed until a human confirms it again." Small changes such as formatting or repaired links leave generated.at unchanged. Easy to overlook: even a text written by a human is "unverified" without a verified entry. And the tiers are "advisory signals, not access control", in other words hints, not permission management.
In Who Checks the Checker? I describe what a review looks like that actively tries to refute claims. OKF provides the field in which the result of such a review is recorded, and makes sure it doesn't silently carry over to a later version.
Lifecycle: status, superseded_by, stale_after
status knows draft, stable and deprecated. If the key is missing, stable applies; an unknown value explicitly does not count as stable. New in v0.3 is superseded_by, a path to the successor that only has meaning together with status: deprecated. If you rename a concept, you leave a short stub with both keys at the old path. It works like a redirect, only in the files instead of in the web server.
stale_after is an absolute point in time from which someone has to check the content again: "Stale means that a person or a process must check the content again. It does not mean that the content is false." Two of the rules for it strike me as exemplary. "Omit stale_after when no review date is known. Do not invent one." And a consumer must never treat a value it can't read as fresh.
Custom keys and files that aren't concepts
You may add custom keys anywhere, including in sources or verified entries. Consumers must not reject them, and anyone editing a file must keep unknown keys. The specification promises: "Future OKF versions will not define keys that start with x-." The recommendation is x-<producer>-<name>, for example x-acme-owner. Use this prefix, because a bare key like lang could collide with a future version.
An important clarification in v0.3 is in §3.2: a .md file without frontmatter or without type "is not a concept. Consumers skip it. It does not affect conformance. Validators SHOULD warn about it." README.md, AGENTS.md, CONTRIBUTING.md and SKILL.md are named explicitly. Under v0.1 and v0.2, a README.md without frontmatter made the whole bundle non-conformant. A bundle is now conformant if every frontmatter block parses as a YAML mapping and the reserved files follow their rules. There's a trap in SKILL.md: it has frontmatter but no type, and is therefore skipped. Only set type there if the skill really should appear as a concept.
For metrics there's also the type Attested Computation. It contains an approved computation, such as an SQL query, the permitted parameters and optionally an executor that runs it and an attester, deterministic code without a language model that checks whether the approved query really ran. The agent may only supply parameter values: "The agent MUST NOT write or edit the computation." For a knowledge base that's usually too much, but it matters for security, because a bundle uses it to point to executable code.
A complete example bundle
Enough theory. The following bundle is small but complete, and it follows v0.3. The terms in it come from JPKCom DB, because Markdown twins and content negotiation are exactly what this knowledge base serves. It contains two glossary terms, one of them renamed with a stub, a how-to with a source and a human review, and an AGENTS.md that is deliberately not a concept:
knowledge/
├── index.md # bundle metadata + listing
├── log.md # history, newest date first
├── AGENTS.md # no frontmatter: not a concept
├── glossary/
│ ├── index.md # listing, no frontmatter
│ ├── markdown-twin.md # type: Glossary Term
│ └── md-mirror.md # deprecated stub, superseded_by
└── howtos/
├── index.md
└── markdown-negotiation.md # type: Howto, sources, verifiedThe root index.md carries the bundle metadata and links to the subfolders:
---
okf_version: "0.3"
title: Web Knowledge Demo
description: Terms and how-tos on Markdown for AI readers, for questions about Markdown twins and content negotiation.
license: CC-BY-4.0
---
# Sections
* [Glossary](glossary/) - Terms, briefly explained
* [How-tos](howtos/) - Put into practice step by stepThe how-to shows almost all the optional field groups at once: provenance, trust, stale_after and a custom x- key. The timestamps are in quotation marks, the review by human:alex is newer than generated.at, so the result is "human-reviewed". The link to the glossary starts from the file's folder, and the footnote points to the source via its label:
---
type: Howto
title: Markdown via content negotiation
description: Serve Markdown when a client asks for text/markdown.
tags: [markdown, http]
sources:
- id: rfc7763
resource: https://www.rfc-editor.org/rfc/rfc7763
title: "RFC 7763: The text/markdown Media Type"
generated: { by: "claude-code/2.1", at: "2026-10-05T09:00:00Z" }
verified:
- { by: "human:alex", at: "2026-10-06T10:00:00Z" }
stale_after: "2027-04-06T00:00:00Z"
x-webknowledge-owner: editorial
---
A client signals with `Accept: text/markdown` that it can read Markdown.
The server then responds with the [Markdown twin](../glossary/markdown-twin.md)
instead of HTML and sets `Vary: Accept` so that caches keep both versions apart.
The `text/markdown` media type is registered.[^rfc7763]
[^rfc7763]: RFC 7763: The text/markdown Media TypeThe renamed term stays as a stub and points to its successor:
---
type: Glossary Term
title: Markdown mirror
status: deprecated
superseded_by: /glossary/markdown-twin.md
---
Renamed to [Markdown twin](markdown-twin.md).The log records what happened when, newest date at the top, without frontmatter:
# Change log
## 2026-10-06
* **Deprecation**: [Markdown mirror](glossary/md-mirror.md) replaced by [Markdown twin](glossary/markdown-twin.md).
* **Update**: [Markdown via content negotiation](howtos/markdown-negotiation.md) checked against RFC 7763.
## 2026-10-01
* **Creation**: Bundle created.What's still missing is the term itself, the two listings of the subfolders and the AGENTS.md:
---
type: Glossary Term
title: Markdown twin
description: The Markdown version of an HTML page at its own URL.
tags: [markdown, ai]
generated: { by: "human:alex", at: "2026-10-01T09:00:00Z" }
---
A Markdown twin delivers the same content as an HTML page, but as plain
Markdown, for example `/blog/example.md` next to `/blog/example/`. How to have
it served via a header is in the
[how-to on content negotiation](../howtos/markdown-negotiation.md).# Glossary
* [Markdown twin](markdown-twin.md) - The Markdown version of an HTML page at its own URL.
* [Markdown mirror](md-mirror.md) - Deprecated, see Markdown twin.# How-tos
* [Markdown via content negotiation](markdown-negotiation.md) - Serve Markdown when a client asks for `text/markdown`.# Notes for agents
Start at `index.md`. Concepts have `type:` in their frontmatter.
Types in this bundle: `Glossary Term`, `Howto`.human:alex is a placeholder. In a real bundle, it would be an identifier that unambiguously denotes a person, because only human: yields the highest tier. The term markdown-twin.md has a generated by human:alex but no verified, and therefore counts as "unverified", even though a human wrote it. That's not a mistake in the example, but exactly the rule from §5.3.
okf.md under the microscope
Who runs the site
okf.md isn't a Google site and isn't connected to the open-knowledge-format organisation. According to Whois, the domain was registered on 13 June 2026, one day after the announcement of v0.1. The privacy policy says "OKF (okf.md / okf.ia.br) is operated independently", the terms of use refer to Brazilian law, and the GitHub links in the footer lead to a personal skill collection, fabricioctelles/skills (opens in a new tab), where the site's skill and issues also live. Neither the README nor the SPEC.md of the official repository mentions okf.md. The site itself is honest about it: "The OKF specification itself is maintained by Google Cloud and subject to its own licensing terms." According to the terms of use, the "MIT licensed" in the footer refers to the site's content; the specification is under Apache-2.0.
Being fair also means naming the strengths. The appended summary of v0.3 matches the specification. The warning that the npm package kcmd has nothing to do with Google's tool of the same name is correct, the FAQ correctly explains that wikilinks aren't links, and the tool catalogue is an extensive overview of the ecosystem. okf.md works as a map, not as a reference.
v0.1 habits you should drop
The core of the guide explains v0.1. The site says so itself: "Annotates version 0.1 — current version: 0.3", and at the end it says "Guide written: June 2026. OKF v0.1 Draft." The sections on v0.2 and v0.3 are appended; the main text, quickstart and examples consistently work with timestamp: and # Citations. Quickstart and examples know neither generated: nor okf_version, and the main text mentions okf_version only once, with the value "0.1". If you're coming from there, drop these habits:
| v0.1 habit | Status in v0.3 |
|---|---|
timestamp: 2026-06-13T10:00:00Z |
generated: { by: …, at: … }, timestamps preferably in quotation marks (not mandatory) |
List of sources under # Citations |
sources in the frontmatter plus footnotes [^id] |
"Every .md needs frontmatter with type" |
Files without type aren't concepts, but they're allowed |
Links with / are "the recommended form" |
Both forms are valid; relative paths start from the file's folder |
index.md with version and entries in the frontmatter |
Only the root index.md has frontmatter; the listing is in the text |
Types such as concept, howto, decision |
There's no type vocabulary |
| "Semver protects your investment" | Before 1.0, any minor version may break |
| "Link ≈ wikilink" | Wikilinks aren't links |
The validator that doesn't exist yet
The /validator/ page announces a validator in the browser: "nothing will leave your browser". At the end of November 2026, however, it's titled "OKF Validator — Coming Soon", and the result shown is explicitly an "Illustrative preview of the planned output". Like the okf.md home page, this page loads a self-hosted Plausible and Google Analytics 4, which according to the privacy policy measure page views. For the finished validator, the promise "nothing will leave your browser" still has to be proven. In terms of content, according to the announcement, it's meant to check the conformance rules of v0.1 and v0.2, including "Every non-reserved .md file has parseable YAML frontmatter". A validator like that would reject valid v0.3 bundles with a README.md. The shell one-liner the FAQ offers as a substitute greps for ^type: in the first 50 lines, including in the body, breaks on paths with spaces and never exits with an error code. It's no good for CI.
The okf.md skill comes with a validate.sh script, according to its header for "OKF v0.2 spec". Reading it, a few things stand out: it also searches .git/ and .obsidian/, treats every .md without frontmatter as an error and never parses YAML. If a concept has a verified entry and human: appears anywhere in the frontmatter, even just in generated.by, it counts as "human-reviewed". It compares stale_after as a string, so an unreadable value like never counts as fresh. With the documented call ./scripts/validate.sh ./my-bundle/, with a trailing slash, according to the code it reports a root index.md with okf_version as an error, in other words exactly the file v0.3 recommends. The skill itself hasn't been updated to v0.3, points to the deprecated Google repository and, when validating, offers to install the PyPI package okflint. The instructions on okf.md also mention a skills array in .claude/settings.json, which Claude Code doesn't document. According to its docs (opens in a new tab), Claude Code finds skills under ~/.claude/skills/ or .claude/skills/ in the project.
The tool catalogue
The catalogue under /tools/ calls itself "An honest inventory of what exists today (Oct 2026)". All the linked GitHub repositories exist, but many versions lag behind: at the end of November 2026, okflint is listed there at 0.5.0, although 0.5.1 has been out since 23 October, and okf-schema at 0.12.0 instead of 0.17.0 from 30 October. Several projects haven't had a commit since June or July, one linked project home page returns a 404, and a WordPress plugin is listed as "Ready" but so far is only distributed as a ZIP file from its author's site; according to okf.md, its inclusion in the plugin directory is still pending. The ratings on the ecosystem map are the operator's scores without a published formula. And one section still claims "No official skill published", although the official repository ships two skills. Take the catalogue as a starting point and check every version at the source before you install anything.
A Markdown site without Markdown
A small irony to finish: okf.md promotes a Markdown format for humans and AI agents, yet serves no Markdown itself. There are no .md twins, a request with Accept: text/markdown gets HTML, and the site doesn't publish a bundle of its own, even though its FAQ names .well-known/okf as a convention that "some teams are adopting". The llms.txt exists, but its links point to HTML pages. On top of that, the site offers agents in the browser tools via WebMCP, an interface through which web pages provide functions for AI agents. The comparison with JPKCom DB isn't entirely fair, because okf.md is a guide for humans and my knowledge base was designed precisely for machine-readable output. But it shows that it's no rocket science. How the Markdown layer works here is in Redesign by AI, and why the site runs statically, in Why 11ty.
The neighbours: who reads what?
In a project with AI agents, you quickly run into half a dozen Markdown conventions. Roughly speaking: AGENTS.md says how to work, SKILL.md how a task is done, OKF what is true, and llms.txt where something is.
| Format | Purpose | Unit | Required | Readers |
|---|---|---|---|---|
| OKF v0.3 | Knowledge with provenance, trust, freshness | Bundle, concept | type |
Agents, interfaces, search indexes |
| llms.txt (opens in a new tab) | Entry point into a website for language models | one file per site or subpath | an H1 with the name | Language models |
| AGENTS.md (opens in a new tab) | "a README for agents" | one file per folder | none | Coding agents |
| SKILL.md (opens in a new tab) | reusable procedures | Skill folder | name, description |
Agents with skill support |
| CLAUDE.md (opens in a new tab) | persistent instructions | one file per level | none | Claude Code |
| MCP resources (opens in a new tab) | context data via a protocol | a URI | uri, name |
MCP clients |
| Obsidian properties (opens in a new tab) | note metadata | Note | none | People, plugins |
| Hugo, Eleventy, Jekyll | page metadata | one file | none | the build |
| Dublin Core, schema.org | general description vocabularies | any resource | none or per consumer | Libraries, search engines |
Three points of contact matter in practice. According to its docs (opens in a new tab), Hugo reserves type: there the key determines the content type and therefore which layout Hugo looks for. An OKF type: Metric thus turns a page in Hugo into the content type metric: Hugo then looks for layouts for that type first, and lists that filter by .Type no longer find the page. Eleventy, Jekyll and Grav, by contrast, don't reserve type. Obsidian doesn't show nested properties in its interface; you only edit generated, verified and sources there in the source. For Dublin Core there are obvious equivalents, such as type to dc:type, superseded_by to dcterms:isReplacedBy and license to dcterms:license. OKF deliberately stays smaller and does without RDF.
The okf.md FAQ places llms.txt, schema.org and OKF like this: "They stack, they don't compete." I see it the same way, with one caveat: the specification doesn't mention llms.txt at all; the connection is a community recommendation. What belongs in such files content-wise is described in Writing for AI.
How usable is OKF today?
The official skills and validate.py
The official repository ships two skills, okf-generate for writing and okf-consume for reading, both Apache-2.0. In Claude Code, according to the README, you install them as a plugin. For Codex CLI and the Antigravity CLI, the README gives its own commands, and for Gemini CLI the blog post on v0.3 does:
/plugin marketplace add open-knowledge-format/open-knowledge-format
/plugin install okf@open-knowledge-formatRead a skill before installing it, like any other package. okf-generate contains rules I'd give to every agent that writes knowledge: "Write only what a source supports. Do not invent columns, partitions, URLs, owners, numbers, policies, or review dates." And: "Do not add a verified entry to content that you generated in this run." So an agent doesn't confirm what it has just written itself, and it must not derive identifiers for people from login names or the Git configuration.
The same skill contains scripts/validate.py, according to its header a validator for "an OKF v0.3 bundle for conformance and field shape". It needs PyYAML, knows --json and --strict and reports errors such as duplicate keys, frontmatter in a sub-index.md or wrong log headings, plus a long list of warnings. That's the closest thing to a reference validator, albeit as part of a skill rather than as a package of its own. Alongside it there's a reference agent for BigQuery and a viewer that loads its libraries from a CDN and doesn't escape </script> in embedded JSON. This is reported in an open issue in the deprecated repository (opens in a new tab), and the code in the new repository has the same spot. A JSON Schema for the frontmatter is still missing.
Reading via MCP and in Knowledge Catalog
You reach agents without file access via MCP, the Model Context Protocol. The generic route is the filesystem server (opens in a new tab) from the reference repository, which with --read-only only offers reading tools such as read_text_file and search_files. For third-party bundles, that's in my view the safest general-purpose access. OKF-specific MCP servers come from third parties, but be careful with the names: on npm the server is called @mfdaves/okf-mcp, on PyPI there's an okf-mcp by a different author, and the unscoped npm package okf-mcp was withdrawn in July, so the name can be claimed again. How to secure packages from npm is covered in Working Securely with Node.js and npm.
Google's own route is the connector for Knowledge Catalog, and its section on limitations is remarkably open. "Seven frontmatter keys are carried": title, description, tags, resource, type, generated and sources. verified, status, stale_after, superseded_by and all x- keys are lost out of the box, in other words exactly the fields that make OKF special. If you want to carry over more, according to the docs you have to extend the connector's schema and its code. Cross-references aren't resolved, there's no per-entry permission management, and "Scale is untested beyond the 14-file demo". For me, that's the clearest sign of how early the format is in the product.
Who already uses OKF
Google's blog posts name no users outside Google. On GitHub, a few projects state OKF as their basis, such as a Git-based agent memory (okf-agent-memory) or an architecture map as a bundle (groma.md), and according to the LangChain blog (opens in a new tab), OpenWiki has been able to handle OKF since 0.2. Most of these projects still cite v0.2. There are no reliable figures on adoption. My interim verdict: the format is clear, the official skills are usable, everything else is young. If you use OKF today, you're mainly betting on the files themselves.
In practice: letting agents read a bundle
You don't need a server. An agent with file access, such as Claude Code, reads a bundle with its normal tools for reading and searching. The okf.md FAQ puts it briefly: "You wire the agent to consult them." One line in your project's CLAUDE.md or AGENTS.md is enough:
Knowledge lives in `knowledge/` (OKF v0.3). Start at `knowledge/index.md`,
read only the concepts you need, and report each concept's trust tier.Don't include the bundle via an @ import. According to the Claude Code docs, imports load in full and undermine the step-by-step reading that index.md is meant for. The skill okf-consume describes the recommended approach: read the root index.md, "Do not read the whole bundle at once", search in a targeted way, grep for contradicting concepts and state the trust tier, status and staleness for every concept used. I find this last instruction the most valuable, because it makes visible what an answer is based on. For larger collections, Karpathy's assessment helps: the index approach works "surprisingly well at moderate scale (~100 sources, ~hundreds of pages)". Beyond that, you need a search.
In practice: a small validator for your bundle
The code
For validate.py you need Python and PyYAML. For a quick check before every commit, less will do. The following validator uses only built-in modules of Node.js from version 24 and follows the logic of v0.3: files without type produce warnings instead of errors, it checks reserved files against their own rules, and it skips dot folders.
#!/usr/bin/env node
// okf-check.mjs - small OKF v0.3 bundle check (Node >= 24, built-ins only).
// Usage: node okf-check.mjs <bundle-root> [--strict]
// Not a YAML parser: it reads top-level keys line by line. For a release,
// run the official validate.py from the okf-generate skill as well.
import { readdir, readFile, access } from 'node:fs/promises';
import { join, dirname, relative, basename, sep, resolve } from 'node:path';
const args = process.argv.slice(2);
const strict = args.includes('--strict');
const root = resolve(args.find((a) => !a.startsWith('--')) ?? '.');
let errors = 0, warnings = 0, concepts = 0;
function report(level, file, msg) {
if (level === 'ERROR') errors++; else warnings++;
console.log(`${level} ${relative(root, file)}: ${msg}`);
}
// Frontmatter lines (null = none, undefined = not closed) and body (§4).
function split(text) {
const lines = text.replace(/^\uFEFF/, '').split(/\r?\n/);
if (lines[0] !== '---') return { fm: null, body: lines };
const end = lines.indexOf('---', 1);
if (end === -1) return { fm: undefined, body: [] };
return { fm: lines.slice(1, end), body: lines.slice(end + 1) };
}
// Top-level keys only: no indentation, a space after the colon.
// Null, ~ and [] count as absent (§11.2), so they become ''.
function topKeys(fm) {
const keys = new Map(), dups = [];
for (const line of fm) {
const m = /^(["']?)([A-Za-z_][\w-]*)\1:(?:[ \t]+(.*))?$/.exec(line);
if (!m) continue;
if (keys.has(m[2])) dups.push(m[2]);
const raw = (m[3] ?? '').replace(/(^|\s)#.*$/, '').trim();
const value = /^(~|null|Null|NULL|\[\s*\])$/.test(raw) ? '' : raw;
keys.set(m[2], value.replace(/^(['"])(.*)\1$/, '$2').trim());
}
return { keys, dups };
}
// Body lines outside fenced code blocks.
function prose(body) {
let fence = false;
return body.filter((line) => {
if (/^\s*(```|~~~)/.test(line)) { fence = !fence; return false; }
return !fence;
});
}
// §6: scheme = external URL, leading / = bundle root, else the file's dir.
function target(file, value) {
if (/^[a-z][a-z0-9+.-]*:/i.test(value) || value.startsWith('#')) return null;
let path;
try { path = decodeURIComponent(value.split('#')[0]); } catch {
report('WARN', file, `link ${value} is not a valid URI reference (§6)`);
return null;
}
const abs = path.startsWith('/') ? join(root, path) : join(dirname(file), path);
return relative(root, abs).startsWith('..') ? null : abs;
}
async function missing(abs) {
try { await access(abs); return false; } catch { return true; }
}
async function checkLinks(file, body) {
for (const raw of prose(body)) {
const line = raw.replace(/`[^`]*`/g, '');
if (/\[\[[^\]]+\]\]/.test(line)) report('WARN', file, 'wikilinks are not links in OKF (§6.1)');
for (const [, value] of line.matchAll(/\]\(([^)\s]+)(?:\s+(?:"[^"]*"|'[^']*'))?\)/g)) {
const abs = target(file, value);
if (abs && await missing(abs)) report('WARN', file, `broken link ${value} (allowed, §6.1)`);
}
}
}
const entries = await readdir(root, { recursive: true, withFileTypes: true });
const files = entries
.filter((e) => e.isFile() && e.name.endsWith('.md'))
.map((e) => join(e.parentPath, e.name))
.filter((p) => !relative(root, p).split(sep).some((part) => part.startsWith('.')))
.sort();
for (const file of files) {
const name = basename(file);
const { fm, body } = split(await readFile(file, 'utf8'));
if (fm === undefined) { report('ERROR', file, 'frontmatter is not closed with ---'); continue; }
const { keys, dups } = fm ? topKeys(fm) : { keys: new Map(), dups: [] };
for (const k of dups) report('ERROR', file, `duplicate key ${k} (§4)`);
if (name === 'index.md') {
const atRoot = dirname(file) === root;
if (fm && !atRoot) report('ERROR', file, 'index.md in a subdirectory has no frontmatter (§8)');
if (atRoot && !keys.get('okf_version')) report('WARN', file, 'no okf_version in the bundle-root index.md (§8.1)');
} else if (name === 'log.md') {
if (fm) report('ERROR', file, 'log.md has no frontmatter (§9)');
const dates = prose(body).filter((l) => l.startsWith('## ')).map((l) => l.slice(3).trim());
for (const d of dates) {
if (!/^\d{4}-\d{2}-\d{2}$/.test(d)) report('ERROR', file, `date heading "${d}" is not YYYY-MM-DD (§9)`);
}
if (dates.some((d, i) => i > 0 && d > dates[i - 1])) report('WARN', file, 'newest date must come first (§9)');
} else if (!keys.get('type')) {
report('WARN', file, 'not a concept: no frontmatter or empty type, skipped (§3.2)');
continue;
} else {
concepts++;
const next = keys.get('superseded_by');
if (next && keys.get('status') !== 'deprecated') report('WARN', file, 'superseded_by without status: deprecated (§5.4)');
const abs = next && target(file, next);
if (abs && await missing(abs)) report('WARN', file, `superseded_by points to a missing file: ${next}`);
}
await checkLinks(file, body);
}
console.log(`${concepts} concepts, ${errors} error(s), ${warnings} warning(s) (${files.length} .md files)`);
process.exitCode = errors || (strict && warnings) ? 1 : 0;The validator only reports errors where the specification requires something: unclosed frontmatter, duplicate keys, frontmatter in a sub-index.md or in log.md, wrong date headings. What v0.3 allows becomes a warning: files without type, which according to §3.2 a validator should report, plus, as hints, broken links, wikilinks and link targets with broken percent-encoding. A type with null, ~ or [] counts as missing, and the validator skips code blocks and inline code when looking for links and date headings. With --strict, warnings fail too. The limits are deliberate: the validator isn't a YAML parser. It doesn't detect broken YAML, finds duplicate keys only at the top level, doesn't recognise block scalars like type: |, and checks neither timestamps nor actors nor footnotes. That's what validate.py is for.
The output
Against the example bundle from above, it looks like this. The one warning concerns the AGENTS.md, which does exactly what it's supposed to do, namely not be a concept:
$ node okf-check.mjs knowledge
WARN AGENTS.md: not a concept: no frontmatter or empty type, skipped (§3.2)
3 concepts, 0 error(s), 1 warning(s) (8 .md files)
$ echo $?
0For the counter-check there's a broken copy: frontmatter in glossary/index.md, a log heading in the style of Karpathy's gist, an empty type, a duplicate key, a broken link, a wikilink and a superseded_by without status: deprecated:
$ node okf-check.mjs knowledge-broken
WARN AGENTS.md: not a concept: no frontmatter or empty type, skipped (§3.2)
ERROR glossary/index.md: index.md in a subdirectory has no frontmatter (§8)
WARN glossary/markdown-twin.md: not a concept: no frontmatter or empty type, skipped (§3.2)
WARN glossary/md-mirror.md: superseded_by without status: deprecated (§5.4)
WARN glossary/md-mirror.md: wikilinks are not links in OKF (§6.1)
ERROR howtos/markdown-negotiation.md: duplicate key title (§4)
WARN howtos/markdown-negotiation.md: broken link ../glossary/md-twin.md (allowed, §6.1)
ERROR log.md: date heading "[2026-10-06] ingest | Markdown twin" is not YYYY-MM-DD (§9)
2 concepts, 3 error(s), 5 warning(s) (8 .md files)
$ echo $?
1Both outputs come from real runs with Node.js 26, not reconstructed. The validator hasn't been tested under Node 24 itself, but according to the Node docs, the functions it uses already exist there.
In CI
In a pipeline, I'd separate two stages. The small validator runs in every pull request, without dependencies and in a fraction of a second. Before a release, validate.py from the official skill runs as well, with a pinned version of the repository, and a secret scanner in the same job. --strict only fits for either validator if your bundle is meant to contain nothing but concepts. validate.py also reports a README.md or AGENTS.md as a warning and therefore aborts every time with --strict, even though under v0.3 that's not an error. For bundles like the example above, evaluate the warnings selectively via --json instead.
Tips, tricks and pitfalls
Settle on a type vocabulary. Because there's no central list, it gets invented anew in every bundle. The official skill says: "Reuse the type names that the bundle already uses." Record the permitted types in one place, for example in the bundle's AGENTS.md, and decide on one spelling. The specification writes Metric, okf.md howto, and mixed spellings split every filter by type.
Write short descriptions. According to the specification, description is "One sentence", and index entries should repeat it. It says what the concept is about and when it helps, like the description of a skill.
Keep the log in OKF form. Karpathy's gist suggests headings like ## [2026-04-02] ingest | Article Title and grep "^## \[" log.md | tail -5 for the latest entries. In an OKF bundle, a heading like that is an error, and because the newest date is at the top, tail returns the oldest entries. The OKF variant: date in the heading, the action as a bold word in the list item, grep -m5 '^## ' log.md for the most recent days.
Use Git as proof of provenance. Git answers who typed a line, verified who vouches for the content. You need both.
Put timestamps in quotation marks. Consumers have to accept both forms, but many YAML libraries convert unquoted date values into types of their own. With Grav this becomes a real trap; see below.
Maintain your links, even though broken ones are allowed. The fact that consumers have to tolerate broken links doesn't mean you should have them. Check them, and use the stub with superseded_by when renaming.
Plan multilingual bundles deliberately. The specification has no notion of language. The simplest approach is one bundle per language with its own root index.md; an agent then picks the right bundle via the description. For links between translations, use keys with an x- prefix instead of a bare lang.
Sort out the licence. Apache-2.0 applies to the specification, not to your bundles. Your licence belongs in license in the root index.md. Copies of third-party texts, for which the specification suggests the references/ folder, carry the copyright of their source; a reference via sources[].resource is often the better choice.
Keep secrets out. The specification is silent on this; the Knowledge Catalog connector warns: "check what your bundle discloses before pushing". Bundles generated automatically from databases quickly contain table names, internal host names and usage figures, and the Git history forgets nothing.
Treat third-party bundles like third-party code. The specification protects against paths leading out of the bundle, not against instructions in the text. A concept can contain sentences addressed to the reading agent, and the trust tiers are explicitly not access control. Two points make this worse. An AGENTS.md is allowed in a bundle, and agents load the nearest AGENTS.md automatically. So if a third-party bundle sits in your project folder, your agent may receive instructions from its author. And the skill okf-consume instructs the agent, for Attested Computations, to "run the executor exactly as the bundle gives it", in other words to execute code chosen by the bundle's author.
For me, this leads to three rules: include third-party bundles read-only, for example via the MCP filesystem server with --read-only, and outside folders whose instruction files your agent loads automatically. Never run executors and attesters from third-party bundles automatically. And review every change to a third-party bundle like a pull request with code. What an agent instruction in the style of a prompt injection can look like is shown on Slopstrap's /agents page, which I introduced in the article on Slopstrap. There, a "SYSTEM DIRECTIVE FOR AGENTS" is openly visible, in my reading probably not entirely serious. The form, though, is exactly what you need to watch out for in third-party bundles.
Grav as a knowledge base: an idea that fits
Using Grav as a knowledge base and making it available as an OKF bundle seems obvious to me. How Grav works and why I like it is in the article on Grav 2, and how it runs with FrankenPHP in the article on FrankenPHP and Caddy. Here it's only about how well the two worlds fit together. Everything in this section comes from the docs and source code of Grav 2.2 and its plugins (API, Git Sync, Flex Objects and others), plus the Symfony YAML docs and the plugin directories. None of it has been tested in a running installation, the sketches included.
Where Grav and OKF fit together
The basic ingredients are the same: Markdown with a YAML header in folders. The docs on page headers (opens in a new tab) explicitly allow custom keys: "you can create your own custom page headers using any valid YAML syntax". That means type, generated, verified, status, stale_after and x- keys fit into any page, and in Twig you reach them via page.header, keys with a hyphen such as x-kb-owner via attribute(page.header, 'x-kb-owner'). Git Sync synchronises the pages folder with a Git repository and, according to the source, also reacts to saves via the API, in other words to changes made by agents. There's no OKF plugin for Grav in the plugin directory. The official WordPress directory, by contrast, already lists several plugins that output a site as an OKF bundle, some of them under /okf/.
The core conflict: one file per folder
In Grav, a page is a folder, and the file name selects the template; according to the docs (opens in a new tab): "the name of the file directly references the name of the theme's template file". OKF, on the other hand, allows any number of concepts in one folder. What happens if you simply copy a bundle into user/pages/ is shown by the source of Pages::recurse(): of all the Markdown files in a folder, Grav takes exactly one as the page; if there are several, the first one listed wins. tables/index.md, tables/orders.md and tables/customers.md become a single page /tables with the template index, orders or customers, depending on the order. The other files are neither page nor media.
On top of that come smaller frictions: OKF reserves index.md, Grav folders carry numbers for sorting (01.server), and translations such as docs.de.md and docs.en.md would be two unconnected concepts in OKF.
type doesn't collide, but means something else
Technically, an OKF type doesn't bother Grav. According to the source, neither the core nor the API plugin, Flex Objects, Git Sync, Sitemap, Admin 2 or Quark 2 reads a type header; other plugins haven't been checked. But the word is taken: in collections, content.filter.type filters by template. The filter sits under content: and doesn't get in the way of a type at the top of the header, but you should still make it clear in your team: OKF type is not Grav page type.
The timestamp trap
In its default setting, Grav reads the header with Symfony YAML without additional options, and according to the Symfony docs (opens in a new tab), the parser then converts unquoted date values into Unix timestamps. An at: 2026-10-05T10:00:00Z without quotation marks is therefore a number in PHP. If Grav saves the page via Admin 2 or the API, according to the source it rewrites the complete header, and the timestamp would become an integer. That hasn't been tested, but the remedy is cheap: always quote timestamps in Grav pages. The good news is that a PATCH via the API plugin merges the header by default instead of replacing it. Unknown keys therefore survive, as OKF requires.
Four routes
Route A: Grav as the editor, an export produces the bundle. You write in Grav as usual and add the OKF fields to the header. A script or plugin reads user/pages/ or the API with a read-only key and writes one bundle per language:
user/pages/
└── 02.kb/
├── chapter.md
└── 01.server/
├── chapter.md
├── 01.caddy-basics/
│ ├── docs.md
│ ├── docs.de.md
│ └── diagram.svg
└── 02.php-runtime/
└── docs.md---
title: Caddy basics
type: Howto # OKF; Grav core ignores it
metadata:
description: Install Caddy and run it as a reverse proxy.
taxonomy:
tag: [caddy, webserver]
sources: [{ id: caddy-docs, resource: https://caddyserver.com/docs/ }]
generated: { by: "human:<your-id>", at: "2026-10-05T10:00:00Z" } # quoted
status: stable
x-kb-owner: ops
---kb-okf-en/
├── index.md # okf_version "0.3", title, description, license
├── log.md
└── server/
├── index.md # no frontmatter: "* [Caddy basics](caddy-basics.md) - …"
├── caddy-basics.md
├── caddy-basics/diagram.svg
└── php-runtime.mdThe export removes the numbers, turns metadata.description into description and taxonomy.tag into tags, and keeps the remaining keys. It rewrites image paths, because in OKF  starts from the folder of the concept file. It renders or removes shortcodes and Twig in the content. The prose of the chapter.md pages moves into a concept of its own or is dropped, and at the end the export generates an index.md for each folder with concepts and runs a validator. Nothing changes in Grav itself.
Route B: the bundle as the source, Grav renders it. This fails because of the "one page file per folder" rule. Conceivable options would be a custom plugin that builds pages from files, or a Flex type over a flat folder of Markdown files; for nested bundles, both are unverified.
Route C: Grav serves concepts as Markdown. For the Markdown output, Grav renders a page to HTML and converts it back. The frontmatter contains title, url, markdown, with multilingual sites lang, plus date, description and taxonomy, but no type. Out of the box, a Grav response is therefore not an OKF concept. A custom template in the theme can change that:
{%- autoescape false -%}
---
type: {{ (page.header.type ?? 'Reference')|json_encode }}
title: {{ page.title|json_encode }}
description: {{ (page.header.metadata.description ?? '')|json_encode }}
tags: {{ (page.taxonomy.tag ?? [])|json_encode }}
generated: {{ (page.header.generated ?? null)|json_encode }}
verified: {{ (page.header.verified ?? null)|json_encode }}
status: {{ (page.header.status ?? null)|json_encode }}
stale_after: {{ (page.header.stale_after ?? null)|json_encode }}
x-grav-url: {{ page.canonical|json_encode }}
---
{{ markdown_body(page) }}
{{ markdown_links(page) }}
{%- endautoescape -%}According to the source, markdown_body() and markdown_links() are registered Twig functions. markdown_output() brings its own frontmatter, which would put two blocks in the response. The limits of this route: it's HTTP and not a bundle, in Grav /index.md is the home page and not an OKF listing, and links become absolute URLs by default, which from an OKF point of view are external links without edges in the graph. For agents that are meant to read a running site, it's still a low-effort route.
Route D: agents edit the knowledge base via grav-mcp. From the agent, it goes via the MCP server grav-mcp to the API, into user/pages/ and optionally via Git Sync into a commit. Because the API merges the header, type, generated, verified and x- keys survive. What stays risky are unquoted timestamps and an agent that rewrites content without updating generated, because then the trust tier is no longer correct. This only works if the agent or a hook sets generated: { by: <agent>/<version>, at: … } on every change. The security rules from the Grav article apply unchanged, above all a dedicated user with few permissions and grav-mcp only via stdio. They're in the section How I'd set up an agent.
What I consider realistic
I consider route A the most robust route to a real bundle you can pass on. Route C is the low-effort route to readable concepts on a running site, route D the working loop with agents on top of A or C, and route B fights against Grav's folder model. A plugin that, like some WordPress plugins, offers a Grav site under /okf/ as a bundle with generated index.md files doesn't exist yet. If you write Grav plugins: there's a gap here.
And JPKCom DB?
How far is my own knowledge base from an OKF bundle? A sober comparison with the JPKCom DB repository:
| Feature | JPKCom DB | OKF v0.3 |
|---|---|---|
title, description, tags |
title and description in every source file, tags in every article (not in the overview pages) |
optional core keys, fits |
type |
not present; kind (article, area, category) controls structure and JSON-LD type, but isn't a knowledge type |
mandatory for concepts |
| Markdown twins | without frontmatter, with # Title, > Description and Source: |
concepts need frontmatter with type |
| Overview pages | index.md with frontmatter and text |
index.md in subfolders without frontmatter |
| Links in Markdown | absolute URLs | relative or from the bundle root |
| Chronicle | only the Git history (the changelog area documents versions of the JPKCom projects, not changes to the DB) | log.md |
| Entry point | llms.txt |
root index.md with okf_version |
| Languages | two, as a directory split | no notion of language |
Quite a lot fits surprisingly well. The three most important optional keys are there in the articles, all other frontmatter keys would be legal extensions in OKF, and the Markdown twins of the overview pages already append a list of their subpages with descriptions, very close to an OKF index. For the JPKCom DB blog folder, the validator from above reports "not a concept" for every article: conformant, but without a single concept. For the cheat sheets folder it reports errors, because every category overview is an index.md with frontmatter.
If you run a site built in a similar way, you could generate a bundle without touching the sources: with a generator of your own that writes one folder per language, with frontmatter including a type derived from the area (such as Cheat Sheet or Blog Post), relative links, an index.md per folder and a root index.md with okf_version. The prose of the overview pages would have to move into a concept of its own, because an OKF index.md is just a listing.
Who OKF suits and who it doesn't
In my view, OKF is a good fit when agents not only read knowledge but also write and maintain it, when you want to trace where a statement comes from and who checked it, and when the knowledge lives in Git and Markdown anyway. For data teams with metrics, Attested Computations make it even more interesting. And even if you never run a validator, the rules on verified and stale_after are a good discipline.
It fits less well if you need stable tools with long-term support, because until 1.0 any version may break. If your knowledge lives in Obsidian with wikilinks, you have to convert the links, or the graph stays empty. And if you want to prepare a public website for search engines and language models, llms.txt, structured data and clean Markdown twins are the more direct route. OKF is meant for bodies of knowledge that are passed on as a whole.
FAQ
Is okf.md the official site of the Open Knowledge Format?
No. okf.md is an independent community guide, not from Google and not connected to the open-knowledge-format organisation. The authoritative text is the SPEC.md in the repository open-knowledge-format/open-knowledge-format, currently at version 0.3.
Which fields are mandatory in OKF?
Only type, with a non-empty value. A concept that has only type is fully conformant. All other fields, including those for provenance, trust and lifecycle, are optional.
May an OKF bundle contain a README.md or AGENTS.md?
Yes. Since v0.3, a Markdown file without frontmatter or without type is simply not a concept. Consumers skip it, the bundle stays conformant, and validators should only warn.
What's the difference between generated and verified?
generated says who wrote the current content and when, verified lists who checked it. Only reviews that aren't older than generated.at count; if generated is missing, all of them count. If an agent rewrites a reviewed text, the concept loses the "human-reviewed" tier until a human confirms it again.
How do I check whether an OKF bundle is conformant?
With validate.py from the official skill okf-generate, which needs Python and PyYAML, or for quick checks with a small script like the Node validator in this article. The validator announced on okf.md isn't available yet at the end of November 2026 and, according to the announcement, is meant to check against the stricter rules of v0.1 and v0.2.
Do Obsidian wikilinks work in OKF?
No. Only normal Markdown links of the form [text](target) and reference links count as links; according to the specification, [[wikilinks]] don't.
Does OKF have anything to do with the Open Knowledge Foundation?
No. The Open Knowledge Foundation is an organisation for open knowledge founded in 2004, the Open Knowledge Format a specification by Google from 2026. Only the abbreviation is the same.
Can I use Grav pages directly as an OKF bundle?
Not directly. Grav processes only one page file per folder and language, and the file name determines the template, whereas OKF allows many concepts per folder and reserves index.md. What's realistic is Grav as an editor with an export, or an adapted Markdown output via a .md.twig template.
Conclusion
At its core, the Open Knowledge Format is unspectacular, and that's exactly what I like about it: a folder, Markdown, YAML, one mandatory field. What lifts it above an arbitrary Markdown wiki is the trust layer. Provenance via sources and footnotes, reviews that automatically lapse after an agent changes the content, redirects via superseded_by and a review date nobody is supposed to invent. I'd adopt these rules in any knowledge base that AI agents help maintain, whether it's called OKF or not.
The weaknesses are just as clear. The format is young, every version until 1.0 may break, control effectively lies with Google, and the ecosystem lags behind; even Google's own catalogue only carries over seven keys out of the box. If you get started, take the SPEC.md in the new repository as the reference, the official skills as the tools and okf.md as a map whose routes you check yourself. And if, like me, you like Grav: as an editor for a knowledge base that can be exported as an OKF bundle, it's a good fit. Just don't mistake the pages folder itself for a bundle.
For this article, AI supported me with creation, correction and verification. The direction and the editorial responsibility are mine. There's more on that on the AI transparency page.
Sources
- Open Knowledge Format, specification v0.3 (opens in a new tab): the authoritative text, Apache-2.0
- Repository open-knowledge-format/open-knowledge-format (opens in a new tab): README, skills
okf-generateandokf-consume,validate.py, connector for Knowledge Catalog - GoogleCloudPlatform/open-knowledge-format (opens in a new tab): deprecated repository with v0.2, which also hosts the issue on the viewer (opens in a new tab)
- Pull request #7: Remove the Ossie use case for now (opens in a new tab): the removal of
usecases/ - Google Cloud: Introducing the Open Knowledge Format (opens in a new tab), 12 June 2026
- Google Cloud: Open Knowledge format v0.2 tackles agentic trust (opens in a new tab), 24 July 2026
- Google Cloud: What's new in OKF v0.3 (opens in a new tab), 19 November 2026
- Andrej Karpathy: LLM Wiki (opens in a new tab), 4 April 2026
- heise/iX: Open Knowledge Format: KI-Wissen als Markdown-Dateien (opens in a new tab) (German), 15 June 2026
- Wikipedia: Open Knowledge Foundation (opens in a new tab)
- okf.md (opens in a new tab), plus the subpages Spec (opens in a new tab), Quickstart (opens in a new tab), Examples (opens in a new tab), Tools (opens in a new tab), FAQ (opens in a new tab), Validator (opens in a new tab), Skill (opens in a new tab), Privacy (opens in a new tab) and Terms (opens in a new tab)
- fabricioctelles/skills (opens in a new tab): the okf.md skill with
validate.sh - MCP filesystem server (opens in a new tab)
- Grav docs: Content Pages (opens in a new tab), Headers (opens in a new tab), Collections (opens in a new tab) and Multi-Language (opens in a new tab)
- WordPress plugin directory: search for OKF (opens in a new tab)
- Symfony YAML: Date Handling (opens in a new tab)
- Hugo: Front matter (opens in a new tab)
Before publication, the German original of this article went through an adversarial factual review: four reviewers checked 300 passages with the goal of refuting them and reported 59 findings, some of them more than once. 58 of them went into the text, most as clarifications. Among them were a CI recommendation that would have failed on this article's example bundle, because validate.py --strict also counts an AGENTS.md as a warning, and a crash of the small validator on a link target with a single percent sign. Two more reviewers then checked this English version against the original and for language.
Further reading
How Grav 2 offers Markdown and MCP to agents is in the article on Grav 2, and how Grav runs with FrankenPHP in the article on FrankenPHP and Caddy. Why JPKCom DB deliberately looks AI-made and how its Markdown layer works is explained in Redesign by AI, and why it runs statically in Why 11ty. What belongs in Markdown for AI systems is described in Writing for AI, and how claims are checked before publication in Who Checks the Checker?. Another file format from Google for AI agents, this time for design systems, is introduced in DESIGN.md, and the ironic take on AI design comes from the article on Slopstrap.