Add self-evolving knowledge base (Karpathy LLM-wiki pattern)#50
Draft
isaacsight wants to merge 2 commits into
Draft
Add self-evolving knowledge base (Karpathy LLM-wiki pattern)#50isaacsight wants to merge 2 commits into
isaacsight wants to merge 2 commits into
Conversation
A local-first, plain-text second brain under knowledge-base/. Five
building blocks, no external tooling:
- raw/ inputs dumping ground (messy by design)
- wiki/ organized layer: index (map), log (journal), processed
(ingestion registry so raw files are never folded twice)
- outputs/ generated artifacts
- CLAUDE.md agent-maintained operating manual; auto-loaded in-folder
- /dream-sequence lint pass: ingest new raw, flag contradictions /
stale claims / duplicates / orphans, rewrite index+log+registry
The wiki ships empty and is seeded by feeding raw/ then running the
dream sequence. Ingestion behavior and cadence are documented and
user-configurable; the manual edits itself when the rules change.
https://claude.ai/code/session_013ntEVS8fnPoxyhwJqpQgLo
End-to-end demonstration of the second brain, mirroring the workflow: feed raw, run the dream sequence, get outputs. - raw/: 3 source-cited research captures (market & adoption, technical stack/MCP/orchestration, risks & governance) - wiki/: synthesized topic page agentic-ai.md; index rebuilt with 6 concepts / 11 entities / 3 sources; log + processed registry updated - Dream-sequence lint: no contradictions/orphans/stale; merged the one duplicate theme (adoption outpacing safe deployment) into the topic page's connective thread - outputs/: agentic-ai-brief-2026.md generated from the wiki https://claude.ai/code/session_013ntEVS8fnPoxyhwJqpQgLo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A local-first, plain-text second brain under
knowledge-base/, built on Andrej Karpathy's LLM-wiki pattern. No Obsidian, no vector store, no RAG — just folders and markdown that get more useful over time because the agent organizes and audits them on every pass.The five building blocks
knowledge-base/raw/knowledge-base/wiki/index.md(the map),log.md(append-only journal),processed.md(ingestion registry)knowledge-base/outputs/knowledge-base/CLAUDE.md.claude/commands/dream-sequence.md/dream-sequencelint passHow it works
raw/, or say "save this" to a link and Claude captures it with source + date.wiki/index.mdto find where an answer lives, then pulls the relevant files./dream-sequenceingests new raw captures, lints the wiki for contradictions, stale claims, duplicates, and orphans, and rewrites the index/log/registry. Theprocessed.mdregistry ensures a raw file is never folded in twice.The wiki ships empty and is seeded by feeding
raw/then running the dream sequence. Ingestion behavior and cadence are documented and user-configurable — and the manual edits itself when the rules change.Scheduling
/dream-sequenceruns on demand; point a Claude desktop routine (or any scheduler) at it for daily/weekly auto-audits.https://claude.ai/code/session_013ntEVS8fnPoxyhwJqpQgLo
Generated by Claude Code