Borrowing it
Nothing to install: this file belongs to emgiezet/llmwiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/emgiezet/llmwiki/main/CLAUDE.mdgit clone --depth 1 https://github.com/emgiezet/llmwikiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/emgiezet/llmwiki/claude-md)<a href="https://agentmods.dev/instructions/emgiezet/llmwiki/claude-md"><img src="https://agentmods.dev/badge/instructions/emgiezet/llmwiki/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/emgiezet/llmwiki/claude-md"><img src="https://agentmods.dev/badge/instructions/emgiezet/llmwiki/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02159 | $0.02159 |
| Opus 5 | $0.01079 | $0.01079 |
| Sonnet 5 | $0.00432 | $0.00432 |
| Haiku 4.5 | $0.00216 | $0.00216 |
Grade A, and why
llmwiki CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Commands
go build ./... # build everything
go build -o llmwiki . # build the binary
go test ./... # run all tests
go test ./internal/ingestion/... -v # run a specific package
go test ./... -run TestFoo -v # run a single test by name
go vet ./... # static analysis
llmwiki setup # interactive global config wizard (~/.llmwiki/config.yaml)
llmwiki init # interactive per-project wizard (no flags + TTY)
Architecture
The binary is a single cobra CLI. main.go wires the subcommands from internal/cmd/. The core data flow is:
ingest: scanner (+ extractor) → ingestion → llm → wiki
internal/scanner— walks a project directory and collects relevant files (README, go.mod, docker-compose, .proto, etc.) into a single text summary.DetectServicesauto-detects multi-service layouts from docker-compose.yml first, then subdirectory heuristics.ScanProject(ctx, dir, opts...)takes aWithExtractoroption; when set, binary document files (.pdf/.docx/.odt/.epub) are converted to text and folded into the summary (capped at 50 files / ~50 KB each).internal/extractor— shells out to configurable external converters (pandoc,pdftotext) to turn document files into text.CommandExtractormaps an extension to a command template ({{input}}placeholder, run without a shell), mirroring the subprocess pattern inllm/cli_backend.go. A missing tool yieldsErrToolNotFoundand the scanner skips the file rather than failing.
internal/ingestion— orchestrates the pipeline: scan → prompt → LLM call → write.IngestProjectbranches on whether services were detected: zero services = single project file, one+ services = one file per service.internal/llm— three backends behind theLLMinterface (Generate(ctx, prompt) (string, error)):claude-code(shells toclaude -p),claude-api(Anthropic SDK),ollama(REST).NewFakeLLMis the test double used throughout.internal/wiki— reads/writes markdown files with YAML front matter.WriteProjectEntry/WriteServiceEntryown the file format.UpsertIndexmaintains the master_index.md.query.goadds a read-only, LLM-free query layer:Store(rooted at the wiki dir) withSearch(client, project)(filters_index.md; client = exact case-insensitive, project = substring),GetProject(client, project, service), andListServices. It composes the existingReadIndex/Parse*Entry/ExtractSectionhelpers and backs the MCP server.knowledge.go— the knowledge-layer axis (see Wiki Storage Layout).SearchKnowledge(layers, query)(empty query = list),GetKnowledge(layer, topic),ListKnowledgeLayers(). Filesystem-walked rather than index-driven, so front matter is optional and a layer can be a git submodule. Layer names are validated withvalidation.NameComponentbecause they're joined into paths;safeio.ReadRegularFilerefuses symlinks;.gitdirs are skipped.
internal/config— three-level config: global (~/.llmwiki/config.yaml), per-client (~/.llmwiki/clients/<customer>.yaml), and per-project (llmwiki.yaml).Mergeresolves them project > client > global. Slice-valued fields (Extraction.Sections,Knowledge) replace rather than append.internal/tracker— change tracking via git history.cochange.goclusters files that change together (union-find, 30% co-occurrence threshold) intoAreas;area.gocomputes a content-addressed hash fromgit ls-tree HEADoutput;freshness.gocompares a stored hash against the current one.GitRunneris the injectable git-subprocess interface (real impl shells togit,fakeGitRunnerin tests). At ingest timeingestion.buildTrackingwrites the resultingwiki.TrackingMetainto entry front matter;cmd/check.gore-checks it.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 91 lines · 2,159 tokens per session scan A f6f27dd865c1
llmwiki CLAUDE.md is an instructions file published in the GitHub repository emgiezet/llmwiki (11 stars, last pushed 8d ago), licensed MIT. It adds 2,159 tokens to every session, about $0.0108 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.