llm-wiki: Instructions file for Claude Code

CLAUDE.md

llm-wiki CLAUDE.md is an instructions file for Claude Code from ddsyasas/llm-wiki. It costs 744 tokens per session, scanned A, original, MIT.

Project instructions for LLM Wiki, a local-first knowledge base inspired by a wiki, where information is stored on the user’s computer. They define the required documentation-reading order, architecture, features, data model, AI integration, and build plan.

In plain words
What is it for?
Building or modifying the wiki, document-ingestion pipeline, SQLite data model, chat threads, local files, LLM integration, user interface, and command-line distribution.
Why use it?
They give a coding agent the project specification and working rules before it changes code, reducing the risk of skipping requirements or using the wrong design.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is ddsyasas/llm-wiki's own configuration. It tells Claude Code how to work on llm-wiki itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything llm-wiki configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ddsyasas/llm-wiki. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ddsyasas/llm-wiki/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ddsyasas/llm-wiki

Made for: Claude Code.

Wrote 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.

agentmods badge for llm-wiki CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ddsyasas/llm-wiki/claude-md.svg)](https://agentmods.dev/instructions/ddsyasas/llm-wiki/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ddsyasas/llm-wiki/claude-md"><img src="https://agentmods.dev/badge/instructions/ddsyasas/llm-wiki/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 744 This file is loaded in full into every session.
When invoked 744 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00744 $0.00744
Opus 5 $0.00372 $0.00372
Sonnet 5 $0.00149 $0.00149
Haiku 4.5 $0.00074 $0.00074

Measured 8d ago against content hash 4c4244f6a19d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

llm-wiki 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 8d 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.

CLAUDE.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Project Brief for Claude Code

You are building LLM Wiki, an open source local-first knowledge base inspired by Andrej Karpathy's LLM Wiki pattern (gist: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f).

Read this first

Before writing any code, read every file in /docs/ in numerical order. Each file is short and focused. Together they form the complete spec.

  1. docs/01-vision.md - What this is and who it's for
  2. docs/02-architecture.md - Stack, repo layout, distribution
  3. docs/03-data-model.md - On-disk structure and SQLite schema
  4. docs/04-features-v1.md - Exact V1 feature scope
  5. docs/05-llm-integration.md - OpenRouter, prompts, JSON contracts
  6. docs/06-ingest-pipeline.md - How sources become wiki pages
  7. docs/07-chat-threads.md - Chat feature spec
  8. docs/08-ui-design.md - Design language and key screens
  9. docs/09-cli-distribution.md - CLI behavior and npm packaging
  10. docs/10-build-order.md - Sequenced build plan, follow this exactly
  11. docs/11-attribution-license.md - Naming, credits, license

Core principles, do not violate

  1. Everything is a file. The wiki, chats, schema, log all live as plain .md files in the user's chosen folder. SQLite is metadata only.
  2. Local-first, BYOK. No telemetry, no remote storage, no auth. Users bring their own OpenRouter key.
  3. One language: TypeScript everywhere. No Python sidecars in V1.
  4. Cross-platform: Mac, Windows, Linux all supported from day one.
  5. Karpathy's three operations are central: ingest, query, lint. Build them as separate, well-named modules.

Stack lock-in

  • Next.js (App Router) for the whole app
  • Tailwind + shadcn/ui for UI
  • better-sqlite3 for metadata
  • openai SDK pointed at OpenRouter
  • pnpm for package management
  • TypeScript strict mode

Do not introduce new frameworks without asking.

Working conventions

  • TypeScript strict mode, no any without comment explaining why
  • Functions over classes where possible
  • File names: kebab-case
  • React components: PascalCase
  • No default exports for shared modules, named exports only
  • Comments explain why, not what
  • Every LLM operation must validate its JSON response before using it

Read the full file on GitHub · 66 lines

Changes

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.

  1. 8d ago First seen · 66 lines · 744 tokens per session scan A 4c4244f6a19d

Subscribe to this mod's changes

llm-wiki CLAUDE.md is an instructions file published in the GitHub repository ddsyasas/llm-wiki (45 stars, last pushed 3mo ago), licensed MIT. It adds 744 tokens to every session, about $0.0037 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.

Related

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.

vercel/next.js · 7,296 tokens

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.

openai/codex · 5,153 tokens

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).

microsoft/vscode · 6,785 tokens

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).

microsoft/vscode · 5,001 tokens

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.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens