Active Memory OS: A layered symbiosis integrating onde with the Karpathy Wiki pattern. Human-readable markdown meets agent-precise typed graphs and TOON density.
Integrating onde with the Karpathy LLM Wiki pattern isn't a replacementβit's a layered symbiosis. onde becomes the deterministic, typed, journal-backed kernel, while the Karpathy skills become the human-facing, semantic, plugin-driven UI layer.
Hereβs exactly how onde would accommodate, extend, and operationalize the Karpathy wiki skill pattern in production.
onde| Karpathy Component | onde Equivalent / Adapter | Role in Hybrid System |
|---|---|---|
SCHEMA.md | schema.md + CLAUDE.md | schema.md enforces typed graph rules; CLAUDE.md holds human-facing conventions |
wiki/pages/*.md | Materialized views from CRDT journal | Human-readable cache; auto-rebuilt via onde materialize |
wiki/index.md | TOON-dense catalog + graph index | Agent reads first; routes queries to onde or LLM context |
wiki/log.md | onde journal --tail + Git commit history | Append-only event log; versioned via HLC |
skills/*.md | onde CLI wrappers + skill adapters | Translate natural language triggers β deterministic onde pipes |
Raw raw/ sources | `onde ingest <file | url>` β journal append |
Core Principle:
ondeowns the Single Source of Truth (journal). Karpathy owns the human-facing projection (markdown). Skills become adapters between the two.
wiki-init β onde init -t wikionde init --template karpathy-wiki
What it does:
raw/, wiki/pages/, wiki/assets/schema.md with Karpathy conventions:## Node Types
### concept
title: string @required
type: enum(concept, entity, summary, comparison)
sources: edge(source) @many
related: edge(concept) @many
confidence: enum(high, medium, low) @default(medium)
CLAUDE.md with Karpathy workflow promptsjournal/) + Git repo.claude/skills/wiki-ingest β onde ingest + materializeKarpathy: Agent reads source β discusses β writes wiki/pages/ β updates index.md β appends log.md
onde Accommodation:
onde ingest raw/papers/transformer.pdf --extract --discuss
onde extracts claims, entities, citations β writes to journal as typed eventsonde journal --last | ollama run llama3 "Summarize & flag contradictions"onde materialize --target wiki/pages/ generates flat markdown from journalonde lint --backlinks auto-adds [[links]] to index.md and related pagesonde journal append --type ingest --source transformer.pdfKey Gain: Ingest becomes idempotent & replayable. Delete
wiki/?onde materializerebuilds it perfectly.
wiki-query β Hybrid Query RouterKarpathy relies on LLM context for all queries. onde adds deterministic routing:
/wiki-query "What routing strategies are used in MoE models?"
onde Router Logic:
index.md (TOON format) for keywordsblocks, depends, status, type) β route to onde findExamples:
# Logical β onde handles directly
onde find concept --related "mixture-of-experts" --format toon | grep routing
# Semantic β onde exports context β LLM reasons
onde export concept:mixture-of-experts | claude "Compare routing strategies"
Token Savings:
ondefilters 90% of irrelevant nodes before LLM sees anything. Context window used only for synthesis.
Vectors fail at hard reasoning. When an agent uses this topology, relations become deterministic traversing rules rather than fuzzy distance metrics. Ensure onde agent --sync is running when modifying nodes manually to keep the CRDT journal perfectly aligned.
[agent-os] ~ /karpathy-worldβββ schema.mdβββ concepts/β βββ concept-01.mdβ βββ concept-02.mdββββ sources/β βββ source-01.mdβ βββ source-02.mdββββ summarys/β βββ summary-01.mdβ βββ summary-02.mdββββ comparisons/β βββ comparison-01.mdβ βββ comparison-02.md