mimirs CLAUDE.md

mimirs CLAUDE.md is an instructions file for coding agents 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

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/thewinci/mimirs/claude-md
Clone the repo
git clone --depth 1 https://github.com/TheWinci/mimirs

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.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.svg" alt="Measured on agentmods" 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. 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.01614 $0.01614
Opus 5 $0.00807 $0.00807
Sonnet 5 $0.00323 $0.00323
Haiku 4.5 $0.00161 $0.00161

Measured 5d ago against content hash 3802d3dc2cb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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 · 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. 5d 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 (29 stars, last pushed 21d ago), licensed Apache-2.0. It adds 1,614 tokens to every session, about $0.0081 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

serena AGENTS.md

AGENTS.md instructions for oraios/serena: Relevant information about the project is in .serena/memories. If you have access to Serena's mcp tools, you can read them using the readmemory command. Otherwise you can just read them using normal file reading tools.

oraios/serena · 50 tokens

memorix CLAUDE.md

Claude Code instructions for AVIDS2/memorix, covering memorix - agent instructions for claude code, using memorix memory tools, when to search memory, when to store memory and when to resolve memory.

AVIDS2/memorix · 1,073 tokens

memorix GEMINI.md

Gemini CLI instructions for AVIDS2/memorix, covering memorix - cross-agent memory rules, session start - bind project, then load context, during session - capture important context, architecture & decisions and bug fixes & problem solving.

AVIDS2/memorix · 846 tokens

BaseLayer AGENTS.md

AGENTS.md instructions for agulaya24/BaseLayer, covering agents.md for base layer, orientation (read first if you are new here), the four artifacts (thesis stack), what this repo is and setup.

agulaya24/BaseLayer · 2,157 tokens

BaseLayer CLAUDE.md

Claude Code instructions for agulaya24/BaseLayer, covering claude.md, project context, voice and prose constraints, commands an ai agent should know and mcp server quick-connect.

agulaya24/BaseLayer · 2,570 tokens

serena CLAUDE.md

Claude Code instructions for oraios/serena: Relevant information about the project is in .serena/memories. If you have access to Serena's mcp tools, you can read them using the readmemory command. Otherwise you can just read them using normal file reading tools.

oraios/serena · 50 tokens