Every concern in its own layer: machine/ for AI-ready assets, okf/ for OKF compatibility, human/ for docs, evidence/ for provenance, skills/ for SKILL.md skill files, and l10n/ for localization.
Knowledge your agents can actually trust.
DKP is an open standard for packaging curated domain knowledge into validated, structured bundles - so both Human and AI agents stop hallucinating and start knowing, while human agents can explore knowledge in various ways.
AI agents are only as good as their knowledge.
Most knowledge fed to AI today is unstructured - raw documents, loose notes, ad-hoc context dumps. The result: hallucinations, missed facts, and outputs no one can trust or audit.
Without DKP
- Unstructured blobs with no schema or versioning
- No provenance - where did this come from?
- Unknown quality, no way to measure improvement
- No built-in eval sets to catch hallucinations
- Every team reinvents the same ingestion pipeline
With DKP
- Validated 6-layer bundle with machine-readable schema
- Full provenance chain - sources, rights, editorial sign-off
- 8-gate quality certification with deterministic checks
- Built-in eval sets with measurable quality delta
- One standard format any MCP client or RAG pipeline loads
From raw knowledge to trusted AI context - in three steps.
-
Run
dkp init @my-organization/my-pack --domain <category>to scaffold the complete 6-layer bundle structure. Every required file is generated from validated templates - schema-correct from day one. Or rundkp newto go further: it scaffolds the bundle and then uses an LLM to generate the machine and human layers, export the OKF layer, validate, and package - all in one command. -
Run
dkp validateto pass all 8 quality gates automatically. Thendkp evalruns your built-in test suite and reports a measurable quality delta. If eval cases fail,dkp fixrewrites the failing retrieval chunks - grounded on the failure reasons - and regenerates the eval set against the fresh corpus. -
Run
dkp build && dkp sign && dkp publishto produce a cryptographically signed, checksummed archive consumable by any MCP client, RAG pipeline, or LLM application.
Everything a production knowledge pipeline needs.
DKP handles the structure, quality, and delivery layers so you can focus on the knowledge itself.
Three certification tiers - Conformant, Evaluated, and Reviewed - with deterministic automated checks and optional human editorial attestation backed by dated sign-off in evidence/review_notes.md.
Typed edges between concepts - requires, contradicts, elaborates, supersedes, depends-on - enable GraphRAG-style multi-hop retrieval that chunks alone can't achieve.
Ship Q&A test cases inside the bundle. dkp eval runs them against any model and returns a quality delta - a measurable, reproducible score that travels with the pack.
SHA-256 checksums on every file, bundle-level Ed25519 signing, and a manifest-level SBOM. Processors verify signatures against the publisher's PGP fingerprint before loading.
Any DKP bundle exposes standard Model Context Protocol resources and tools - inject, search, chunk, get - so any MCP-compatible agent can mount it with zero custom integration.
Tag content for named audience profiles - consumer vs. clinician, analyst vs. executive. The --audience flag filters every output layer so each agent or reader sees only the content meant for them.
Bundle executable logic alongside declarative knowledge in machine/procedures/. Agents invoke sandboxed WASM/WASI modules for deterministic computation - no external calls, no side effects.
DKP is a strict superset of the Open Knowledge Format - every bundle contains a fully conformant OKF bundle in its okf/ layer. Any OKF-native agent framework can load and traverse that layer without modification, and without any lock-in to DKP tooling.
Every layer has a job. Nothing is mixed.
A DKP bundle is a directory (or a compressed archive) with a strict layout that every producer writes and every processor reads the same way.
Seven asset types in machine/
- DomainTerm Glossary entry with aliases and relationships
- DomainRule Operational must-do / must-avoid statement
- Constraint Edge case, anti-pattern, or hard limit
- DecisionProcedure Traversable decision tree in JSON
- KnowledgeChunk Self-contained fact optimized for RAG
- EntityType Domain entity with typed attributes
- EvalCase Q&A pair for measuring pack quality
Three tiers. Eight gates. No ambiguity.
The 8-gate quality standard defines exactly what "good" means for a DKP bundle - with automated structural checks and optional human editorial attestation.
The baseline. Your bundle passes structural validation and is ready for machine consumption.
- Schema-valid JSON/JSONL assets
- All required layers present
- Manifest complete and parseable
- Knowledge graph references resolve
- OKF concept frontmatter valid
- Checksums verified
dkp validateConformant plus a measurable quality delta. Your bundle ships with proof it actually helps.
- All Conformant gates pass
- Eval set present in
machine/ - Quality delta > configured threshold
- Retrieval chunks tested
- No hallucination markers
- Eval report saved to
evidence/
dkp validate && dkp evalThe gold standard. Every gate passed, every claim traced, every layer reviewed and attested.
- All Evaluated gates pass
- Relevance and originality verified
- Human usability confirmed
- Cross-layer consistency checked
- Dated editorial sign-off
- Ed25519 bundle signature applied
dkp release-checkOne tool. The entire lifecycle.
The dkp CLI covers everything from scaffolding your first bundle to signing and publishing to a registry - the full knowledge engineering workflow.
Authoring
Inspection
Validation & Eval
Build & Sign
Registry
Serve & Explore
Four ways to get inside a bundle.
Whether you want a quick terminal view, a browser UI, or an LLM conversation grounded on the pack, dkp has a mode for it.
dkp tuiTerminal UI
A full-screen terminal explorer with five panels - Assets, Search, Chunks, Eval, and MCP - so you can inspect every layer of a bundle without leaving your shell.
dkp tui ./my-packdkp webuiBrowser UI
Spins up a local web server and opens a browser SPA with full-text search, asset browsing, and an interactive knowledge graph visualizer - no install beyond the CLI.
dkp webui ./my-packdkp promptGrounded Chat
Ask questions against a bundle in single-shot or interactive REPL mode. The pack's system prompt, glossary, and retrieval chunks are injected as context - answers are grounded on the pack, not on general model knowledge.
dkp prompt ./my-pack "What are the key rules?"dkp serveMCP Server
Mount a bundle as a live MCP server over stdio or HTTP. Exposes inject, search, chunk, and get as standard MCP tools so any MCP-compatible agent or IDE can query the pack directly. When the bundle includes WASM procedures, list_procedures and run_procedure are exposed as additional tools - letting agents invoke sandboxed deterministic logic that ships inside the pack alongside the knowledge it operates on.
dkp serve ./my-pack --transport httpBuilt for every role in the knowledge pipeline.
Package your expertise for AI.
You've spent years building domain knowledge. DKP gives you a structured authoring format with validation, versioning, and quality certification - so your expertise survives hand-off to AI systems and remains traceable, auditable, and updateable over time.
Skip the preprocessing. Start with structure.
Building a RAG pipeline or LLM app? Mount a DKP bundle via MCP and get structured, validated, citable knowledge with zero ingestion work. Retrieval chunks, system prompts, and eval sets are already formatted for your pipeline.
Deploy AI with audit trails and access control.
Deploying AI at scale means provenance, compliance, and security. DKP's signed bundles, SBOM-style manifest, audience scoping, and access control fields give your security and legal teams exactly what they need for sign-off.
Ready to structure your knowledge?
Read the specification, install the CLI, or explore - everything you need to start packaging knowledge that AI agents actually trust.