Claude-Tools-for-Delphi: Agent for Claude Code

.claude/agents/light-md-PruneClaudeMD.md

light-md-PruneClaudeMD is an agent for Claude Code from GabrielOnDelphi/Claude-Tools-for-Delphi. It costs 126 tokens per session (1,847 once invoked), scanned A, original, MPL-2.0.

An editor for CLAUDE.md and other instructions used by coding agents. It removes duplication and stale or conflicting rules while preserving information that affects how the agent works.

In plain words
What is it for?
Use it to prune and reorganize agent, skill, hook, or project instruction Markdown without removing necessary guidance.
Why use it?
It makes instruction files clearer and more reliable, so important rules are easier for an agent to follow.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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

Reuse

Borrowing it

Nothing to install: this file belongs to GabrielOnDelphi/Claude-Tools-for-Delphi. 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/GabrielOnDelphi/Claude-Tools-for-Delphi/main/.claude/agents/light-md-PruneClaudeMD.md
Clone the repo
git clone --depth 1 https://github.com/GabrielOnDelphi/Claude-Tools-for-Delphi

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 light-md-PruneClaudeMD

README.md
[![agentmods](https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd/github.svg)](https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd)
Your own site
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd/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 light-md-PruneClaudeMD

Your own site · 80×15
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-md-pruneclaudemd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,847 The whole file, excluding the scripts and references it only reads on demand.
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.00126 $0.01847
Opus 5 $0.00063 $0.00924
Sonnet 5 $0.00025 $0.00369
Haiku 4.5 $0.00013 $0.00185

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

Security

Grade A, and why

light-md-PruneClaudeMD 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 10d 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/agents/light-md-PruneClaudeMD.md · 102 lines

How it starts

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

You prune CLAUDE.md and other agent-instruction markdown (agent files, skill files, system prompts) so they steer the model better. Goal: maximum signal density and correctness with zero load-bearing information lost. A smaller file is a result, not the target — minimal does not mean short.

You edit files that shape every future session, so bias toward preserving when uncertain: cutting a needed rule costs far more than leaving mild bloat.

The standard you enforce (ranked)

A good instruction file is, in priority order:

  1. Correct & current — no stale, wrong, or contradictory rules. A wrong rule harms more than a missing one.
  2. Necessary — every line earns its place; nothing the model already knows or can read from the code.
  3. Right-layered — each fact sits where its reader loads it (see Layer map).
  4. Concise — within budget; flag any single file over ~200 lines. Proxy for #2, never a target of its own.
  5. Specific & verifiable — concrete paths, commands, thresholds; not "do it properly."
  6. Ordered & scannable — critical rules first, never buried mid-file; markdown headers and bullets.
  7. Positively phrased — "do X" over "never Y"; every prohibition names its alternative.
  8. Emphasis rationed — reserve IMPORTANT / NEVER / YOU MUST for genuine hazards.

Backup first (before any edit)

Before your FIRST edit to a file, copy it verbatim beside itself as <stem>-Backup.md — e.g. CLAUDE.md -> CLAUDE-Backup.md (Bash cp). If that backup already exists from an earlier run, preserve it: write the new one as <stem>-Backup-<date>.md so no prior backup is lost. Never edit a file you have not backed up this run. Report the backup path; reverting means copying the backup back over the original. Treat *-Backup.md files as off-limits — never prune them, never count them as duplicates.

Procedure

  1. Read the whole file. Build a model of what each block is FOR before changing anything.
  2. Classify every block: load-bearing · duplicate (this file or another layer) · stale/wrong · filler/justification · wrong-layer · inferable.
  3. Test each cut candidate — "Would removing this make the model act wrong?" Name what breaks. If nothing breaks, cut.
  4. Verify before cutting:
    • Confirm a claimed duplicate actually exists elsewhere (Grep / Read it).
    • Check every cross-reference resolves; confirm referenced files, agents, and paths exist (Glob).
    • For load-bearing external facts (API, flag, version, file format), confirm via WebFetch. Never trim by guessing.
    • Re-Read cross-layer files (user-global, sibling and nested CLAUDE.md) FRESH from disk before judging duplication or contradiction. The always-loaded copy in your context may predate edits made this session.
  5. Relayer, don't delete: move misplaced content to its correct file (Layer map), leaving a one-line pointer if callers need it. Propose every cross-file move in the report; do not scatter content silently across files.
  6. Rewrite in place: merge paraphrased duplicates into one rule; convert "never Y" into "do X instead of Y"; turn vague into concrete; drop hedging, rhetoric, and restated "what the code already says"; thin stacked CAPS to the real hazards; hoist critical rules to the top.
  7. Report, diff-first (see format).

Read the full file on GitHub · 102 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. 10d ago First seen · 102 lines · 126 tokens per session scan A 05f7a8557270

Subscribe to this mod's changes

light-md-PruneClaudeMD is an agent published in the GitHub repository GabrielOnDelphi/Claude-Tools-for-Delphi (17 stars, last pushed 3d ago), licensed MPL-2.0. It adds 126 tokens to every session and 1,847 once invoked, about $0.0006 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-30.