Knolo
OfficialKnolo
Knolo is the open framework AI agents use to share knowledge with one another: pack it into a portable Knowledge Image, pin it by digest, mount it locally, and prove what was used.
One agent packs knowledge into a file. Another agent mounts that file on its own machine. The pin is the digest. A query returns a receipt id and the state root. The receipt file stays on the machine that ran the query. It is an integrity check. It does not mean a claim is proven. The next agent checks the mounted image against its pin. Knolo does not call a model, and it does not run the agent. The short guide is two agents sharing knowledge.
Knowledge should be an asset you can inspect, verify, migrate, and run—not opaque context trapped inside an application.
V6 · KAR · V5 Knowledge Images · V4 compatible · Local-first · Deterministic · Verifiable
Current release
This tree is Knolo 6.2.0. V6 adds KAR: deterministic retrieval of a minimum evidence set from a V5 Knowledge Image and a Committed Evidence Graph. 6.1.0 adds verifiable composition. 6.2.0 adds Knolo Cortex: bounded evidence retrieval with a verifiable trace. The host owns any model. Verification does not mean an answer is true. Lexical retrieval, V5 images, and V4 packs stay in place.
import {
createKarSession,
evaluateKar,
verifyKar,
explainKarResult,
createKarDossier,
createKarCoverage,
} from '@knolo/core/kar';The root @knolo/core entry does not load KAR. @knolo/core/experimental/kar remains a compatibility entry for this cycle. SATISFIED means the declared evidence requirements were met. It does not mean a claim is proven. UNSATISFIED_EVIDENCE_REQUIREMENTS means those requirements were not met. It does not mean the claim is false.
Published @knolo/core is 6.2.3. This tree's core package file is 6.2.3. 6.2.1 adds optional textQuery plans: a kept term matches as a whole word. An EQL SEARCH plan without textQuery still requires every term as a substring, in object id order. @knolo/langchain, @knolo/llamaindex, @knolo/semantic-ollama, and create-knolo-app stay 6.2.0 and depend on @knolo/core ^6.0.0. This tree's @knolo/cli package file is 6.2.10 and depends on @knolo/core ^6.2.3 and @knolo/exchange ^0.1.1. npm latest for the CLI is 6.2.9. That release includes knolo ask and --category. knolo persona is in this tree and is not in that published release. @knolo/cli@6.2.8 has no ask.mjs and no --category. It includes knolo kite, knolo research verify, and knolo exchange relay. @knolo/cli@6.2.7 includes knolo kite and does not include research verify or the relay. @knolo/cli@6.2.5 does not include knolo kite. npm latest for @knolo/exchange is 0.1.1. @knolo/exchange@0.1.0 has no relay. @knolo/tools is 0.2.2 and depends on @knolo/core ^6.2.3. @knolo/tools@0.2.1 has no KITE evaluate or verify tools. This tree's @knolo/mcp is 0.2.4 and depends on @knolo/core ^6.2.1 and @knolo/tools ^0.2.2. npm latest for MCP is 0.2.4. @knolo/mcp@0.2.3 has no KITE tools. @knolo/ai-sdk is 0.1.1 and depends on @knolo/core ^6.2.3 and @knolo/tools ^0.2.2. @knolo/ai-sdk@0.1.0 does not include the KITE host tools. npm latest for @knolo/box is 0.1.1. @knolo/code is 0.1.1. @knolo/reflex stays 0.2.0. @knolo/evidence-gate stays 0.1.0. Rust and the ICP canister stay 5.5.1. Rust evaluates public KAR V5 and replays a KITE certificate. It does not implement Cortex or composition. This tree's Python package is 5.6.0. It evaluates and verifies public KAR V5 and replays a KITE certificate. It does not implement a pack builder, Cortex, or composition. The ICP canister does not implement KAR, Cortex, or composition. The bundled contracts, policy, and operations Domain Packs are review-required. The local tag v6.0.0 stays on the 6.0.0 commit. The local tag v6.1.0 stays on the 6.1.0 commit. Do not republish these versions.
The description fields in this tree name the sharing job above. npm still shows the previous descriptions until a later publish.
Start with the KAR guide, the composition guide, the Cortex guide, the 6.2.0 release notes, examples/kar-v6, examples/kar-coverage, and examples/composition-v1.
Related MCP server: agent-fact-system
The opportunity
The next generation of AI products will compete on the quality and trustworthiness of their knowledge layer. Models may change quickly; durable value accumulates in the evidence, policies, retrieval behavior, runtime state, and operational history surrounding them.
Knolo provides a neutral substrate for that layer:
Portable knowledge — package a knowledge base as a self-contained Knowledge Image rather than a proprietary database export.
Verifiable state — every V5 image has deterministic encodings, domain-separated SHA-256 roots, bounded sections, and a commit history.
Traceable answers — preserve source, chunk, claim, citation, and evidence identity through retrieval and agent execution.
Reproducible behavior — use deterministic query plans, receipts, migration records, and runtime diagnostics to make results inspectable.
Composable infrastructure — keep storage, verification, retrieval, policy, and agent execution separate so products can adopt only what they need.
This is the strategic thesis behind Knolo: a trusted knowledge runtime can become shared infrastructure beneath many AI applications, agents, and enterprise workflows.
Why Knolo
Conventional AI knowledge layer | Knolo |
Context assembled opaquely at request time | A mounted, inspectable Knowledge Image |
Retrieval changes with hidden indexes and environment state | Deterministic plans, roots, and receipts |
Evidence is often discarded after generation | Stable identities and provenance remain queryable |
Data is coupled to one application or vendor | Portable artifacts with compatibility paths |
Audit is added after the product ships | Verification and bounded validation are core contracts |
Runtime state is difficult to reproduce | Immutable segments, commits, snapshots, and diagnostics |
Knolo does not try to be another model provider or another chat application. It is the knowledge and runtime foundation those products can build on.
What exists today
The repository contains the V6 KAR surface on the V5 Knowledge Image foundation, alongside the unchanged V4 reference path.
Knowledge Images
V5 defines a minimum verifiable container with:
dual superblocks with generation-based recovery and an active commit pointer;
immutable object and event segments;
a commit record containing parent, object, event, view, schema, policy, runtime, and sequence roots;
per-section bounds and digests;
fail-closed validation for required sections, offsets, overlaps, duplicate sections, integer overflow, and digest mismatches;
forward-compatible handling of unknown optional sections.
The result is a bounded byte artifact that can be mounted, inspected, verified, copied, and compared across runtimes. V5 stateRoot identifies the image. KAR's knowledgeRoot is a different digest.
KAR
KAR asks for the minimum applicable evidence set required to evaluate a proposition under a declared plan. Support, opposition, qualification, temporal applicability, and authority stay typed by that plan. The evaluation is replayable. It is not a ranked-passage search and it does not replace query().
A Committed Evidence Graph is compiled from editable CEG Source. compileCegSource() is the writer of those bytes. Authoring imports come from @knolo/core/kar/authoring. A coverage report says which supplied evidence requirements are met, which are gaps, and which plans did not decide. The worked demos are examples/kar-v6 and examples/kar-coverage. Public vectors are conformance/kar/v1 and conformance/kar/coverage-v1.
Contracts, policy, and operations Domain Packs can propose CEG Source. Their maturity is review-required in domains/v6-catalog.json. Human review is still required before those proposals are treated as validated semantics. KAR evaluates an already committed graph either way.
Paper: KAR-1: Frontier-Constrained Minimum Evidence Retrieval over Committed Knowledge Images (preprint).
Deterministic contracts
Rust and TypeScript share golden vectors for the core byte and root contracts:
deterministic CBOR encoding;
domain-separated
knolo:<domain>:v1SHA-256 digests;object, event, commit, and state roots;
superblock selection and torn-write recovery;
section directory and digest validation;
migration receipts.
V4 migration
Existing V1–V4 artifacts remain readable. A V4 artifact can be verified first and then migrated deterministically into a V5 genesis image. The migration imports sources, chunks, claims, agents, and metadata; maps legacy block identifiers to stable evidence identities; and emits a receipt containing the source digest, destination root, and identity mappings.
Read-only runtime foundation
The current V5 kernel supports the primitives needed to build trustworthy knowledge products:
content-addressed objects and immutable events;
snapshot readers with a single-writer concurrency profile;
bounded EQL query planning and deterministic result receipts;
query indexes and history;
policy evaluation, authority sessions, signed envelopes, and key rotation;
sync summaries, fast-forward exchange, merge planning, and replay;
durable agent runs with host-controlled execution boundaries;
runtime health and diagnostics;
a read-only Studio management snapshot contract, KIP-0026;
native Rust verification and migration foundations.
Transactions, authority mutation workflows, network orchestration, model inference, and the Studio UI/service remain deliberate follow-on layers.
A simple architecture
Sources, claims, agents, metadata
│
▼
Build or migrate deterministically
│
▼
┌──────────────────────────┐
│ V5 Knowledge Image │
│ objects · events · commit │
│ roots · policy · runtime │
└──────────────────────────┘
│ │ │
▼ ▼ ▼
Verify Query CEG Source
│ │ │
│ │ ▼
│ │ Committed Evidence Graph
│ │ │
│ │ ▼
│ │ KAR
│ │ │
└──────────┼──────────┘
▼
Agents, products, dossiers, and StudioThe boundary is intentional. Knolo owns the artifact, identity, evidence, roots, validation, deterministic planning, and bounded runtime state. Host applications own networking, credentials, model inference, external side effects, and deployment choices.
Product surface
Layer | Role | Current path |
Knowledge artifact | Portable sources, chunks, claims, agents, metadata, objects, and events |
|
Verification | Container validation, roots, digests, receipts, and recovery | TypeScript and Rust |
Retrieval | Lexical V4 retrieval plus bounded V5 query planning and indexes |
|
KAR | Minimum evidence set under a declared plan |
|
CEG authoring | Compile CEG Source into a Committed Evidence Graph |
|
Domain Packs | Review-required rules, vocabulary, and plan templates |
|
Agent boundary | Durable runs, evidence-aware context, policy, and authority primitives |
|
Evidence Gate | Claim-level support, conflict, abstention, and offline certificate checks |
|
Operations | Health, diagnostics, Studio snapshot, sync, merge, and replay |
|
Application integration | LangChain, LlamaIndex, Python, ICP, and starter workspace paths |
|
Behavior packs | Deterministic scoped procedures, constraints, context selection, and receipts |
|
Quickstart
Create a compatible application
npx create-knolo-app my-knowledge-app
cd my-knowledge-app
npm install
npm run devThe starter workspace gives an application a V4-compatible retrieval path while leaving room to adopt V5 artifacts incrementally.
Inspect and verify a V5 image
npm run knolo -- v5 info ./dist/knowledge.v5
npm run knolo -- v5 health ./dist/knowledge.v5
npm run knolo -- v5 studio ./dist/knowledge.v5Discover and install a Hub pack
The CLI can discover published packs at the production Hub and install one only after verifying its manifest, Blob bytes, digest, size, and local V4/V5 Knowledge Image structure:
npm install -g @knolo/cli
knolo search "refund policy"
knolo info acme/refund-policy
knolo add acme/refund-policy@1.2.0
knolo ask "what is the refund window?" --model llama3.2knolo ask grounds that model in Hub excerpts. The model is the engine you
already run: Ollama by default at http://127.0.0.1:11434/v1, or any
OpenAI-compatible endpoint in KNOLO_MODEL_BASE_URL (a cloud gateway such as
https://api.x.ai/v1 included). The model key stays in KNOLO_MODEL_API_KEY
and is not sent to Hub. --evidence prints the cited excerpts and skips the
model.
Installs are content-addressed and recorded in knolo.lock.json. Use
KNOLO_HUB_URL or --registry when testing a local or partner Hub.
Hub write APIs accept dashboard kno_… tokens with the required
Authorization: Bearer kno_… header. knolo login stores the raw secret
locally; GitHub sign-in is needed only to mint a token at
https://hub.knolo.dev/dashboard/tokens. knolo publish uses that token to ask
Hub for a public Blob PUT grant, uploads bytes to the grant URL (never with
the kno_… token), then completes with the public pack URL. Do not set
PACKS_READ_WRITE_TOKEN in the CLI — that is Hub’s store secret.
knolo login --token kno_…
knolo publish ./dist/knowledge.knolo --slug refund-policy \
--version 1.2.0 --license Apache-2.0
knolo yank acme/refund-policy@1.2.0The CLI uses pathname sha256/<64-lowercase-hex>.knolo. It rejects private
Blob hosts because Hub verification must fetch the artifact. It never sends
the kno_… token to Blob, in query strings, cookies, or pack bytes. A 401
normally means the Bearer word is missing or the token was revoked—not that
Hub requires a GitHub browser session. To smoke-test the stored credential,
use:
curl -sS -H "Authorization: Bearer kno_…" \
-H "Accept: application/json" \
https://hub.knolo.dev/api/v1/accountPOST /api/v1/tokens is not a CLI login endpoint; it is dashboard/session
token minting only.
Serve a pinned image over MCP
@knolo/mcp is a read-only stdio MCP server for a
pinned V5 Knowledge Image. Pin the image and write knolo-mcp.json as shown
in llms-install.md, then register the server
with Claude Code:
claude mcp add knolo -- npx -y @knolo/mcp@0.2.4 --config /absolute/knolo-mcp.jsonclaude mcp list shows the server. Claude Desktop, Cursor, VS Code, and other
clients are in the MCP package guide.
Use the V5 kernel directly
import {
migrateV4ToV5,
mountKnowledgeImageV5,
verifyKnowledgeImageV5,
} from '@knolo/core';
const { image, receipt } = await migrateV4ToV5(v4Bytes);
const verification = verifyKnowledgeImageV5(image);
const mounted = mountKnowledgeImageV5(image);
console.log({
verified: verification.valid,
stateRoot: mounted.commit.stateRoot,
migratedFrom: receipt.sourceDigest,
});The V5 APIs are additive. Existing V4 retrieval APIs and behavior remain the compatibility default for ordinary search.
Evaluate a committed graph with KAR
From a checkout:
npm run build --workspace @knolo/core
node examples/kar-v6/run.mjsknolo kar demo runs the same script. knolo kar conformance checks the public vectors. The KAR quickstart covers the session, the dossier, and verification.
Add deterministic behavior with Reflex
@knolo/reflex is a separate public package for
building and running verifiable behavior packs above @knolo/core. Reflex
packs contain scoped atoms, procedures, constraints, and renderable bundles.
At runtime, Reflex selects bounded context for a request and returns a receipt
with the selected IDs, roots, and token accounting. Model inference remains
under the host application's control.
npm install @knolo/reflex @knolo/coreimport { openReflexSessionV1, selectReflexContextV1 } from '@knolo/reflex';
const session = await openReflexSessionV1(packBytes, {
namespace: 'support',
});
const selection = selectReflexContextV1(session, 'account recovery provider');
if (selection.disposition === 'ready') {
// Give selection.context to the model and retain selection.receipt.
}The package is independently versioned as 0.2.0, compatible with
@knolo/core ^6.0.0, and includes an optional adapter for a local Ollama
server. See the Reflex package guide for the CLI,
verification, evaluation, optimization, distillation, and security details.
The current Reflex 0.2 development line adds frozen teacher provenance, behavior-signature clusters, calibrated MRS selection, offline Pareto frontiers, and a split-aware benchmark harness. These additions remain experimental until the larger frozen evaluation set, conformance review, and release gates are complete.
Trust and engineering proof
Knolo’s trust model is expressed in executable contracts rather than marketing language. Run the repository checks locally:
npm ci
npm run release:check
npm test
npm run trustbench:test
cargo test --manifest-path packages/core-rust/Cargo.tomlThe release check covers TypeScript build and tests, CLI compatibility, Rust tests, conformance fixtures, documentation formatting, and the V5 verification path. Cross-runtime fixtures are maintained under conformance/v5.
Corruption is treated as a normal operating condition to test: truncation, invalid offsets, overlapping or duplicate sections, malformed required sections, invalid generations, oversized declarations, and digest mismatches must fail closed. Unknown optional sections are accepted for forward compatibility.
Built for more than one runtime
Runtime | Role |
TypeScript | V4 reference implementation and complete V5 foundation APIs |
Rust | Native V5 byte contracts, verification, migration, and future embedded kernel |
Python | Read-only V5 verifier/query, public KAR V5, and KITE certificate replay |
Internet Computer | Legacy compatibility profile with a synchronized Rust template |
LangChain / LlamaIndex | Adapter examples for application adoption |
CLI | Human and automation entry point for artifact inspection and diagnostics |
The architecture is host-neutral: an agent can use Knolo as its knowledge substrate regardless of which model, orchestration framework, deployment target, or UI surrounds it.
Who it is for
Knolo is designed for teams building:
enterprise knowledge systems where every answer needs evidence and provenance;
private, on-device, edge, or offline AI where data must remain portable;
agent runtimes that need durable state without surrendering control to a hosted black box;
regulated workflows that require deterministic exports, verification, and migration records;
multi-product platforms that want one knowledge asset shared across applications and runtimes;
AI infrastructure products whose differentiation depends on trust, not only model output.
Roadmap
The active roadmap is maintained in docs/ROADMAP.md.
Delivered foundation
V5 container, roots, deterministic encoding, and fail-closed validation;
V1–V4 migration with deterministic receipts;
shared Rust/TypeScript conformance vectors;
read-only retrieval, indexes, history, policy, authority, key rotation, sync, merge, replay, and durable runs;
runtime diagnostics and the KIP-0026 Studio snapshot;
CLI inspection, health, and Studio management commands;
preserved V4 compatibility;
KAR evaluation, explanation, verification, Evidence Dossiers, and evidence coverage reports;
CEG Source compilation and public KAR conformance vectors;
offline composition records, bounded excerpts, and Ed25519 attestation envelopes;
contracts, policy, and operations Domain Packs at maturity
review-required.
Still ahead
publish
6.1.0and run the registry smoke;human validation before a Domain Pack is treated as validated;
KAR on the ICP canister, which stays at
5.5.1;host-owned extensions for model providers and external tools.
V5 remains the portable image and verification layer. V6 adds KAR on that layer. Domain Pack extraction is not a validated automatic semantic layer.
Documentation
Repository layout
packages/core/ TypeScript runtime, including `@knolo/core/kar`, `@knolo/core/composition`, and `@knolo/core/cortex`
packages/core-rust/ Native Rust V5 kernel and verifier (5.5.1), including public KAR V5 evaluate/verify. No Cortex, authoring, coverage, or composition
packages/cli/ Knolo command-line interface, including `knolo kar`, `knolo compose`, and `knolo cortex`
packages/core-python/ Python V5 verifier/query package (5.6.0), including public KAR V5 evaluate/verify and KITE certificate replay. No pack builder, Cortex, or composition
packages/icp-canister/ Internet Computer compatibility package (5.5.1, no KAR or Cortex)
packages/mcp/ `@knolo/mcp` read-only stdio MCP server for a pinned Knowledge Image (0.2.4)
packages/reflex/ `@knolo/reflex` verifiable behavior packs (0.2.0)
domains/ Review-required Domain Packs
examples/kar-v6/ Redistributable KAR demos
examples/ Framework and product integration examples
spec/ KIP contracts, including KAR-1
conformance/kar/v1/ Public KAR vectors
conformance/kar/coverage-v1/ Evidence coverage vectors
conformance/composition/v1/ Composition and attestation vectors
conformance/cortex/v1/ Cortex trace vectors
conformance/ Cross-runtime fixtures and acceptance tests
docs/kar/ KAR, CEG, dossiers, and the V6 release notes
docs/composition/ Offline composition and attestation
docs/cortex/ Knolo Cortex reasoned evidence retrievalStatus and contribution
Knolo 6.2.0 is the product line in this repository. V5 Knowledge Images remain the evidence container. V4 retrieval remains the compatibility path for ordinary search. KAR semantics stay kar-1-research-1. Composition cites those artifacts and does not change their roots. Cortex retrieves over them and does not change their roots. Domain Packs stay review-required until a person validates them.
Before opening a change, run the relevant package tests and npm run release:check. Changes to byte formats, digest domains, identity rules, or required sections must include updated specification text and cross-runtime fixtures.
License
See LICENSE.
Available Tools
4 toolsknolo_getCRead-onlyIdempotent
Read an authorized Knolo evidence object at the state root returned by search.
Inputs: imageId (required), objectId (required), stateRoot (required), end, +1 more.
knolo_searchBRead-onlyIdempotent
Search approved Knolo Knowledge Images. Lowercase the query. A quoted phrase is one contiguous whole phrase. Unquoted OR selects any remaining term. Unquoted stopwords and terms shorter than 3 characters are dropped. A query that drops every term matches nothing. Each kept term must appear as a whole word. match is all when every term hits, any for OR, partial when every-term misses but one term hits, and none when nothing hits. Hits with more matched terms come first, then matches in the path final segment and the first line, then matches in the rest of the text, then object id.
Inputs: query (required), limit, imageIds.
knolo_statusARead-onlyIdempotent
Show the caller-visible, verified Knolo Knowledge Image mounts. When a mount records source roots, the result includes builtAt and whether those sources are stale.
Inputs: no named parameters.
knolo_verifyBRead-onlyIdempotent
Verify the local bytes and V5 roots for approved Knolo Knowledge Images. A matching pin stays valid when sources are stale. builtAt and stale are set only when the mount records source roots.
Inputs: imageId.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Search (query), get (read object), verify (check bytes/roots), and status (enumerate mounts) target distinct operations, so misselection is unlikely. The only soft overlap is that both verify and status report builtAt/staleness, which could occasionally blur which to call for a health check.
All four tools follow the same knolo_<verb> snake_case pattern with short, single-word verbs. The prefix is applied uniformly with no camelCase or stylistic mixing.
Four tools is a tight, well-scoped surface for a read-only knowledge retrieval server, with no redundant entries. It sits at the low end of the comfortable range, leaving nothing to trim but little breathing room.
Discover (search), read (get), validate (verify), and enumerate (status) cover the core read-only lifecycle without dead ends. Minor gaps: no way to list all images or their roots without a search query first, and no authoring/refresh path for knowledge images.
Maintenance
Related MCP Connectors
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Governed, auditable knowledge your team curates for its AI assistants, self-hostable
Deterministic knowledge for AI agents: search, fetch, cite and verify a 48M-entry knowledge base.
Free verified network knowledge for AI agents: deterministic answers, honest unknowns.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceLocal-first knowledge base MCP server. Lets AI agents (Claude Code, Cursor, etc.) read and write your personal knowledge base through 20 MCP tools. Zero cloud dependency — all files stay on your machine.709MIT
- AlicenseBqualityCmaintenanceLocal-first knowledge system for reasoning agents, exposing facts, evidence, documents, retrieval, and audit history through a thin stdio MCP server.14MIT
- AlicenseBqualityDmaintenanceEnables AI agents to consume, validate, search, and author Open Knowledge Format v0.2 Markdown bundles locally, with optional multi-bundle federation, graph navigation, provenance inspection, and proposal-based updates.281MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to read and write a self-hosted, git-backed graph of team memory nodes — searching, creating, updating, linking, and tracing the history of notes about what exists, its state, and what was done — over MCP (stdio or HTTP) or a plain REST API. Combines lexical and semantic search in an embedded index, so it works model-agnostically and even fully offline.1Apache 2.0