Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<h1>Knowledge Compiler</h1>

<p>
<strong>Compile messy slide decks, PDFs, Office docs, and coding-agent sessions into a verified, local-first <a href="https://github.com/open-knowledge-format/open-knowledge-format">OKF v0.3</a> knowledge graph</strong><br />
Readable out of the box by generic OKF tools, AI coding agents, GitHub, Obsidian, and the built-in 60 FPS 3D WebGL workbench.
<strong>Give your AI coding agent persistent, inspectable memory saved across sessions.</strong><br />
Turn slide decks, PDFs, Office docs, and long working sessions into a clean, local-first Markdown library (<a href="https://github.com/open-knowledge-format/open-knowledge-format">OKF v0.3</a>) with a built-in 60 FPS 3D WebGL graph viewer.
</p>

<p>
Expand All @@ -20,6 +20,7 @@
</p>

<p>
<a href="#how-it-helps-in-day-to-day-work">How It Works</a> &middot;
<a href="#quick-start-60-second-walkthrough">60-Second Demo</a> &middot;
<a href="#compile-once-consume-anywhere">OKF v0.3 Interoperability</a> &middot;
<a href="#interactive-60-fps-webgl-workbench">WebGL Workbench</a> &middot;
Expand All @@ -35,15 +36,16 @@

---

## Why Compiled OKF Beats Raw Prompting and RAG Chunking
## How It Helps in Day-to-Day Work

Most coding-agent knowledge setups fail in one of three ways: stuffing 100-page slide decks directly into context windows, slicing tables and diagrams into arbitrary 500-token RAG chunks, or trapping notes inside a proprietary format that external tools cannot read.
If you work with AI assistants on complex projects, you have probably hit the same walls: uploading 100-slide decks and PDFs into chat quickly hits context limits, details inside tables and diagrams get lost in chunking, and lessons you spent hours figuring out disappear the moment you open a new conversation.

**Knowledge Compiler** implements Google Cloud's [**Open Knowledge Format (`OKF v0.3`)**](https://github.com/open-knowledge-format/open-knowledge-format) (with full `OKF v0.2` backward compatibility) and Andrej Karpathy's compiled LLM-Wiki pattern as a pure-Python CLI and portable agent plugin:
**Knowledge Compiler** fixes that by giving your AI agent a structured, local Markdown memory that compounds from session to session:

- **Progressive Disclosure Instead of Context Saturation**: Agents scan a `~500`-token root `index.md` and follow 1-hop / 2-hop links to only the exact dossiers they need.
- **Structured Provenance Instead of Lossy Chunks**: Preserves Markdown tables, inline Mermaid architecture diagrams, footnote citations, verification freshness (`verified[].at >= generated.at`), and deprecation chains (`status: deprecated` + `superseded_by`).
- **Open Standards Instead of Lock-In**: Emits plain UTF-8 Markdown with RFC 3986 relative `.md` links, frontmatter-free `wiki/**/index.md` sub-indexes (§8), and namespaced `x-kc-*` epistemic extensions (§4.1), passing upstream `open-knowledge-format` `validate.py --strict` with **`0 errors, 0 warnings, 0 info`**.
- **Turn messy files and sessions into lasting memory**: Drop in slide decks, PDFs, Office docs, web pages, or notes from a working session. It compiles them into an organized library of linked Markdown notes right on your machine, so your AI assistant still knows your project context weeks later without re-uploading a single slide.
- **Solve hard problems once and reuse them**: Capture what worked during a deep dive or architecture review, automatically scrub private details, and share clean, reusable playbooks with your team.
- **Keep facts accurate without rewriting history**: When a requirement, target, or design changes mid-project, update the current truth across your notes while leaving original meeting notes and historical records completely untouched.
- **Stay 100% local and portable**: Everything stays on your computer in plain UTF-8 Markdown files built on Google Cloud's open [**Open Knowledge Format (`OKF v0.3`)**](https://github.com/open-knowledge-format/open-knowledge-format) with zero cloud backend or lock-in. It works out of the box across Antigravity, Gemini CLI, Claude Code, Codex, Cursor, GitHub, and Obsidian, and includes an interactive 3D graph viewer to explore how all your ideas connect.

---

Expand Down Expand Up @@ -96,7 +98,7 @@ vault-hooks enable

## Compile Once, Consume Anywhere

Every vault compiled by **Knowledge Compiler** uses standard OKF v0.3 conventions so the exact same directory works across the entire OKF ecosystem without exporters or proprietary databases:
Under the hood, **Knowledge Compiler** implements Google Cloud's [**Open Knowledge Format (`OKF v0.3`)**](https://github.com/open-knowledge-format/open-knowledge-format) (with full `OKF v0.2` backward compatibility) and Andrej Karpathy's compiled LLM-Wiki pattern. Agents scan a `~500`-token root `index.md` and follow 1-hop / 2-hop links instead of saturating context windows, preserving Markdown tables, inline Mermaid diagrams, footnote citations, verification freshness (`verified[].at >= generated.at`), and deprecation chains (`status: deprecated` + `superseded_by`), while passing upstream `open-knowledge-format` `validate.py --strict` with **`0 errors, 0 warnings, 0 info`**:

<!-- mdformat off -->
| Consumer | What Works Out of the Box |
Expand Down
26 changes: 13 additions & 13 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Knowledge Compiler — Open Knowledge Format (OKF v0.3) Compiler &amp; 3D WebGL Workbench</title>
<meta name="description" content="Compile slide decks, PDFs, Office docs, and coding-agent sessions into a verified, local-first OKF v0.3 knowledge graph with a 60 FPS 3D WebGL workbench, BM25 search, and 10 portable agent skills." />
<meta property="og:title" content="Knowledge Compiler (OKF v0.3)" />
<meta property="og:description" content="Compile documents and agent sessions into a verified, local-first OKF v0.3 knowledge graph. Try the live 3D WebGL Starter Vault in your browser." />
<title>Knowledge Compiler: Persistent Memory &amp; 3D Knowledge Graph for AI Coding Agents (OKF v0.3)</title>
<meta name="description" content="Give your AI coding agent persistent, local memory across sessions. Turn slide decks, PDFs, Office docs, and chats into a linked OKF v0.3 Markdown library with a 60 FPS 3D WebGL viewer and 10 portable skills." />
<meta property="og:title" content="Knowledge Compiler: Persistent Memory for AI Coding Agents" />
<meta property="og:description" content="Give your AI coding agent persistent, inspectable memory saved across sessions in plain OKF v0.3 Markdown. Try the live 3D WebGL Starter Vault in your browser." />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://googlecloudplatform.github.io/knowledge-compiler/" />
<link rel="canonical" href="https://googlecloudplatform.github.io/knowledge-compiler/" />
Expand Down Expand Up @@ -642,9 +642,9 @@
<section class="hero">
<div class="container">
<img class="hero-logo" src="assets/logo.svg" alt="Knowledge Compiler 3D Knowledge Crystal Logo" />
<h1>Compile documents and agent sessions into a verified OKF v0.3 knowledge graph.</h1>
<h1>Give your AI coding agent persistent memory across sessions.</h1>
<p class="hero-sub">
An open-source, local-first Python CLI and portable agent plugin that turns slide decks, PDFs, Office docs, and coding sessions into a standard Markdown wiki readable by generic OKF tools, AI coding agents, GitHub, Obsidian, and a built-in 60 FPS 3D WebGL workbench.
An open-source, local-first tool and agent plugin that turns slide decks, PDFs, Office docs, and past conversations into a linked Markdown library (OKF v0.3) that your AI assistant still knows weeks later. Works across Antigravity, Gemini CLI, Claude Code, Cursor, GitHub, and Obsidian, with a built-in 60 FPS 3D WebGL graph viewer.
</p>
<div class="hero-actions">
<a class="btn btn-primary" href="#live-demo">Explore Live 3D Demo</a>
Expand All @@ -654,20 +654,20 @@ <h1>Compile documents and agent sessions into a verified OKF v0.3 knowledge grap

<div class="metrics-strip" role="region" aria-label="Conformance highlights">
<div class="metric-cell">
<div class="metric-val ok">OKF v0.3 · 0 Errors</div>
<div class="metric-lbl">Passes upstream validate.py --strict</div>
<div class="metric-val">Persistent Memory</div>
<div class="metric-lbl">Linked Markdown saved across sessions</div>
</div>
<div class="metric-cell">
<div class="metric-val">434 Relative .md Links</div>
<div class="metric-lbl">Visible to every OKF consumer</div>
<div class="metric-val">100% Local-First</div>
<div class="metric-lbl">Plain files, zero cloud backend or lock-in</div>
</div>
<div class="metric-cell">
<div class="metric-val">10 Portable Skills</div>
<div class="metric-lbl">Antigravity, Gemini CLI &amp; SKILL.md</div>
<div class="metric-lbl">Antigravity, Gemini CLI, Claude Code &amp; Cursor</div>
</div>
<div class="metric-cell">
<div class="metric-val">100% Local-First</div>
<div class="metric-lbl">Zero cloud backend, 127.0.0.1 only</div>
<div class="metric-val ok">OKF v0.3 · 0 Errors</div>
<div class="metric-lbl">Passes upstream validate.py --strict</div>
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "knowledge-compiler",
"displayName": "Knowledge Compiler",
"version": "1.3.1",
"description": "Compile PDFs, slides, docs, and agent sessions into a local Open Knowledge Format (OKF v0.3) Markdown wiki with a 2D/3D WebGL graph and linter.",
"description": "Give AI coding agents persistent, local memory across sessions: compile decks, PDFs, docs, and chats into an OKF v0.3 Markdown wiki and 3D WebGL graph.",
"logo": "assets/logo.svg",
"author": {
"name": "Google LLC"
Expand All @@ -25,8 +25,8 @@
"google-cloud"
],
"suggestedPrompts": [
"Initialize an OKF v0.3 knowledge vault in ./vault and compile the current session into it",
"Ingest a PDF, slide deck, or markdown folder into my knowledge vault and update index.md",
"Audit my knowledge vault for broken wikilinks, frontmatter errors, and orphan notes"
"Set up a local knowledge vault in ./vault and save what we learned in this session",
"Turn a PDF, slide deck, or folder of docs into linked Markdown notes in my knowledge vault",
"Audit my knowledge vault for broken links, stale facts, and orphan notes"
]
}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "knowledge-compiler"
version = "1.3.1"
description = "Compile PDFs, slides, docs, and agent sessions into a local Open Knowledge Format (OKF v0.3) Markdown wiki with a 2D/3D WebGL graph and linter."
description = "Give AI coding agents persistent, local memory across sessions: compile decks, PDFs, docs, and chats into an OKF v0.3 Markdown wiki and 3D WebGL graph."
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.10"
Expand Down
Loading