Skip to content

v4.0.0 — Cognition (The LLM Wiki Release)

Latest

Choose a tag to compare

@JubaKitiashvili JubaKitiashvili released this 18 Apr 00:26
· 9 commits to main since this release

v4.0.0 — Cognition

The LLM Wiki release. Reference implementation of Andrej Karpathy's LLM Wiki pattern (2026-04-04). Dual-pillar positioning: Memory (LLM Wiki) + Compression (15 content-aware summarizers). First-in-class Obsidian plugin. Published Context Protocol v1 Draft RFC. Eight IDE integrations documented.

Headline features

  • Synthesis pages — entity and topic pages auto-update incrementally as new observations arrive. LLM-gated via ai_curation.enabled with deterministic template fallback.
  • Answer-as-Pageask({save_as_page: true}) and search({file_as: 'knowledge'}) persist synthesized answers into vault/answers/*.md with source citations.
  • Obsidian plugin v1 — sidebar pane, command palette (observe selection / observe file / open dashboard), status-bar bridge indicator, settings tab. Standalone build in obsidian-plugin/.
  • Context Protocol v1 Draft RFCdocs/context-protocol-v1.md. Formal 3-layer interop spec. Community review open.
  • 8 IDE integration guides — Cursor, Windsurf, VS Code, Cline, Roo Code, Aider, Continue, JetBrains AI. Each config verified from canonical docs.
  • 15th summarizer — Python traceback (skips library frames, extracts user-code frames).
  • Dashboard /compression page — per-content-type savings bar chart + savings-ratio histogram.
  • Unified search({scope, mode, filters, cursor, limit}) — one tool subsumes 7 legacy retrieval tools (legacy tools still work with deprecation _meta).

Refactor (no behavior change)

  • src/mcp-server/tools.ts (2576 LOC) → 8 domain modules + barrel
  • dashboard/server.js (7890 LOC) → 6 modules

Benchmarks

v3.4.0 published pure-local retrieval scores; v4.0.0 full sweep (E2E QA baseline + synonym-migration deltas + all 4 suites) is being run alongside this release — results published to benchmarks/results/v4-release-2026-04-18.json and the synonym-migration delta table.

Tests

1182 → 1253 (+71 new).

Credits

  • Andrej Karpathy — LLM Wiki paradigm framing
  • @AlexisOlson — benchmark-methodology review (#6), carried forward
  • Vannevar Bush — "As We May Think" (1945)

Install

npm install -g context-mem
# In your project root
context-mem serve

Integrations: docs/integrations/
Schema: docs/llm-wiki-schema.md
Protocol: docs/context-protocol-v1.md
Full changelog: CHANGELOG.md

What's next

v4.1 "Network" (Month 3): HNSW vector index, bulk-ingest endpoint, Obsidian plugin community-store submission, Context Protocol RFC v1.1 (based on community feedback).