openclaw - 💡(How to fix) Fix Feature: openclaw wiki compile - Karpathy-style browsable synthesis from workspace memory [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#70263Fetched 2026-04-23 07:27:02
View on GitHub
Comments
1
Participants
2
Timeline
1
Reactions
0
Timeline (top)
commented ×1

Karpathy LLM Wiki pattern went viral in April: instead of query-time RAG, the LLM compiles incoming sources into a persistent, browsable markdown wiki. 41k+ bookmarks on the gist. Main insight: do the synthesis work once at ingest time, save the output, never re-derive.

OpenClaw workspaces already have all the raw material a wiki-compile needs:

  • MEMORY.md long-term facts
  • memory/YYYY-MM-DD.md daily logs
  • modules/*/CONTEXT.md module state-of-play
  • Optionally, an external memory like OpenBrain (separate proposal)

There is no built-in way to compile this into a browsable synthesis today.

Root Cause

Karpathy LLM Wiki pattern went viral in April: instead of query-time RAG, the LLM compiles incoming sources into a persistent, browsable markdown wiki. 41k+ bookmarks on the gist. Main insight: do the synthesis work once at ingest time, save the output, never re-derive.

OpenClaw workspaces already have all the raw material a wiki-compile needs:

  • MEMORY.md long-term facts
  • memory/YYYY-MM-DD.md daily logs
  • modules/*/CONTEXT.md module state-of-play
  • Optionally, an external memory like OpenBrain (separate proposal)

There is no built-in way to compile this into a browsable synthesis today.

RAW_BUFFERClick to expand / collapse

Context

Karpathy LLM Wiki pattern went viral in April: instead of query-time RAG, the LLM compiles incoming sources into a persistent, browsable markdown wiki. 41k+ bookmarks on the gist. Main insight: do the synthesis work once at ingest time, save the output, never re-derive.

OpenClaw workspaces already have all the raw material a wiki-compile needs:

  • MEMORY.md long-term facts
  • memory/YYYY-MM-DD.md daily logs
  • modules/*/CONTEXT.md module state-of-play
  • Optionally, an external memory like OpenBrain (separate proposal)

There is no built-in way to compile this into a browsable synthesis today.

Proposal

Add openclaw wiki compile as a first-class command:

  • Reads memory files + active module CONTEXT.md files from the workspace.
  • Optionally merges in an external memory target.
  • Regenerates a wiki/ directory at workspace root with:
    • index.md — catalog of pages with one-line summaries
    • modules/<name>.md — one synthesis page per active module
    • log.md — append-only compile log
  • Uses the active OpenClaw model. Safe to run on local Ollama for privacy.
  • Idempotent: running on unchanged input produces the same files.

Working reference implementation

I built a working version as a single Node script (~230 LOC, no deps beyond Node fetch). Design notes:

  • Deterministic skeleton (file layout, index, log) written by the tool. The LLM only writes the synthesis body per module. Smaller hallucination surface, much cheaper.
  • Never touches raw sources. wiki/ is regenerated, not edited.
  • Output is genuinely readable and useful — the synthesis pulls recent activity, open loops, and key files from CONTEXT.md cross-referenced against daily memory.

Compile time: 5 modules in ~45 seconds on qwen2.5-coder:7b once the model is warm.

Learned the hard way: Ollama's watchdog kills models at >25% CPU, and gemma4:26b idles at 26-29% during normal generation. Defaulted to qwen2.5-coder:7b which stays comfortably under. Worth documenting either in OpenClaw or in the Ollama watchdog upstream.

Why this fits OpenClaw's ethos

OpenClaw already has the best memory primitives of any agent stack I have used. A compile step turns them into a browsable artifact humans can actually read, without forcing anyone onto an external tool (though it pairs great with Obsidian if you want the graph view). Following the Karpathy pattern keeps OpenClaw on the right side of the "do work once, not every query" divide.

What I would like from maintainers

  1. Is this in scope for core, or should it stay a user-space tool?
  2. If in scope: draft PR, or start with a design doc?

— Simon (running the full OpenClaw stack on Windows 11 home setup with local Ollama)

extent analysis

TL;DR

Implement the proposed openclaw wiki compile command to generate a browsable wiki from existing memory files and module state.

Guidance

  • Review the working reference implementation provided as a Node script to understand the proposed functionality and its feasibility.
  • Consider the scalability and performance implications of running the compilation process, especially with larger workspaces or more complex module configurations.
  • Evaluate the compatibility of the proposed feature with the existing OpenClaw architecture and ethos, focusing on the "do work once, not every query" principle.
  • Discuss the scope of the feature with maintainers to determine whether it should be integrated into the core or remain a user-space tool.

Example

No specific code example is provided due to the high-level nature of the proposal, but the working reference implementation mentioned can serve as a starting point for further development or integration.

Notes

The success of this feature depends on the efficiency of the compilation process, especially considering the CPU usage constraints imposed by Ollama's watchdog. The choice of model, such as qwen2.5-coder:7b, is crucial for staying within these limits.

Recommendation

Apply the proposed openclaw wiki compile command as a user-space tool initially, allowing for testing and refinement before considering integration into the core, should it prove beneficial and align with OpenClaw's ethos.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature: openclaw wiki compile - Karpathy-style browsable synthesis from workspace memory [1 comments, 2 participants]