mimirs: Instructions file for Claude Code

CLAUDE.md

mimirs CLAUDE.md is an instructions file for Claude Code from TheWinci/mimirs. It costs 1,614 tokens per session, scanned A, original, Apache-2.0.

Instructions for mimirs, a local server that gives AI coding agents searchable memory of a codebase. They describe tools for finding relevant files and retrieving the exact code or documentation sections.

In plain words
What is it for?
Use them to search by describing a behavior or problem in plain language, narrow results by file type or directory, and read ranked code chunks with line ranges.
Why use it?
They help an agent locate the right parts of a large codebase without relying on guessed file names or manually reading unrelated files.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is TheWinci/mimirs's own configuration. It tells Claude Code how to work on mimirs 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 mimirs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to TheWinci/mimirs. 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/TheWinci/mimirs/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/TheWinci/mimirs

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/thewinci/mimirs/claude-md/github.svg)](https://agentmods.dev/instructions/thewinci/mimirs/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/thewinci/mimirs/claude-md"><img src="https://agentmods.dev/badge/instructions/thewinci/mimirs/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.

agentmods 80×15 button for mimirs CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thewinci/mimirs/claude-md"><img src="https://agentmods.dev/badge/instructions/thewinci/mimirs/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,614 This file is loaded in full into every session.
When invoked 1,614 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.01614 $0.01614
Opus 5.5 $0.00646 $0.00646
Sonnet 5.5 $0.00323 $0.00323
Haiku 4.5 $0.00161 $0.00161

Measured 1mo ago against content hash 3802d3dc2cb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mimirs 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 1mo 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 · 100 lines

How it starts

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

use simple language

Using mimirs tools

This project has a local RAG index (mimirs). Use these MCP tools:

  • search: Discover which files are relevant to a topic. Returns file paths with snippet previews — use this when you need to know where something is. Supports optional extensions, dirs, and excludeDirs filters to scope results (e.g. restrict to .ts files, or under src/). Query craft: describe the behavior or symptom in plain words ("where user sessions expire") — a short coherent phrase retrieves better than a bag of keywords. Don't pad the query with guessed internal symbol or file names; describe what you're looking for, not how you think it's implemented. (Measured: intent phrases beat keyword-stuffed queries even when the stuffing named the right files.)
  • read_relevant: Get the actual content of relevant semantic chunks — individual functions, classes, or markdown sections — ranked by relevance. Results include exact line ranges (src/db.ts:42-67) so you can navigate directly to the edit location. Use this instead of search + Read when you need the content itself. Two chunks from the same file can both appear (no file deduplication). Accepts the same extensions/dirs/excludeDirs filters as search.
  • project_map: When you need to understand how files relate to each other, generate a dependency graph. Use focus to zoom into a specific file's neighborhood. This is faster than reading import statements across many files.
  • search_conversation: Search past conversation history to recall previous decisions, discussions, and tool outputs. Use this before re-investigating something that may have been discussed in an earlier session. Returns short snippets — follow up with read_conversation to get the full text.
  • read_conversation: Read the full verbatim text of past turns by sessionId + turn index (or a from/to range, or turn + context). The read counterpart to search_conversation: it locates the turn, this hydrates it. Pass includeToolOutput: true to also get tool results (re-parses the raw transcript; slower). Defaults to the most recent session's tail when given no selector.
  • create_checkpoint: Call this as your final step after completing any user-requested task, before responding to the user. Also call when hitting a blocker or changing direction mid-task. Include what was done, which files changed, and why. This is the only way future sessions know what happened.
  • list_checkpoints / search_checkpoints: Review or search past checkpoints to understand project history and prior decisions.
  • index_files: If you've created or modified files and want them searchable, re-index the project directory.
  • search_analytics: Check what queries return no results or low-relevance results — this reveals documentation gaps.
  • search_symbols: When you know a symbol name (function, class, type, etc.), find it directly by name instead of using semantic search.
  • usages: Before changing a function or type, find all its call sites. Use this to understand the blast radius of a rename or API change. Faster and more reliable than semantic search for finding usages.
  • git_context: At the start of a session (or any time you need orientation), call this to see what files have already been modified, recent commits, and which changed files are in the index. Avoids redundant searches and conflicting edits on already-modified files.
  • search_commits: Semantically search git commit history — find why code was changed, when decisions were made, or what an author worked on. Supports filters for author, date range, and file path. Requires git history to be indexed first (mimirs history index or mimirs index git).
  • file_history: Get the commit history for a specific file. Returns commits that touched it, sorted by date. Use this to understand how a file evolved.
  • annotate: Call this immediately when you encounter a known bug, race condition, fragile code, non-obvious constraint, or workaround while reading code. Notes persist across sessions and surface as [NOTE] blocks inline in read_relevant results automatically.
  • get_annotations: Retrieve all notes for a file, or search semantically across all annotations to find relevant caveats before editing.
  • delete_annotation: Remove an annotation that is no longer relevant — a fixed bug, a lifted constraint, or a note on deleted code. Use get_annotations first to find the ID.
  • depends_on: List all files that a given file imports — its dependencies.
  • dependents: List all files that import a given file — reverse dependencies. Use before modifying a shared module to see who depends on it.
  • impact: Symbol-level blast radius — the transitive callers of a function or method as a pruned call tree, plus the test files to run. More precise than dependents (file-level). Use before changing a signature or behavior. Pass file to disambiguate a name defined in several places.
  • trace: Show how one symbol reaches another — the reachable call sub-graph from from to to, shortest path highlighted ("how does X reach Y"). Resolution is static, so a dynamic-dispatch hop (callback, interface→impl, DI) can break the chain — it says so when it does.
  • Assessing blast radius / reviewing a diff: for a single function or method, impact returns the transitive caller tree + tests to run in one call, and trace shows how two symbols connect. Widen with dependents (file-level importers) and get_annotations (known caveats) when a change spans a whole module. For diff or PR review, pair git_context (what changed) with impact/usages on the changed symbols and search_checkpoints for prior decisions.
  • write_relevant: Before adding new code or docs, find the best insertion point — returns the most semantically appropriate file and anchor.
  • connect_repo: Attach another repo's mimirs index for cross-repo queries (query-only — that repo's own server keeps it fresh). Then pass its path as directory to search/read_relevant/other read tools. With persist: true (+ optional alias) the connection is saved to config, auto-attaches in future sessions, and the alias works as directory.
  • wiki: Rebuild the project wiki. Start with wiki(command: "shape") and follow the prompts it returns — each step names the next.

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 1,614 tokens per session scan A 3802d3dc2cb9

Subscribe to this mod's changes

mimirs CLAUDE.md is an instructions file published in the GitHub repository TheWinci/mimirs (30 stars, last pushed 6d ago), licensed Apache-2.0. It adds 1,614 tokens to every session, about $0.0065 per session on Opus 5.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

repobrain copilot-instructions.md

Copilot instructions for study8677/repobrain, covering github copilot bootstrap instructions and hard rule — query the repobrain hub first.

study8677/repobrain · 229 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 · 9,715 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,581 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens