knowl

module
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2026 License: MIT

README

Knowl

Knowl owl mascot sticker

test lint release

Your project knowledge, maintained as a wiki.

Knowl is a self-hosted LLM wiki for your projects. It turns source documents into connected Markdown pages and gives AI agents grounded evidence from that wiki. Knowledge remains available across tasks, with references back to the sources that support it.

Knowl builds on Andrej Karpathy's LLM Wiki pattern: an agent reads sources and maintains connected knowledge over time. Bring your own ACP-compatible agent to maintain the wiki. Your knowledge stays in portable, Open Knowledge Format (OKF) Markdown under your control.

Get started · Browse the wiki · See Knowl's own wiki · Documentation

What You Get

Need What Knowl provides
Keep project knowledge across tasks An LLM-maintained wiki built from durable source revisions
Understand where a result came from Bounded evidence linked to its supporting sources
Own and inspect your knowledge Plain Markdown in an OKF-compatible workspace
Read the wiki in your browser An optional read-only console for pages, saved sources, search, and processing history
Find related evidence across different wording Optional hybrid search through your own embedding API or local CPU server
Choose where it runs Local Codex, a self-hosted MCP/HTTP service, or an embedded Go runtime

From Sources to a Wiki

Connect project sources or start from an existing Markdown wiki, Obsidian vault, or OKF bundle. Knowl preserves accepted source revisions, and the configured LLM maintainer proposes semantic updates to the wiki. Updates pass validation before they become part of the knowledge base.

A URL submission stores a reference. To use the page's contents as a source, submit its text. See the ingest examples.

Your agent retrieves relevant evidence and uses it to answer or act. You can also read the wiki directly, inspect its source references, or export it for publishing. See the source-to-wiki example for a complete walkthrough.

Get Started

Local Service
Keep a wiki alongside your project and use a local ACP agent to maintain it. Run a persistent Knowl service and connect clients over MCP or HTTP.
Local quickstart with Codex Service quickstart

Both guides take you from a source document to a published wiki page and a retrieval result. Choose your maintainer in the agent guide, including a custom agent through generic_acp over stdio.

The container quickstart is now in the service guide.

Knowl Uses Knowl

Knowl maintains a wiki of its own documentation. Compare the source docs with the generated wiki to see source material become connected knowledge. The walkthrough explains the configured ACP agent, generation commands and saved source provenance.

Connect an Agent

Local Codex plugin

Use Knowl from a local Codex project with setup and maintenance skills plus MCP tools. For the v0.6.0 npm release, setup is:

npx --yes @baldaworks/knowl@0.6.0 setup codex

The npm instructions require that release to be published. After setup, start a new Codex thread and use $knowl:run for one bounded wiki maintenance cycle. See the local Codex guide for requirements, provider configuration, offline use, and supported scope.

MCP and HTTP

Connect other agents to the self-hosted service over MCP. Knowl exposes three tools: knowl_retrieve for evidence, knowl_ingest for durable inputs, and knowl_operation for operation status.

The same capabilities are available through HTTP. See service connection guide, service operations, and the OpenAPI contract.

Knowl can request one corrected plan when generated output fails validation. Inspect the result through operation status, or disable correction in your config.

Go applications

Embed Knowl through pkg/knowl, or use pkg/knowlfx for Fx lifecycle integration. See the product design for runtime composition and ownership boundaries.

Read Your Wiki in a Browser

Enable the optional web UI to browse published pages, inspect their saved source revisions, retrieve evidence, and follow maintenance status. It runs inside the Go service with locally bundled assets and is disabled by default. Connect with an operator token; use HTTPS when exposing the service beyond loopback.

Search Across Different Wording

Enable optional embeddings to retrieve related evidence across paraphrases and word forms. Knowl combines semantic and keyword search while keeping the original page text and source references in its results. The semantic index covers the full text of each published page within the configured projection capacity; a dense-only match shows the matching passage as its excerpt.

Use your own compatible embedding API or the local CPU embedding server. Embeddings are off by default. Choose explicit keyword fallback or strict semantic availability in the search guide.

Keep Your Knowledge Portable

The canonical wiki lives in wiki/ as an OKF v0.2 bundle. Accepted source revisions are preserved separately in raw/, so semantic pages remain connected to their evidence. The default local operational store uses SQLite.

Export the wiki as a standalone bundle, or add an llms.txt navigation file for agents and publication. See workspace and export for the layout and commands.

Documentation By Goal

Goal Start here
Run a local wiki with Codex Local quickstart
Run Knowl as an MCP/HTTP service Service quickstart
Bring your own ACP agent Agent configuration
Use the Codex plugin Codex integration
Browse the wiki Web UI
Configure lexical or hybrid search Search
See Knowl maintain its own wiki Own-docs walkthrough
Operate and recover Knowl Operations
Understand storage and export Workspace and OKF
Embed Knowl in Go Go application integration

See the documentation index for architecture, API contracts, quality measurements and release history.

License

Knowl is released under the MIT License.

Directories

Path Synopsis
cmd
knowl command
internal
httpapi/knowlapi
Package knowlapi contains generated public HTTP transport bindings for Knowl.
Package knowlapi contains generated public HTTP transport bindings for Knowl.
httpapi/operatorapi
Package operatorapi contains generated operator read transport bindings.
Package operatorapi contains generated operator read transport bindings.
mcphttp
Package mcphttp exposes Knowl's transport-neutral MCP registry over the standard Streamable HTTP transport.
Package mcphttp exposes Knowl's transport-neutral MCP registry over the standard Streamable HTTP transport.
mcpsdk
Package mcpsdk adapts Knowl's transport-neutral MCP registry to the Go MCP SDK.
Package mcpsdk adapts Knowl's transport-neutral MCP registry to the Go MCP SDK.
releasecheck
Package releasecheck verifies that checked-in and staged distribution artifacts describe one Knowl release.
Package releasecheck verifies that checked-in and staged distribution artifacts describe one Knowl release.
releaseinfo
Package releaseinfo exposes the build's normalized release identity.
Package releaseinfo exposes the build's normalized release identity.
source/filesystem
Package filesystem implements the built-in bounded filesystem source adapter.
Package filesystem implements the built-in bounded filesystem source adapter.
source/git
Package git implements the bounded remote Git source adapter.
Package git implements the bounded remote Git source adapter.
source/normalize
Package normalize renders filesystem wiki documents into canonical source mirrors.
Package normalize renders filesystem wiki documents into canonical source mirrors.
source/reconcile
Package reconcile owns the bounded multi-source synchronization service.
Package reconcile owns the bounded multi-source synchronization service.
webui
Package webui serves the embedded, workspace-free shell and trusted fragments.
Package webui serves the embedded, workspace-free shell and trusted fragments.
pkg
knowl
Package knowl contains the public non-Fx host composition API for Knowl.
Package knowl contains the public non-Fx host composition API for Knowl.
knowl/app
Package app owns Knowl application policy and its consuming ports.
Package app owns Knowl application policy and its consuming ports.
knowl/content/fs
Package fs will provide the canonical filesystem workspace adapter.
Package fs will provide the canonical filesystem workspace adapter.
knowl/internal/knowledgetest
Package knowledgetest contains the internal deterministic v0.1 knowledge loop corpus.
Package knowledgetest contains the internal deterministic v0.1 knowledge loop corpus.
knowl/internal/runnertest
Package runnertest provides the backend-neutral durable runner contract.
Package runnertest provides the backend-neutral durable runner contract.
knowl/llmstxt
Package llmstxt renders a bounded llms.txt navigation document from an already-inspected Knowl workspace.
Package llmstxt renders a bounded llms.txt navigation document from an already-inspected Knowl workspace.
knowl/mcp
Package mcp provides bounded, server-scoped Knowl MCP tools.
Package mcp provides bounded, server-scoped Knowl MCP tools.
knowl/okf
Package okf parses and renders Open Knowledge Format v0.2 documents.
Package okf parses and renders Open Knowledge Format v0.2 documents.
knowl/provider
Package provider contains adapters from the shared runtime provider registry to Knowl's structured maintainer boundary.
Package provider contains adapters from the shared runtime provider registry to Knowl's structured maintainer boundary.
knowl/store/internal/contextpolicy
Package contextpolicy owns backend-independent maintenance context budgets and deterministic phase merging.
Package contextpolicy owns backend-independent maintenance context budgets and deterministic phase merging.
knowl/store/internal/contexttest
Package contexttest defines the shared maintenance context contract for rebuildable search adapters.
Package contexttest defines the shared maintenance context contract for rebuildable search adapters.
knowl/store/internal/hybrid
Package hybrid owns backend-independent bounded semantic preparation and retrieval.
Package hybrid owns backend-independent bounded semantic preparation and retrieval.
knowl/store/internal/lexical
Package lexical contains the backend-independent lexical retrieval policy.
Package lexical contains the backend-independent lexical retrieval policy.
knowl/store/internal/operationlist
Package operationlist shares validated operation-list migration rules.
Package operationlist shares validated operation-list migration rules.
knowl/store/internal/operationpayload
Package operationpayload owns the bounded durable non-source descriptor envelope shared by SQLite and PostgreSQL stores.
Package operationpayload owns the bounded durable non-source descriptor envelope shared by SQLite and PostgreSQL stores.
knowl/store/internal/projectionmeta
Package projectionmeta defines the shared OKF projection encoding used by both durable search adapters.
Package projectionmeta defines the shared OKF projection encoding used by both durable search adapters.
knowl/store/internal/searchtest
Package searchtest defines the shared behavioral contract for lexical store adapters.
Package searchtest defines the shared behavioral contract for lexical store adapters.
knowl/store/internal/sourcedoclist
Package sourcedoclist contains validation shared by durable document readers.
Package sourcedoclist contains validation shared by durable document readers.
knowl/store/internal/storetest
Package storetest provides shared behavioral contracts for operational stores.
Package storetest provides shared behavioral contracts for operational stores.
knowl/store/internal/writelock
Package writelock provides the store write mutex with cancellable acquisition.
Package writelock provides the store write mutex with cancellable acquisition.
knowl/store/postgres
Package postgres implements Knowl operational state and search projections with PostgreSQL-native transactions and full-text search.
Package postgres implements Knowl operational state and search projections with PostgreSQL-native transactions and full-text search.
knowl/store/sqlite
Package sqlite will provide the SQLite operational store and search projection.
Package sqlite will provide the SQLite operational store and search projection.
knowl/types
Package knowl contains the public, transport-neutral Knowl domain contracts.
Package knowl contains the public, transport-neutral Knowl domain contracts.
knowl/wiki
Package wiki contains the shared Markdown/wiki parsing and normalization rules that define canonical Knowl workspace semantics.
Package wiki contains the shared Markdown/wiki parsing and normalization rules that define canonical Knowl workspace semantics.
knowlfx
Package knowlfx contains the public Fx composition layer for Knowl.
Package knowlfx contains the public Fx composition layer for Knowl.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL