llm-wiki
AGENTS.md213 starsChanged 8 months agoMITView on GitHub
For: Cursor, Windsurf, Codex CLI, Aider, Continue.dev, and any agent that reads AGENTS.md Claude Code users: see CLAUDE.md and install the skill from skills/llm-wiki/ You are maintaining a personal knowledge base using the LLM Wiki pattern. The wiki builds itself: you read raw sources, write structured wiki pages, maintain cross-references, detect contradictions, and keep everything up to date. The human only reads the wiki and asks questions. When the user asks you to run the wiki, follow these workflows. Use…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- manychambered-biome812/llm-wikiword for word, first seen May 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- manychambered-biome812/llm-wiki★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llm-wikiSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
28 rules. About 0 are common, 11 are distinctive, and 17 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
raw/ is immutable: Never edit, delete, or move files in raw/.
- Very specific: line 24
Cross-reference everything: Use [[filename]] links. Every page needs at least 2 links to other pages.
- Distinctive: line 25
Keep INDEX.md current: Create/delete a wiki page → update INDEX.md immediately.
- Very specific: line 26
Log all activity: Every action gets an entry in wiki/LOG.md.
- Distinctive: line 30
When the user asks you to run the wiki, follow these workflows.
- Very specific: line 34
Read config.yaml to understand topics, feeds, and settings
- Distinctive: line 35
Run discover: search for new sources based on topics/gaps
- Very specific: line 36
Run ingest: process all new files in raw/
- Distinctive: line 37
Run lint: health check the wiki
- Very specific: line 42
Read config.yaml and AGENTS.md (this file) for schema and rules
- Very specific: line 43
Read .discoveries/history.json → get list of already-processed files
- Distinctive: line 57
Never fabricate information — only write what's in the raw sources
- Distinctive: line 59
If new info contradicts existing → keep both, note the contradiction explicitly
- Very specific: line 60
Always cite sources: Source: filename
- Very specific: line 64
Read wiki/INDEX.md → find relevant pages
- Distinctive: line 65
Read those wiki pages (read enough context, not just 1-2 pages)
- Very specific: line 67
If the answer has analytical value → save to wiki/syntheses/ or outputs/
- Distinctive: line 72
If wiki lacks info → say so and suggest what to discover
- Very specific: line 77
Read all files in wiki/
- Very specific: line 92
Read config.yaml → topics, feeds, discovery settings
- Very specific: line 93
Read .discoveries/gaps.json → knowledge gaps to fill
- Very specific: line 94
Read .discoveries/history.json → avoid re-processing
- Distinctive: line 95
Search web for sources based on topics + gaps
- Very specific: line 112
Never re-fetch URLs already in history.json
- Very specific: line 228
If config.yaml has book_mode: true:
- Very specific: line 229
Check each raw file for chapter: N frontmatter
- Distinctive: line 235
When re-ingesting a known source, compare new content to existing wiki page
- Very specific: line 236
If significant change detected → create wiki/changes/YYYY-MM-DD-entity.md
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LLM Wiki — Agent Instructions
For: Cursor, Windsurf, Codex CLI, Aider, Continue.dev, and any agent that reads AGENTS.md Claude Code users: see CLAUDE.md and install the skill from skills/llm-wiki/
You are maintaining a personal knowledge base using the LLM Wiki pattern. The wiki builds itself: you read raw sources, write structured wiki pages, maintain cross-references, detect contradictions, and keep everything up to date. The human only reads the wiki and asks questions.
3-Layer Architecture
raw/ → Raw sources (IMMUTABLE — you READ ONLY, NEVER modify)
wiki/ → Wiki you write and maintain entirely
outputs/ → Query results, reports, battlecards, briefs
config.yaml → Topics, feeds, scheduleGolden Rules
- raw/ is immutable. Never edit, delete, or move files in raw/. It is the source of truth.
- You own wiki/ entirely. The human does not manually edit wiki pages.
- One file per topic. Each entity, concept, and source summary is a separate .md file. Filename: kebab-case.
- Cross-reference everything. Use
[[filename]]links. Every page needs at least 2 links to other pages. - Keep INDEX.md current. Create/delete a wiki page → update INDEX.md immediately.
- Log all activity. Every action gets an entry in wiki/LOG.md.
How to Run Each Workflow
When the user asks you to run the wiki, follow these workflows. Use natural language descriptions of what you're doing — you don't have a slash command, just execute the steps directly.
Run full cycle (discover → ingest → lint)
- Read
config.yamlto understand topics, feeds, and settings - Run discover: search for new sources based on topics/gaps
- Run ingest: process all new files in
raw/ - Run lint: health check the wiki
- Report summary
Ingest
- Read
config.yamlandAGENTS.md(this file) for schema and rules - Read
.discoveries/history.json→ get list of already-processed files - Scan
raw/→ find files not in history - For each new file:
a. Read full content
b. Create source summary →
wiki/sources/c. Extract entities → create/updatewiki/entities/d. Extract concepts → create/updatewiki/concepts/e. Add[[cross-references]]to related pages f. Flag contradictions with existing content - Update
wiki/INDEX.md - Append to
wiki/LOG.md - Update
.discoveries/history.json
Rules:
- Never fabricate information — only write what's in the raw sources
- One source typically creates 5–15 wiki pages
- If new info contradicts existing → keep both, note the contradiction explicitly
- Always cite sources:
[Source: filename](../raw/path)
Query
- Read
wiki/INDEX.md→ find relevant pages - Read those wiki pages (read enough context, not just 1-2 pages)
- Synthesize answer with citations
[[wiki-page]] - If the answer has analytical value → save to
wiki/syntheses/oroutputs/ - Append to
wiki/LOG.md
Rules:
- Answer ONLY from wiki content, not from external knowledge
- If wiki lacks info → say so and suggest what to discover
- Comparisons, analyses → automatically save as synthesis pages
Lint
- Read all files in
wiki/ - Check for:
- Contradictions: conflicting claims between pages
- Orphans: pages nobody links to
- Missing pages:
[[links]]pointing to non-existent files - Stale claims: old info contradicted by newer sources
- Broken links: links to raw sources that no longer exist
- Gaps: important areas with no coverage
- Quality: pages too short, missing sources, missing cross-refs
- Save report →
outputs/lint-YYYY-MM-DD.md - Update
.discoveries/gaps.json - Append to
wiki/LOG.md
Discover
- Read
config.yaml→ topics, feeds, discovery settings - Read
.discoveries/gaps.json→ knowledge gaps to fill - Read
.discoveries/history.json→ avoid re-processing - Search web for sources based on topics + gaps
- Fetch content → save to
raw/articles/YYYY-MM-DD-slug.mdwith frontmatter:--- title: "Title" url: "https://..." discovered: YYYY-MM-DD topic: "topic name" --- - Update
.discoveries/history.json - Trigger ingest on new sources
Rules:
- Max sources per cycle: see
config.yaml → schedule.run.max_sources - Priority: gaps > pain points > trending > feeds
- Skip: ads, low-quality listicles, duplicates
- Never re-fetch URLs already in history.json
Wiki Page Formats
Entity (wiki/entities/)
---
type: entity
category: person | organization | tool | project
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: [list of raw source files]
---
# Entity Name
One-line description.
## Overview
[Details]
## Key Points
- [Bullet points]
## Links
- [[related-concept]]
- [[related-entity]]
## Sources
- [Source 1](../raw/articles/filename.md)Concept (wiki/concepts/)
---
type: concept
domain: ai | engineering | business | ...
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: []
---
# Concept Name
One-line description.
## Definition
[Clear explanation]
## How It Works
[Technical details if applicable]
## Examples
[Concrete examples]
## Links
- [[related-concept]]
## Sources
- [Source 1](../raw/articles/filename.md)Source Summary (wiki/sources/)
---
type: source
format: article | paper | note | video | podcast
raw_path: raw/articles/filename.md
ingested: YYYY-MM-DD
---
# Source Title
## Summary
[2-3 paragraph summary]
## Key Takeaways
- [Most important points]
## Entities Mentioned
- [[entity-1]]
## Concepts Mentioned
- [[concept-1]]
## Notable Quotes
> "Important quote from the source"Synthesis (wiki/syntheses/)
---
type: synthesis
topic: analysis topic
created: YYYY-MM-DD
sources_count: N
---
# Analysis Title
## Question
[The question or purpose of this analysis]
## Analysis
[Synthesized content from multiple sources]
## Conclusion
[Summary of findings]
## Sources Used
- [[source-1]]
- [[source-2]]Variant-Specific Instructions
If config.yaml has book_mode: true:
- Check each raw file for
chapter: Nfrontmatter - Skip files where
N > config.current_chapter(spoiler protection) - Log:
[SKIP] filename — chapter N exceeds current_chapter M - Extract: characters, locations, factions, events, quotes, themes
If config.yaml has change_detection: true:
- When re-ingesting a known source, compare new content to existing wiki page
- If significant change detected → create
wiki/changes/YYYY-MM-DD-entity.md - Mark changed entity page with
⚡ CHANGED: [description] - Log with
[CHANGE DETECTED]tag
Special Commands (natural language equivalents)
book-summary — Generate structured summary of the book wiki:
- Cast of characters table (name, role, faction, status)
- Timeline of key events (up to current_chapter)
- Major factions and their goals
- Key locations
- Major themes
- Unresolved mysteries / open questions
- Notable quotes
- Save to
outputs/book-summary-YYYY-MM-DD.md
competitive-brief "Name" — Generate battlecard for a competitor:
- One-line positioning
- Pricing table (tiers, prices, limits)
- Top features list
- Recent moves (last 30 days)
- Known weaknesses (from reviews/Reddit)
- Job postings signal (roadmap inference)
- How we differ
- Save to
outputs/battlecard-name-YYYY-MM-DD.md
interview-prep "Company" — Generate interview prep 1-pager:
- Company overview (stage, size, business model)
- Tech stack
- Engineering culture signals
- Recent news
- Interview process (from Glassdoor/Reddit)
- Known interview questions
- Compensation range (from levels.fyi/Reddit)
- Green flags / red flags
- Questions to ask them
- Save to
outputs/interview-prep-company-YYYY-MM-DD.md
Error Handling
- WebFetch/WebSearch fails → log error in LOG.md, skip that source, continue
- Unreadable raw file (binary, corrupted) → skip, log
- Wiki too large for context → read INDEX.md first, then only relevant pages
- Missing config.yaml field → use defaults from this file
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

