Summary
A self-updating LLM wiki for your agent: raw and wiki folders, CLAUDE.md rules, and a refresh step
An LLM wiki gives an agent a knowledge base it builds itself: it reads each source once, writes what it learned into linked Markdown pages, and answers from those pages instead of searching again. Most versions go stale because nothing adds new sources. This video adds a refresh step. The scraping service is the video's sponsor; the folder design and the refresh logic work with any fetch tool.
"Give Your AI Agent a Brain That Updates Itself" by Tech With Tim — Watch on YouTube → Sponsored by a web-scraping API that provides the CLI and plugin used for fetching; the creator also mentions a dictation app. The plugin commands are the sponsor's and are not checked here.
The structure
raw/: source documents as clean Markdown. The agent never edits these.wiki/: pages the agent writes and links, including an index.CLAUDE.md: plain-language rules for how to search, fetch and write the wiki. UseAGENTS.mdfor agents that read that file instead.topic.yaml: the only file you normally edit. It holds the topic, a list of searches, the number of results, sites to watch, and doc sections to crawl once for background.sources.json: a short hash ("fingerprint") of each saved page's content.
The four operations
- Ingest: read a new source and update the pages.
- Query: answer questions from the wiki.
- Lint: check the wiki for contradictions and gaps.
- Refresh (the addition): search for new sources, map watched sites to their URLs (filtered by path, for example only the changelog), crawl doc sections, scrape single pages, then compare fingerprints so only changed or new pages are processed. A later run in the video reported 14 unchanged, 150 changed and 31 new out of 195 sources, and put the updates in an
updatesfolder.
Details worth copying
- Save fetched pages straight to files, not into the agent's context. Some pages run to a million characters; reading them in would overflow the context window and force compaction.
- Fingerprints make refresh cheap: compare hashes instead of re-reading everything.
- Schedule the refresh. The video creates a scheduled task in the Claude desktop app ("refresh the wiki every day"); a VPS or another agent's scheduler works the same way.
- Open the folder in Obsidian as a vault to browse the pages and the link graph. Optional.
- Plain
curlgot a 403 on a bot-protected site in the video's demo, which is why it uses a scraping service with JavaScript rendering. For docs and changelogs that allow automated reads, any fetch tool works.
Compare: Claude second-brain levels and Lance Martin's dreaming pass, which reorganizes a wiki like this one offline.





