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.
git clone --depth 1 https://github.com/acaprino/daodanWrote 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.
[](https://agentmods.dev/commands/acaprino/daodan/maintain-claude-md)<a href="https://agentmods.dev/commands/acaprino/daodan/maintain-claude-md"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/maintain-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.
<a href="https://agentmods.dev/commands/acaprino/daodan/maintain-claude-md"><img src="https://agentmods.dev/badge/commands/acaprino/daodan/maintain-claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.04844 |
| Opus 5 | $0.00034 | $0.02422 |
| Sonnet 5 | $0.00014 | $0.00969 |
| Haiku 4.5 | $0.00007 | $0.00484 |
Grade A, and why
maintain-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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Maintain CLAUDE.md File
CRITICAL RULES
- Keep CLAUDE.md under 40,000 characters. This is a hard cap (Claude Code surfaces a performance warning above this threshold). Run
wc -c CLAUDE.mdafter every edit. Target <35k to leave headroom. If the audit finds the file already over 40k, the primary fix is to extract sections todocs/<topic>.mdand replace them with thinRead docs/<topic>.mdpointers. Never finalize an edit that leaves the file over 40k. - Verify against codebase. Every claim in CLAUDE.md must be checked against actual files, commands, and dependencies.
- Show findings before changing. Present the audit report and get approval before modifying anything.
- Preserve existing content by default. NEVER remove existing references, sections, paragraphs, bullets, or pointers from CLAUDE.md unless a cross-verification against the codebase, dependency manifests, or external sources proves them false or obsolete. Length, perceived redundancy, "old-style" formatting, or personal aesthetic preference are NOT valid reasons to remove content. Extraction to
docs/<topic>.mdwith a pointer is acceptable (the information stays accessible); silent deletion is not. - ALWAYS ask the user about every drift identified. For each drift (incorrect path, broken command, obsolete dependency, missing claim, stale code snippet, internal duplication candidate flagged by Phase 4b, oversized section, anything else flagged by the audit), the agent MUST surface it to the user via
AskUserQuestionand let the user decide the action. Do NOT batch-apply fixes autonomously, even for "obviously correct" critical issues. Dedup merges are deletions of the redundant occurrences and fall under the same per-item gate (rule 4 + rule 5). The audit report enumerates findings; the user chooses, per finding, among concrete options such as [fix as proposed / keep verbatim / extract todocs/<topic>.mdwith pointer / merge into the most actionable occurrence / replace with cross-reference / skip for now / other]. Default action on a finding the user has not yet decided is leave unchanged. The only edits the agent applies without per-item confirmation are the user's already-given answers, in the same session. - Never delete user preferences unless the user explicitly approves. Preferences (coding style, workflow choices) are intentional.
- Never enter plan mode. Execute immediately.
- Backfill the canonical Working Principles block. Audit is not just detection - it is active upgrade. Maintain MUST always check and propose insertion of the canonical
## Working Principlesblock, independent of other findings. Three states to handle, all severity High:- Block missing entirely: insert verbatim (5 principles, with 3 sub-bullets under each of principles 1-4).
- Block present, missing one or more principles (in particular the locally authored #5 Centralize Shared Logic, which CLAUDE.md files created before plugin v1.12.0 will not contain): insert the missing principles surgically without rewriting unrelated user additions.
- Block present with all 5 principles, but missing the 3 sub-bullets under principles 1-4 (the case for any CLAUDE.md created before plugin v1.14.0): insert the sub-bullets in place via surgical Edit.
Never substitute the block with an external GitHub link or a
docs/agentic-coding-guidelines.mdpointer. The deeper meta-rules ship as inline sub-bullets so the block is self-contained.
- Verify the canonical Test-Suite Rules block (conditional). When the project has a test suite (test directories or runner config present), check the presence and integrity of the canonical
## Test-Suite Rulesblock (7 rules, see the agent's CONDITIONAL SECTION). Missing, gutted, or weakened (a rule rewritten to permit what it forbids) is a High finding surfaced per rule 5, with an offer to insert the canonical text verbatim. When the project has no tests, absence is correct and is NOT a finding.
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.
- 7d ago First seen · 334 lines · 68 tokens per session scan A d03ef411399b
maintain-claude-md is a command published in the GitHub repository acaprino/daodan (9 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 4,844 once invoked, about $0.0003 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-09-05.
Other commands, from other repositories
session-end
I'll summarize this coding session and update the memory system with our accomplishments.
minutes-ideas
Surface recent voice memos and ideas captured from any device. Use when the user asks "what ideas did I have?", "what were my recent memos?", "what did I record while walking?", or wants to recall a captured thought.
learn
Force claude-smart to extract learnings from this session now.
memory-store
Store an insight, decision, or pattern to memory.
cc-memory
Configure persistent memory that survives across sessions using a layered approach: split rule files for always-loaded context, auto-memory for organic learning, and optional MCP-backed long-term memory for large codebases.
analyze-context
USE WHEN you want to analyze project context before starting work on a task. Calls context + recall, then synthesizes goals, decisions, gotchas, and relevant memories into a pre-task brief.