wiki-llm
AGENTS.md0 starsChanged 4 months agoMITView on GitHub
Canonical copy: this file is the source of truth for Codex-style discovery. CLAUDE.md mirrors it for tools that read CLAUDE.md. Plugin workflows are edited in docs/AGENTS.shared.md and synced here (and into rules/llm-wiki.mdc) with bin/llm-wiki sync-agent-docs (or python3 scripts/sync_agent_docs.py). This repo is the llm-wiki plugin: a Python CLI (bin/llm-wiki), slash-command prompts (commands/), skills (skills/*/SKILL.md), and agent personas (agents/, prompts/PERSONA.md). Vault layout is raw/ (sources) → wiki/ (curated markdown) + optional outputs/ (drafts/reports); see ETHOS.md and WORKFLOWS.md. First-time setup: docs/QUICKSTART.md (vault vs…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 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 repository36 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- wiki-extract-annasSkill
- wiki-extract-crunchbaseSkill
- wiki-extract-ebookSkill
- wiki-extract-ecommerceSkill
- wiki-extract-githubSkill
- wiki-extract-linkedinSkill
- wiki-extract-newsletterSkill
- wiki-extract-patentsSkill
- wiki-extract-paywallSkill
- wiki-extract-podcastSkill
- wiki-extractSkill
- wiki-extract-wikipediaSkill
- wiki-extract-youtubeSkill
- wiki-fetchSkill
- wiki-ingestSkill
- wiki-learnSkill
- wiki-lintSkill
- wiki-maintainerSkill
- wiki-onboardSkill
- wiki-pipelineSkill
- wiki-querySkill
- wiki-raw-prepareSkill
- wiki-research-academicSkill
- wiki-research-deepSkill
- wiki-research-feedsSkill
- wiki-research-loopSkill
- wiki-research-newsSkill
- wiki-researchSkill
- wiki-research-socialSkill
- wiki-research-webSkill
- wiki-retroSkill
- wiki-session-memorySkill
- wiki-setupSkill
- wiki-statusSkill
- wiki-upgradeSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
When editing the vault template under templates/llm-wiki/, keep llm-wiki/CLAUDE.md and config.json schema consistent with README.md and …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
AGENTS — wiki-llm
Canonical copy: this file is the source of truth for Codex-style discovery. CLAUDE.md mirrors it for tools that read CLAUDE.md. Plugin workflows are edited in docs/AGENTS.shared.md and synced here (and into rules/llm-wiki.mdc) with bin/llm-wiki sync-agent-docs (or python3 scripts/sync_agent_docs.py).
<!-- BEGIN AGENTS_SHARED -->Repo summary
This repo is the llm-wiki plugin: a Python CLI (bin/llm-wiki), slash-command prompts (commands/), skills (skills/*/SKILL.md), and agent personas (agents/, prompts/PERSONA.md). Vault layout is raw/ (sources) → wiki/ (curated markdown) + optional outputs/ (drafts/reports); see ETHOS.md and WORKFLOWS.md. First-time setup: docs/QUICKSTART.md (vault vs plugin repo, five-minute path, basic/intermediate/advanced tiers).
Common workflows (all tools)
- CLI —
bin/llm-wiki(works from any cwd if invoked by absolute path) orpython3 scripts/llm_wiki.pyfrom the repo root forsetup,ingest,validate,lint/diff/compile/knowledge-test,raw validate/raw record/raw finish(validate + log +[prepare]commit;raw/memory/skipped),build-site,graph,git,research-loop,memory {save|log|list|show|recall|prune}(session memory underraw/memory/whenmemory.enabled, opt-in), etc./llm-wiki:setup(seecommands/setup.md; full wizard inskills/wiki-setup/SKILL.md) is the slash entry for wiki-setup: combined vault + optional session memory (Section 8c), or vault-only / memory-only tracks./llm-wiki:configure(seecommands/configure.md) is the slash entry for quick config tweaks after setup (MCPwiki_configure,llm-wiki configure -i, or previewed edits)./llm-wiki:status(seecommands/status.md) is the slash entry for wiki-status (vault health: MCPwiki_status,llm-wiki integrations status, skill dashboard). (Do not usePYTHONPATH=scripts—relativePYTHONPATHcan crash Python 3.14+ at startup; the script addsscripts/tosys.pathautomatically.) - Commands as prompts — Open
commands/<name>.md; same text as/llm-wiki:…. - Skills — wiki-pipeline (end-to-end vault flow), wiki-maintainer, wiki-ingest, wiki-raw-prepare, wiki-query, wiki-lint, wiki-status, wiki-setup, wiki-research (ad-hoc topic), wiki-research-loop (batch tasks), wiki-retro, wiki-learn (
.agent-memory.md), wiki-session-memory (raw/memory/per-chat notes), wiki-upgrade (plugin repo pull) inskills/*/SKILL.md. Pipeline artifacts:skills/references/pipeline-artifacts.md. - Context —
WORKFLOWS.md,ETHOS.md,prompts/PERSONA.md. - Agent doc sync (this plugin repo only) — After editing
docs/AGENTS.shared.md, runbin/llm-wiki sync-agent-docsto refreshAGENTS.md,CLAUDE.md, andrules/llm-wiki.mdc. Before merge,bin/llm-wiki sync-agent-docs --check(orbin/llm-wiki check --plugin-repo) must pass. Equivalent:python3 scripts/sync_agent_docs.pyfrom the repo root. Do not commit a.claude/tree under the plugin root (except nothing, or only gitignored locals): it prevents Claude Code from loadingskills/in the plugin (anthropics/claude-code#44120).
MCP server: bin/llm-wiki mcp starts a stdio JSON-RPC server (default) exposing vault tools (search, knowledge graph, ingest, validate, session memory, etc.). bin/llm-wiki mcp --transport sse --port 8891 starts an HTTP listener on mcp.host/mcp.port (default 127.0.0.1:8891): POST / or /mcp with a JSON-RPC body, application/json response (stdlib scripts/mcp_sse.py). Plugin marketplace installs auto-register stdio via mcpServers in .claude-plugin/plugin.json and .cursor-plugin/plugin.json. Manual install: bin/llm-wiki mcp install. Config in llm-wiki/config.json: mcp.enabled, mcp.transport (stdio | sse), mcp.port / mcp.host, mcp.search_backend (fts5 default — BM25 via stdlib sqlite3 | grep | chromadb — semantic embeddings; requires pip install chromadb, falls back to grep if missing | hybrid — FTS5 + Chroma reciprocal-rank fusion; requires Chroma, falls back to fts5 if missing), mcp.hybrid_rrf_k (RRF k for hybrid only, default 60), optional mcp.tools_mode / mcp.tools_allowlist / mcp.max_response_chars / mcp.configure_allowlist / mcp.benchmark_tool_enabled / mcp.ingest_enabled / mcp.sse_require_loopback / mcp.sse_token (trust model and HTTP hardening — skills/references/mcp-and-kg.md), knowledge_graph.backend (json | sqlite), knowledge_graph.auto_update_on_ingest (runs kg rebuild after ingest post-processing), memory.enabled / memory.dir / memory.max_sessions (opt-in session memory). Prefer CLI when running locally; use MCP when the host only exposes tools.
Knowledge graph CLI: bin/llm-wiki kg {add|query|invalidate|timeline|stats|rebuild|conflicts} — entity-relationship triples in llm-wiki/.kg.json (default) or .kg.sqlite3 when knowledge_graph.backend=sqlite. Optional knowledge_graph.aliases / allowed_predicates. Shared reference: skills/references/mcp-and-kg.md.
Knowledge compiler: bin/llm-wiki {lint|diff|compile|knowledge-test} (+ MCP wiki_lint, wiki_compile, wiki_knowledge_test). After wiki merge: compile; surgical compile --raw <path>.
Session memory CLI: bin/llm-wiki memory {save|log|list|show|recall|prune} — per-chat files under llm-wiki/raw/memory/ when memory.enabled; hooks write llm-wiki/.current-session for --current.
Benchmark CLI: bin/llm-wiki benchmark {run|suites|report|history|compare|analyze} — retrieval benchmarks (LME / LoCoMo / ConvoMem) and metrics under benchmark.*. Guide: benchmarks/README.md.
Static viewer “Open file”: In llm-wiki/config.json, set viewer.open_file_scheme to cursor or vscode when you want wiki links to open the editor.
Python: Match existing style in scripts/; run tests or python3 -m compileall if you touch CLI code. Personal/demo scripts belong in scripts/.tmp/ (gitignored), not tracked scripts/. Optional pip deps (requirements-optional.txt, e.g. Chroma): use a venv; PEP 668 / externally managed interpreters often block global pip install — see README.
When editing the vault template under templates/llm-wiki/, keep llm-wiki/CLAUDE.md and config.json schema consistent with README.md and WORKFLOWS.md.
<!-- END AGENTS_SHARED -->How each tool uses this repository
| Tool | Mechanism | Best reference |
| Claude Code | /.claude-plugin/plugin.json — install via Anthropic plugin marketplace; slash commands map to commands/*.md. | Discover plugins, README.md |
| Cursor | Project rules: rules/llm-wiki.mdc (canonical); also available as .cursor/rules/llm-wiki.mdc (symlink so Cursor discovers them). Cursor Marketplace plugins use .cursor-plugin/plugin.json plus rules/, skills, MCP, hooks — see Cursor docs. | Cursor plugins, Rules, Publish a plugin |
| OpenAI Codex CLI | Walks the tree for AGENTS.md / AGENTS.override.md. Project knobs: .codex/config.toml (this repo) and ~/.codex/config.toml. Merges from repo root down; size limit applies. | Custom instructions with AGENTS.md |
This file (AGENTS.md) is optimized for Codex and any agent that reads a single root instruction file. Cursor still loads rules/*.mdc automatically when you open the repo; the rule body matches the shared block above.
Claude Code (first-class)
Install the plugin from the marketplace (see README.md), then use /llm-wiki:… commands. Each command’s text lives in commands/<name>.md (same content as the slash command).
Cursor (editor + optional Marketplace plugin)
- Clone and open: Rules live in
rules/llm-wiki.mdc.AGENTS.md(this file) is extra context if you paste it or if your team mirrors it into rules. - Marketplace: Cursor plugins bundle rules, skills, MCP, hooks, subagents (announcement). This repo ships
.cursor-plugin/plugin.jsonnext to/.claude-plugin/so maintainers can submit the same codebase to the Cursor Marketplace (curated review). Until listed, use clone +rules/like any project.
There is no separate “VS Code extension” for llm-wiki — automation is the CLI + agent instructions above.
OpenAI Codex CLI
Codex loads AGENTS.md before tasks (discovery order). Use bin/llm-wiki from a terminal and commands/*.md as manual prompts. If instructions exceed the byte budget, raise project_doc_max_bytes in ~/.codex/config.toml or .codex/config.toml, or split overrides across nested AGENTS.override.md files.
User projects (after llm-wiki setup)
A scaffolded vault lives under llm-wiki/ with llm-wiki/CLAUDE.md (vault rules). If your tool only reads AGENTS.md at the project root, copy or summarize the relevant rules from llm-wiki/CLAUDE.md so Codex-style agents see the same constraints. You can also add CLAUDE.md to Codex’s project_doc_fallback_filenames if you standardize on that filename.
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.

