wikimind CLAUDE.md

wikimind CLAUDE.md is an instructions file for Claude Code from thaihoc215/wikimind. It costs 2,262 tokens per session, scanned A, original, MIT.

Project instructions for WikiMind, an LLM-powered tool that maintains a searchable wiki in a `.wiki/vault/` folder. They cover its command-line tool, MCP server, structure, build process, tests, and how to add operations.

In plain words
What is it for?
Use them when adding WikiMind operations, changing its command-line tool or MCP server, updating LLM output validation, or running its Python tests.
Why use it?
They give a coding agent the project context needed to change WikiMind safely and consistently. They also document how to build and test changes without needing live language-model API calls.

Instructions file for Claude Code

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/thaihoc215/wikimind/claude-md
Clone the repo
git clone --depth 1 https://github.com/thaihoc215/wikimind

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 wikimind CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thaihoc215/wikimind/claude-md.svg)](https://agentmods.dev/instructions/thaihoc215/wikimind/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/thaihoc215/wikimind/claude-md"><img src="https://agentmods.dev/badge/instructions/thaihoc215/wikimind/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,262 This file is loaded in full into every session.
When invoked 2,262 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.02262 $0.02262
Opus 5 $0.01131 $0.01131
Sonnet 5 $0.00452 $0.00452
Haiku 4.5 $0.00226 $0.00226

Measured 5d ago against content hash 087032732a7c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

wikimind 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 5d 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 · 195 lines

How it starts

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

WikiMind — Agent Instructions

WikiMind is an LLM-powered wiki tool that maintains itself. It has two modes: a CLI (Mode B, calls an LLM provider directly) and an MCP server (Mode A, the AI assistant IS the LLM). Both write to the same .wiki/vault/ directory.

See ARCHITECTURE.md for a full architecture walkthrough.


Build & test

pip install -e .           # install with editable mode
pip install -e ".[dev]"    # add test deps
pip install -e ".[pdf]"    # add optional PDF support

pytest                     # run all 82 tests (no API keys needed — all LLM calls are mocked)

Requires Python ≥ 3.11. Entry point: wikimind.cli:app (Typer).


Project structure

wikimind/
├── cli.py          # Typer CLI — 8 commands, each loads config → WikiStore + LLMClient + Retriever → operation
├── config.py       # TOML loader → typed dataclasses (ProjectConfig, LLMConfig, WikiConfig, PathsConfig)
├── wiki.py         # WikiStore — ALL filesystem ops (read/write pages, index, log, dedup via SHA256)
├── llm.py          # LLMClient + ProviderAdapter (Anthropic / OpenAI / Ollama) — all return (json, in_tok, out_tok)
├── llm_schema.py   # Typed frozen dataclasses + parse_*() validators for all LLM tool outputs
├── retrieval.py    # Retriever protocol + 3 backends: KeywordIndex / BM25 / Qmd
├── server.py       # FastMCP server — 10 tools, path-sandboxed, background qmd embed thread
├── operations/     # Business logic (ingest, query, lint) — no direct LLM calls in CLI commands
└── prompts/        # System prompts + JSON tool schemas for each operation

Core pattern: adding a new operation

Every operation follows a strict 3-part structure:

  1. prompts/X.pyX_SYSTEM_PROMPT string + X_TOOL JSON schema dict
  2. operations/X.pydef x(store: WikiStore, llm: LLMClient, retriever: Retriever, ...) → XResult
  3. cli.py — Typer command that loads config, instantiates dependencies, calls operations.x()

Read the full file on GitHub · 195 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. 5d ago First seen · 195 lines · 2,262 tokens per session scan A 087032732a7c

Subscribe to this mod's changes

wikimind CLAUDE.md is an instructions file published in the GitHub repository thaihoc215/wikimind (2 stars, last pushed 2mo ago), licensed MIT. It adds 2,262 tokens to every session, about $0.0113 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-31.

Related

Other instructions, from other repositories

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

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,182 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

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

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

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