evolve-loop: Instructions file for Claude Code

CLAUDE.md

evolve-loop CLAUDE.md is an instructions file for Claude Code from mickeyyaya/evolve-loop. It costs 2,013 tokens per session, scanned C, original, Apache-2.0.

Project instructions for an automation loop that repeatedly evaluates and merges software changes. They define required documentation, operating rules, and a stop condition after two consecutive cycles with no merged changes.

In plain words
What is it for?
Use them when operating or changing the evolve loop, batch automation, merge trains, flags, release gates, or related documentation. They direct agents to read the repository's canonical rules before changing loop behavior.
Why use it?
They help prevent an automated coding process from continuing through a broken pipeline without investigating why it produced no usable result.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

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

Reuse

Borrowing it

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

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 evolve-loop CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mickeyyaya/evolve-loop/claude-md"><img src="https://agentmods.dev/badge/instructions/mickeyyaya/evolve-loop/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,013 This file is loaded in full into every session.
When invoked 2,013 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02013 $0.02013
Opus 5.5 $0.00805 $0.00805
Sonnet 5.5 $0.00403 $0.00403
Haiku 4.5 $0.00201 $0.00201

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

Security

Grade C, and why

evolve-loop CLAUDE.md scanned grade C with 1 finding 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 5d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- GENERATED:instructions BEGIN from AGENTS.md by `evolve skills generate`; edit the source, not this region -->
CLAUDE.md · 74 lines

How it starts

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

Project Instructions (Claude Code)

This file is rendered. The part between the GENERATED markers is a copy of the digest of AGENTS.md, the one source of the instructions for each CLI. Read AGENTS.md for the full rules and the runtime facts. Change AGENTS.md, then run evolve skills generate. evolve skills check fails when this copy differs from AGENTS.md.

Operating policy (canonical, environment-independent): docs/operations/operating-policy.md. A pipeline issue gets a console-first fix at maximum reasoning. Routing is typed plumbing. Salvage comes before requeue. Wiring proofs are mandatory. The repo, not session memory, is the source of truth for these rules.

Release notes: CHANGELOG.md.

Claude Code overlay

  • The kernel guards fire as PreToolUse hooks, as .claude/settings.json specifies. evolve guard phase matches Agent|Task. During a cycle it denies the start of a phase persona (evolve-*) outside a phase cell. Inside a cell, each call passes (AGENTS.md invariant 1). The hooks are defence in depth; the sandbox and the gates hold each guarantee for every family.
  • The four reviewers of the pre-commit review fleet are also Claude Code subagents in .claude/agents/. evolve skills generate renders the body of each subagent from its neutral persona agents/evolve-diff-<name>.md. Only the frontmatter (the tool list and the model) is Claude Code data. Change the persona, not the rendered body.
  • The repository documents use the Claude Code tool names (Read, Grep, Glob, Bash, Edit, Write).
  • Run /clear before a new evolve-loop batch.
  • The skills at skills/<name>/SKILL.md are the only slash-command surface (ADR-0040). They carry argument-hint. The plugin manifest at .claude-plugin/plugin.json declares only agents and skills.
  • Boot stalls, model checks and quota pauses of a Claude seat: Claude Code host facts.

Read the full file on GitHub · 74 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. 5d ago Changed · +1 lines · +31 tokens per session 64a740f12778
  2. 11d ago Changed · +2 lines · +108 tokens per session 56b76822db4c
  3. 17d ago Changed · +1 lines · +28 tokens per session 51923fb10e6a
  4. 29d ago Changed · +2 lines · +78 tokens per session dfded583d42a
  5. 1mo ago Changed · +8 tokens per session bf3ff2404039
  6. 1mo ago Changed · +13 lines · +119 tokens per session 2fc7435bf3aa
  7. 1mo ago Changed · -107 lines · -3,037 tokens per session scan A → C 9bc5d1d96d7c
  8. 1mo ago Changed · +2 lines · +95 tokens per session 8d39d39de543
  9. 1mo ago Changed · +3 lines · +219 tokens per session b52d9201a6cf
  10. 1mo ago First seen · 157 lines · 4,364 tokens per session scan A 07ff52ea08bf

Subscribe to this mod's changes

evolve-loop CLAUDE.md is an instructions file published in the GitHub repository mickeyyaya/evolve-loop (8 stars, last pushed 5d ago), licensed Apache-2.0. It adds 2,013 tokens to every session, about $0.0081 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

evolve-loop CLAUDE.md compared with instructions from other repositories

evolve-loop CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
evolve-loop CLAUDE.mdmickeyyaya/evolve-loopInstructions file85d agoApache-2.0C2,013Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot