Mycorrhiza-MCP: Instructions file for Claude Code

CLAUDE.md

Mycorrhiza-MCP CLAUDE.md is an instructions file for Claude Code from sfaustodev/Mycorrhiza-MCP. It costs 924 tokens per session, scanned A, original, MIT.

A project instruction file for Mycorrhiza-MCP, a local MCP server that stores persistent agent memories in SQLite using a linked hash chain. It documents setup, commands, tools, and the project architecture.

In plain words
What is it for?
Use it when installing, running, inspecting, or modifying Mycorrhiza-MCP and its remember, recall, and chain-status tools.
Why use it?
It tells a coding agent how this memory server works and how to run it without inventing unsupported commands or changing the real memory store during experiments.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 Mycorrhiza-MCP CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sfaustodev/mycorrhiza-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/sfaustodev/mycorrhiza-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 924 This file is loaded in full into every session.
When invoked 924 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.00924 $0.00924
Opus 5.5 $0.00370 $0.00370
Sonnet 5.5 $0.00185 $0.00185
Haiku 4.5 $0.00092 $0.00092

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

Security

Grade A, and why

Mycorrhiza-MCP 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 2mo 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 · 63 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this is

Reference implementation of Layer 1 of the Mycorrhiza proposal: a local MCP server that gives any MCP client (Claude Desktop, Cursor, Continue, …) persistent memory backed by a SHA-256 hash chain stored in SQLite. Three tools exposed: remember, recall, chain_status. See README.md for the conceptual framing and v0.2/v1.0 roadmap (cristalização, herança ativa).

Commands

Local dev setup:

python3 -m venv .venv && source .venv/bin/activate
pip install -e .

Run the server (stdio, what an MCP client invokes):

python -m mycorrhiza.server
# or, after install:
mycorrhiza-mcp

Inspect tools interactively (FastMCP dev inspector, ships with mcp[cli]):

mcp dev mycorrhiza/server.py

Use an isolated chain for experiments — point MYCORRHIZA_DB at a throwaway path so you don't pollute the user's real chain at ~/.mycorrhiza/chain.db:

MYCORRHIZA_DB=/tmp/test-chain.db python -m mycorrhiza.server

No test suite, linter, or CI is configured. Don't fabricate commands; if you add tooling, wire it through pyproject.toml.

Architecture

Single module: mycorrhiza/server.py. Roughly four layers, top to bottom:

  1. Storage path resolution — DB_PATH from MYCORRHIZA_DB env or ~/.mycorrhiza/chain.db; parent dir auto-created. State is local-only, no network, no auth.
  2. Hash function — _compute_hash(seq, ts, prev_hash, content, tags) serializes a JSON object with sort_keys=True, ensure_ascii=False and SHA-256s it. Field order/serialization is the integrity contract: any change breaks chain_status retroactively.
  3. Schema bootstrap — _init_db() creates the single chain table (seq PK, ts, prev_hash, content, tags as JSON-encoded array, hash UNIQUE) and an index on ts DESC. Idempotent, called at import time.
  4. MCP tools (@mcp.tool() on a FastMCP("mycorrhiza") instance):
    • remember — reads tail link, computes next link's hash chained on prev's hash, inserts. Genesis sentinel for the first link is the literal string "genesis".
    • recall — SELECT … WHERE content LIKE ? AND tags LIKE ? with case-insensitive substring match; tag filter is a textual %"tag"% over the JSON array (good enough for Layer 1, swap if scale demands).
    • chain_status — walks the chain from seq=1, recomputes each hash, and verifies both prev_hash linkage and stored-hash integrity. Reports first break.

Read the full file on GitHub · 63 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. 2mo ago First seen · 63 lines · 924 tokens per session scan A 50b3d9993aff

Subscribe to this mod's changes

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

Related

Mycorrhiza-MCP CLAUDE.md compared with instructions from other repositories

Mycorrhiza-MCP CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Mycorrhiza-MCP CLAUDE.mdsfaustodev/Mycorrhiza-MCPInstructions file23mo agoMITA924Claude Code
repobrain copilot-instructions.mdstudy8677/repobrainInstructions file1.4k14d agoMITA229GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot