ai-architect-mcp-codebase CLAUDE.md

ai-architect-mcp-codebase CLAUDE.md is an instructions file for coding agents from cdeust/ai-architect-mcp-codebase. It costs 613 tokens per session, scanned A, original, MIT.

An instruction file for a Rust MCP server that reads repositories with tree-sitter, builds a map of their code structure, and answers structural questions. It also documents repository commands, development rules, and environment hazards.

In plain words
What is it for?
Use it when modifying, testing, or contributing to this Rust code-analysis server, especially when working with branches, binaries, or its repository rules.
Why use it?
It helps an agent work within the project’s required coding process and avoid actions that could stop the installed server or invalidate its release binary.

Instructions file

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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/cdeust/ai-architect-mcp-codebase/claude-md
Clone the repo
git clone --depth 1 https://github.com/cdeust/ai-architect-mcp-codebase

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 ai-architect-mcp-codebase CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cdeust/ai-architect-mcp-codebase/claude-md.svg)](https://agentmods.dev/instructions/cdeust/ai-architect-mcp-codebase/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/cdeust/ai-architect-mcp-codebase/claude-md"><img src="https://agentmods.dev/badge/instructions/cdeust/ai-architect-mcp-codebase/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 613 This file is loaded in full into every session.
When invoked 613 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 $0.00613 $0.00613
Opus 5 $0.00307 $0.00307
Sonnet 5 $0.00123 $0.00123
Haiku 4.5 $0.00061 $0.00061

Measured 4d ago against content hash 264af7634bd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ai-architect-mcp-codebase 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 4d 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 · 39 lines

How it starts

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

ai-architect-mcp-codebase

Rust MCP server: parses repositories with tree-sitter, builds a code graph, answers structural queries. See @CONTRIBUTING.md for the layer rules and coding standards.

Global rules — model behavior, the loop discipline, and the zetetic standards — are imported, not restated here:

@/.claude/rules/model-behavior.md @/.claude/rules/coding-standards.md

Environment quirks — these will cost you a session if ignored

  • This clone is live-mounted as the installed plugin. ~/.claude/plugins/cache/.../0.9.x/target/release/ai-architect-mcp-codebase symlinks here. Never checkout, pull, stash or build a different branch in it — the running MCP server dies. Work in a worktree: git worktree add ../automatised-pipeline-wt-<topic> -b <branch> origin/main.
  • The launcher verifies the release binary's SHA-256 against a pin. A dev rebuild breaks it unless AI_ARCHITECT_SOURCE_CHECKOUT=1 is exported (it is, in ~/.zshenv). A dead server shows only as MCP error -32000: Connection closed; the real message appears when running bin/launch-plugin.sh manually with CLAUDE_PLUGIN_ROOT set.
  • bin/ensure-binary.sh pins the SHA-256 of Cargo.toml and .claude-plugin/plugin.json. Both drift whenever dependencies or version change — update them or CI fails.

Commands

cargo test --lib                                    # unit tests
cargo test --test graph_accuracy                    # accuracy gate
cargo run --release -p bench-end-result --bin bench_end_result -- --all   # note the -p

The bench archives to benches/runs/<ts>.md (gitignored; force-add only a release manifest). Exit 0 requires aggregate ≥0.85 and every language ≥0.75.

Gates that fail CI but not local runs

  • Doc-truth: scripts/check_doc_claims.py fails the build when README's test count or coverage badge drifts from measured reality (100-test buckets). Crossing a bucket means updating README and committing it.
  • clippy --all-targets compiles lib separately from unittests: anything reachable only from #[cfg(test)] code, imports included, must itself be #[cfg(test)]-gated.
  • CI catches blast radius that local gates miss — activating a resolver path can break a cross-repo defense test. Watch the run, don't assume.

Read the full file on GitHub · 39 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. 4d ago First seen · 39 lines · 613 tokens per session scan A 264af7634bd9

Subscribe to this mod's changes

ai-architect-mcp-codebase CLAUDE.md is an instructions file published in the GitHub repository cdeust/ai-architect-mcp-codebase (4 stars, last pushed today), licensed MIT. It adds 613 tokens to every session, about $0.0031 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.