graphmind: Instructions file for Claude Code

CLAUDE.md

graphmind CLAUDE.md is an instructions file for Claude Code from aouicher/graphmind. It costs 880 tokens per session, scanned C, original, MIT.

Project instructions for Graphmind, a local code-intelligence command-line tool that parses code, stores relationships in SQLite, and connects to coding agents through MCP.

In plain words
What is it for?
Building, checking, linting, testing, setting up, and initializing the Graphmind Rust workspace.
Why use it?
They give an agent the project’s technology choices, commands, setup steps, and folder layout so it can work consistently in the repository.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aouicher/graphmind/claude-md"><img src="https://agentmods.dev/badge/instructions/aouicher/graphmind/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 880 This file is loaded in full into every session.
When invoked 880 The same file — it is already loaded in full.
Security scan C 2 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.00880 $0.00880
Opus 5.5 $0.00352 $0.00352
Sonnet 5.5 $0.00176 $0.00176
Haiku 4.5 $0.00088 $0.00088

Measured 17d ago against content hash 9983f2dff09f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

graphmind CLAUDE.md scanned grade C with 2 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 17d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://raw.githubusercontent.com/aouicher/graphmind/main/scripts/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/aouicher/graphmind/main/scripts/install.sh | bash
CLAUDE.md · 79 lines

How it starts

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

graphmind

Local-first code intelligence CLI with MCP server.

Tech Stack

  • Rust — full Cargo workspace
  • Parsing: tree-sitter via napi-rs (crates/graphmind-core/)
  • Graph: SQLite + FTS5 (crates/graphmind-db/)
  • Memory: JSONL store + cross-project inference (crates/graphmind-memory/)
  • Embeddings: cosine search + RRF (crates/graphmind-embeddings/)
  • MCP: rmcp SDK v1.5, stdio transport (crates/graphmind-mcp/)
  • CLI: clap (crates/graphmind-cli/)

Commands

cargo check --workspace       # check all crates
cargo build --release -p graphmind-cli  # build release binary
cargo clippy --workspace -- -D warnings # lint
cargo test --workspace        # run tests

User-facing setup

graphmind setup               # global one-time: hooks + MCP + skill
graphmind init                # per-project: register + git hooks + build
graphmind init --skip-build   # per-project without building

Project Structure

  • crates/graphmind-core/ — Rust parsing engine (tree-sitter, napi-rs)
  • crates/graphmind-db/ — SQLite graph (schema, builder, queries, FTS5, cache)
  • crates/graphmind-memory/ — JSONL memory store + cross-project links
  • crates/graphmind-embeddings/ — embedding store, cosine search, RRF fusion
  • crates/graphmind-mcp/ — MCP server (rmcp SDK, 27 tools)
  • crates/graphmind-cli/ — CLI (clap, all commands)

Installation

curl -fsSL https://raw.githubusercontent.com/aouicher/graphmind/main/scripts/install.sh | bash

Git & GitHub conventions

  • Never mention Claude, Claude Code or Anthropic in commits, PRs or GitHub comments.
  • No Co-Authored-By: Claude … or Claude-Session: trailers in commit messages.
  • No "Generated with Claude Code" line or session link in PR descriptions or comments.

graphmind

Last build: 2026-05-01 | 934 symbols | 2246 edges | 131 files Languages: rust (92), typescript (20), toml (9), markdown (3), bash (2), ruby (1), python (1), html (1), go (1), css (1) MCP: graphmind mcp (stdio)

Read the full file on GitHub · 79 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. 17d ago Changed · +5 lines · +69 tokens per session 9983f2dff09f
  2. 1mo ago First seen · 74 lines · 811 tokens per session scan C bc44341cbd74

Subscribe to this mod's changes

graphmind CLAUDE.md is an instructions file published in the GitHub repository aouicher/graphmind (216 stars, last pushed 13d ago), licensed MIT. It adds 880 tokens to every session, about $0.0035 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). 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