Refactor, don’t append.
When a new source changes an answer, rewrite its existing page and remove the repeated explanation.
The page limit is 650 body words. Split by the question a reader wants answered.
Give your coding agent a wiki it maintains: current answers, linked to original sources, with repeated notes merged away.
For Claude Code, Codex, Cursor and Grok Bot.
The free starter includes the folder template, minimal agent rules, page template, Python checker and generic ingest + prune routines.
Use a local agent with file access. The checker needs Python 3.10+ and uses only the standard library.
Download starter ZIPFree ZIP. Direct download.Give your agent this instruction:
fetch https://lab.anonyfox.com/compiled-wiki/AGENTS.md and set up a compiled wiki in this folderMerge these rules with your existing instructions before working in a populated folder. The fetched rules are the short entry point; the ZIP also contains the checker and prompts.
Read the starter AGENTS.mdLantern seed-swap. A fictional project with 20 source notes.
I started with two notes for each topic. Each note repeated the source text and added a claim about hundreds of visitors. The source notes supported no such forecast. I ran the five routines in order and removed the forecast during the rewrite. Pruning kept one page per topic and left a redirect at each retired ID.
The 20 raw source notes are unchanged. The final checker run reports zero errors. Source support was reviewed separately from citation presence.
| Measure | Before | After |
|---|---|---|
| Active pages | 41 | 21 |
| Words | 2113 | 487 |
| Broken links | 40 | 0 |
| Orphan pages | 39 | 0 |
| Unsourced claim lines | 160 | 0 |
| Duplicate topics | 20 | 0 |
Active pages exclude redirects. The after wiki also keeps 20 redirects, so 41 Markdown files remain. Words include headings, link paths and redirect bodies. Unsourced claims counts prose lines missing a valid inline citation; duplicate topics counts matching normalized titles.
When a new source changes an answer, rewrite its existing page and remove the repeated explanation.
The page limit is 650 body words. Split by the question a reader wants answered.
Keep W-0001 when its title changes, and preserve its ID as a redirect or tombstone when you merge it.
One fact belongs in one current page; the other pages link there.
Link every factual paragraph to its raw evidence, then read that evidence before you use the claim.
Raw files stay untouched.
Each prompt includes inputs, steps, stop conditions and a report. Run the checker before and after. The report records pages, words, links, orphans and unsourced claims.
Stop on missing sources, conflicting evidence or ambiguous IDs. Resolve the affected change before continuing.
A bounded batch of raw files
Find the existing topic owner. Attach sources, propose new pages and surface conflicts.
The approved ingest plan
Rewrite the current answer. Cite each claim and remove repeated explanations.
Changed page IDs and the index
Repair targets. Connect useful next steps and bring orphan pages back into reach.
Pages you are about to rely on
Read claims against sources. Run the checker and record what remains unresolved.
A reviewed merge or removal plan
Merge overlap into the keeper. Repair inbound links and preserve retired IDs.
Keep the whole operating loop beside your notes.

€19
One-time payment.
Buy the full kit · €19Files by email within 24 hours.
Use in your own and client projects. Do not resell or redistribute the kit.
No VAT is charged under § 19 UStG (German small business regulation).
You can keep reading in Obsidian and let your agent maintain the same Markdown folder.
Bring your own agent and model access. Start with one project you need to write about again. Give the agent a few sources, run ingest and read the report. The kit supplies the prompts and rules for that loop. For Grok Bot, you configure the runner and file access before using the suggested schedules.
Start in a fresh folder with a small source batch. Keep the originals in raw/ and let the agent propose current wiki pages. For an existing vault, merge the rules first and work on a backed-up copy. You choose what enters the wiki.
The rules prohibit editing or deleting raw/. Each maintenance run records source hashes and checks them afterwards. Merges keep the retired wiki ID as a redirect or tombstone. Inspect the diff before accepting the run.
It checks source paths and whether prose lines have inline citations. It cannot decide whether the evidence supports the sentence. The review routine reads source and claim together and reports contradictions or unsupported claims.
Yes. Topic files are named after their stable IDs, so [[W-0001]] opens W-0001.md in Obsidian. The index stays index.md. Your agent needs local file access; Obsidian can remain the view you read. Notion import and sync are not included.
Claude Code gets slash-command files. Codex and other file-based agents use AGENTS.md and the generic prompts. Cursor gets a rule file pointing to the shared contract. Grok Bot gets routine text with suggested schedules. You configure its file access and runner.
It includes generic ingest and prune, the folder template, minimal rules and the same checker. The full kit adds write, link and review, all five routines in three flavours, the agent entry-point files, the ten-page guide and the worked example with logs.
Ingest a bounded batch when evidence arrives. Write and link the affected pages. Review before using the wiki for a decision, then review and prune weekly if there is overlap to fix. Read each report before continuing.
Pay €19 once. The kit ZIP and the guide in A4 and US Letter arrive at your checkout email address within 24 hours. Stripe sends the receipt separately. You can use and adapt the files for your own and client projects; the kit itself may not be resold or redistributed.
Try the starter on one topic. Add the full routines and worked example when you want the complete maintenance loop.