Knowledge Context Protocol (KCP)¶
The Knowledge Context Protocol (KCP) is an open standard that makes a body of knowledge navigable and trustworthy for AI agents. It is a YAML file format — passive data, not executable config — that describes the knowledge units in a project: their topology (depends_on, supersedes), their intent (what question each unit answers), their freshness (validated dates), their audience, and the trust evidence behind them. An agent can traverse a KCP manifest to find exactly what it needs without loading everything into its context window first.
If Model Context Protocol (MCP) is how an agent calls tools, KCP is how an agent finds and trusts knowledge. The two compose: KCP provides structure, MCP provides retrieval.
I have been designing KCP in the open since January 2026. This page is the map; the posts below are the territory.
At a glance
v0.24 · twenty-four versions in six months (v0.1 shipped January 10, 2026) · six layers — discovery, meaning, trust, time, identity, federation · reference agent shipping on npm · published under Cantara and submitted to the Agentic AI Foundation (Linux Foundation).
Why not just llms.txt?¶
llms.txt gives an agent a table of contents — a flat list of files. That is a real improvement over nothing, but a table of contents cannot express topology (what depends on what), freshness (is this still true?), intent (what question does this answer?), audience (who is this for?), or trust (who signed it, and can I verify that?). Agents need maps, not tables of contents.
KCP is that map. It started as a fix for a specific, embarrassing failure — a 33-tool-call bug where an agent kept rediscovering the same context — and grew, one falsifiable release at a time, into a full protocol for the agentic web.
- Start here: Beyond llms.txt: AI Agents Need Maps, Not Tables of Contents
- The origin story: Down the Rabbit Hole: How a 33-Tool-Call Bug Became a Knowledge Standard
- KCP and MCP together: One Protocol for Structure, One for Retrieval
Does it actually work?¶
KCP is an engineering claim, so it ships with numbers. Manifests measurably cut how much an agent has to read and how often it has to guess.
| Evidence | Result |
|---|---|
| KCP on Two Repos, Two Days | 119 → 31 tool calls on application code; 53 → 25 on documentation. A 53–74% reduction in agent work. |
| KCP on Three Agent Frameworks | Same pattern holds across Claude Code, CrewAI, and others — the gain is in the data, not the harness. |
| We Cancelled a 45-Minute Architecture Review | "What else breaks if we change this API contract?" — a meeting, replaced by a 1.2-second query. |
The protocol, layer by layer¶
Every layer has one job. Read the tour, or the release that built each one.
- Discovery — an agent starts from a domain and finds the manifest: Pre-Invocation Discovery (v0.10)
- Meaning & query — a standard vocabulary for asking: Every Agent That Queries a Manifest Reinvents Filtering
- Trust — self-describing, verifiable knowledge: Beyond RAG: Trustworthy, Self-Describing Knowledge (v0.16–0.17) · Unit Integrity & Origin Evidence (v0.18)
- Time — stale knowledge is worse than none: Closing the Temporal Gap (v0.19–0.20)
- Identity & federation — the enterprise front door: One Agent's Journey Through the Whole Protocol (v0.24) · The Agentic Web Has No Login Page
- Economics — paying for knowledge across process boundaries: Selling News to Robots
Why passive data matters: a manifest an agent reads cannot inject instructions the way config an agent executes can. That single design decision is what makes KCP defensible — see Why KCP Is Passive Data, Not Executable Config.
The tooling¶
KCP is a spec, but it ships with working implementations you can install today.
- kcp-agent — the reference agent. Determinism at the core, the model at the edge: The Vibes-Based Agent Era Deserves to End · The Borrowed Leash: Determinism as a Service
- kcp-commands — a Claude Code hook that saves ~33% of the context window: kcp-commands
- kcp-memory — episodic memory for Claude Code: Give Claude Code a Memory
- kcp-dashboard — observability for the ecosystem: kcp-dashboard
- Editor & enterprise reach: GitHub Copilot Gets KCP · KCP Comes to OpenCode
- The whole picture: The KCP Ecosystem: Five Tools
Governance & compliance¶
Because KCP carries trust and provenance, it turns regulation into something an agent can actually read.
- From Policy to Practice: Machine-Readable Regulations for AI Agents
- From Capable to Trustworthy: How KCP Evolved from Discovery to Governance
- The Front Door and the Filing Cabinet: A2A Agent Cards Meet KCP
Reading guide¶
- I have five minutes → Beyond llms.txt
- I want the numbers → KCP on Two Repos, Two Days
- I want the full protocol → One Agent's Journey Through the Whole Protocol
- I want to build on it → the spec and RFCs on GitHub
- I want the six-month retrospective → Six Months Down the Rabbit Hole
Links¶
- Specification & RFCs: github.com/Cantara/knowledge-context-protocol
- All KCP posts: Knowledge Context Protocol category
- The wider body of work: Knowledge Infrastructure
KCP is developed in the open and still evolving. The blog has the latest releases; this page has the map.