munin: Instructions file for Claude Code

CLAUDE.md

munin CLAUDE.md is an instructions file for Claude Code from getmunin/munin. It costs 8,209 tokens per session, scanned A, original, MIT.

A set of instructions for working on Munin, a customer platform whose features are accessed mainly by AI agents through MCP tools. It explains the repository structure and where shared business logic belongs.

In plain words
What is it for?
Use it when navigating Munin’s pnpm/Turborepo monorepo, locating backend modules, or changing its dashboard, API, MCP tools, widgets, and agent runtime.
Why use it?
It helps an agent understand the codebase before making changes, reducing the risk of putting logic in the wrong layer or breaking the shared API and MCP interfaces.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/getmunin/munin/claude-md"><img src="https://agentmods.dev/badge/instructions/getmunin/munin/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,209 This file is loaded in full into every session.
When invoked 8,209 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.08209 $0.08209
Opus 5.5 $0.03284 $0.03284
Sonnet 5.5 $0.01642 $0.01642
Haiku 4.5 $0.00821 $0.00821

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

Security

Grade A, and why

munin 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 27d 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 · 214 lines

How it starts

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

Munin — agent guide

MCP-first customer platform made for the agentic era (KB, Conversations, CRM, CMS, Outreach). The agent is the primary UI: agents act through MCP tools served at /mcp. The dashboard at apps/web is a thin shell over the /v1/* control plane; /v1 controllers and MCP tools must both stay thin wrappers over the same service methods — logic lives in the service, never in a controller or tool handler.

Repository layout

Monorepo on pnpm + Turborepo.

  • apps/backend — NestJS entry that composes @getmunin/backend-core with single-tenant AuthModule. Port 3001. Exposes /mcp, /auth/*, /.well-known/oauth-*, and the /v1/* control plane.
  • apps/web — Next.js 15 dashboard + landing. Port 3000. Calls apps/backend via /v1/*.
  • apps/chat-widget — embeddable browser bundle consumed via mn_widget_* keys.
  • packages/backend-core — shared NestJS modules. Where business logic lives.
  • packages/dashboard-pages — React pages reused by OSS and cloud webs.
  • packages/{core,db,types,sdk,mcp-toolkit,ui} — non-Nest building blocks.
  • packages/{agent-host,agent-runtime} — durable per-org LLM runner that drains the curator queue.
  • packages/widget-voice — Vapi voice glue.

Module map (packages/backend-core/src/modules/)

Module Tools prefix Notes
kb kb_* Documents, spaces, hybrid search (BM25 + pgvector), curation candidates.
conv conv_* Email / SMS / voice / widget channels via the channel-adapter contract (packages/backend-core/src/modules/conv/CLAUDE.md).
crm crm_* Contacts, companies, deals, pipelines, segments, merge proposals.
cms cms_* Collections, entries, locales, assets, scheduled publishing, public delivery API.
outreach outreach_* Propose-only outbound campaigns. Never auto-sends.
slack slack_* Operator bridge: mirrors conversations into Slack threads via a WebhookDispatcher sink + slack_deliveries queue. Not a ChannelAdapter.
connectors connectors_* Plumbing trunk for customer-facing data connectors: encrypted connection storage, vendor-adapter registry, credential testing. Domain modules register adapters here and own the typed read surfaces; live reads only, no vendor data persisted.
commerce commerce_* Connector-backed order lookups (Shopify, Magento 2): admin tools take an email; self-service tools bind to the calling end-user's email server-side.
bookings bookings_* Connector-backed bookings (Gastroplanner): read + write (availability, create/modify/cancel). Admin tools take an email; self-service tools bind to the calling end-user and enforce per-booking ownership.
seo seo_* Connector-backed search-console reads (Bing Webmaster Tools, Google Search Console) plus URL submission where the engine offers it, and BYOK keyword research (DataForSEO). Admin-only — the one connector domain with no self-service half.
curator — Background job queue (curator_jobs) running skill://* and task://* URIs.
web — Website scraper (single task://web/scrape-website).
playbooks — Cross-module packaged workflows (skill markdown only, no tools).

Read the full file on GitHub · 214 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. 27d ago Changed · -3 tokens per session d9c233527d0d
  2. 29d ago Changed · +2 lines · +181 tokens per session 4556206b3ce2
  3. 1mo ago Changed · +7 lines · +666 tokens per session a795883fd5fc
  4. 1mo ago Changed · +1 lines · +236 tokens per session 10c756e8c08a
  5. 1mo ago Changed · +1 lines · +229 tokens per session 8e5dcafa67e8
  6. 1mo ago First seen · 203 lines · 6,900 tokens per session scan A 18b90092d203

Subscribe to this mod's changes

munin CLAUDE.md is an instructions file published in the GitHub repository getmunin/munin (21 stars, last pushed today), licensed MIT. It adds 8,209 tokens to every session, about $0.0328 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

Other instructions, from other repositories

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,461 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

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens