Borrowing it
Nothing to install: this file belongs to raphaelchristi/harness-evolver. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/raphaelchristi/harness-evolver/main/CLAUDE.mdgit clone --depth 1 https://github.com/raphaelchristi/harness-evolverWrote 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/instructions/raphaelchristi/harness-evolver/claude-md)<a href="https://agentmods.dev/instructions/raphaelchristi/harness-evolver/claude-md"><img src="https://agentmods.dev/badge/instructions/raphaelchristi/harness-evolver/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/instructions/raphaelchristi/harness-evolver/claude-md"><img src="https://agentmods.dev/badge/instructions/raphaelchristi/harness-evolver/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.03303 | $0.03303 |
| Opus 5.5 | $0.01321 | $0.01321 |
| Sonnet 5.5 | $0.00661 | $0.00661 |
| Haiku 4.5 | $0.00330 | $0.00330 |
Grade A, and why
harness-evolver 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 1mo 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 — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What this is
Claude Code plugin for LangSmith-native autonomous agent optimization. Uses LangSmith Datasets, Experiments, and Evaluators as the backend. Proposers modify the user's real code in isolated git worktrees. Distributed via npm (npx harness-evolver@latest) and the Claude Code plugin marketplace.
Dependencies
pip install langsmith # Python SDK — used by all tools
uv tool install langsmith-cli # CLI — used by evaluator agent for reading runs and writing feedback
The SessionStart hook (hooks/session-start.sh) auto-creates a venv and installs both on each session.
Running tools locally
All Python tools live in tools/ and require the langsmith SDK. They auto-load the API key from the langsmith-cli credentials file if LANGSMITH_API_KEY is not in the environment.
# Setup — creates dataset, evaluators, baseline, writes .evolver.json
python tools/setup.py --project-name my-agent --entry-point "python main.py" --framework langgraph --goals accuracy
# Run evaluation for a candidate in a worktree (canary preflight runs 1 example first)
python tools/run_eval.py --config .evolver.json --worktree-path /tmp/wt --experiment-prefix v001a
# Default concurrency is 3. Use --concurrency 1 for agents that can't run in parallel (shared files, fixed ports, etc)
# Use --sample 10 to evaluate a random subset (used by light mode)
# Use --sample 10 --sample-split train to sample from train only + always eval all held_out
# Use --no-canary to skip preflight check
# Compare experiment results
python tools/read_results.py --experiments v001a,v001b --config .evolver.json --output comparison.json
# Trace analysis from an existing experiment
python tools/trace_insights.py --from-experiment "v003-2026-04-01" --output trace_insights.json
# Import production traces as test data
python tools/seed_from_traces.py --project my-prod-project --output-md production_seed.md --output-json production_seed.json
# AST-based architecture analysis (stdlib-only, no langsmith needed)
python tools/analyze_architecture.py --harness path/to/agent -o output.json
# Evolution progress chart (stdlib-only, no langsmith needed)
python tools/evolution_chart.py --config .evolver.json
# Integrated preflight check (API key + schema + state + health + canary)
python tools/preflight.py --config .evolver.json
# Archive evolution candidate (stdlib-only, no langsmith needed)
python tools/archive.py --config .evolver.json --version v001 --experiment v001-abc --worktree-path /tmp/wt --score 0.85 --won
python tools/archive.py --config .evolver.json --list
# Promote proven evolution learnings to CLAUDE.md (compound learning)
python tools/promote_learnings.py --memory evolution_memory.md --target CLAUDE.md --threshold 5 --dry-run
python tools/promote_learnings.py --memory evolution_memory.md --target CLAUDE.md --threshold 5
# Log evolution iteration to LangSmith (creates traceable run per iteration)
python tools/log_iteration.py --config .evolver.json --action start --version v001
python tools/log_iteration.py --config .evolver.json --action end --run-id <id> --score 0.85 --merged true
# Update config after merge (handles backup/restore/update atomically)
python tools/update_config.py --config .evolver.json --action backup
python tools/update_config.py --config .evolver.json --action restore
python tools/update_config.py --config .evolver.json --action update --winner-experiment v001-abc --winner-score 0.85
# Clean up orphan worktrees after eval
python tools/cleanup_worktrees.py --dry-run
python tools/cleanup_worktrees.py
# Constraint validation for proposals (stdlib-only, no langsmith needed)
python tools/constraint_check.py --config .evolver.json --worktree-path /tmp/wt --baseline-path .
# Secret detection in text (stdlib-only, pipe text to stdin)
echo "text with API keys" | python tools/secret_filter.py
# Mine Claude Code sessions for eval data (stdlib-only)
python tools/mine_sessions.py --agent-description "my agent" --output mined.json
# Dataset health diagnostic (size, difficulty, coverage, splits)
python tools/dataset_health.py --config .evolver.json --output health_report.json
# Validate state before evolution
python tools/validate_state.py --config .evolver.json --output validation.json
# Check iteration gates
python tools/iteration_gate.py --config .evolver.json --output gate_result.json
# Track regressions between iterations
python tools/regression_tracker.py --config .evolver.json --previous-experiment v001a --current-experiment v002c --output regression_report.json
# Consolidate cross-iteration memory
python tools/consolidate.py --config .evolver.json --output evolution_memory.md
# Synthesize evolution strategy document
python tools/synthesize_strategy.py --config .evolver.json --output strategy.md
# Add evaluator to config
python tools/add_evaluator.py --config .evolver.json --evaluator factual_accuracy --type llm
# Inject adversarial examples
python tools/adversarial_inject.py --config .evolver.json --experiment v003a --inject
# Extract a consolidated capability contract (AGP Contract Generation)
# AST-walk the agent source tree and emit contracts.md (signatures + docstrings
# + @tool decorators). Reduces prompt bloat and keeps prompts synced with code.
python tools/extract_contracts.py --root . --output contracts.md
python tools/extract_contracts.py --config .evolver.json --output contracts.md # use entry_point
# Build the RSPL-lite resource registry (AGP Layer 1)
# Classifies project files into prompt/tool/agent/environment/memory, hashes and
# versions them. Proposers can target a single type via the evolvable flag.
python tools/resource_registry.py --root .
python tools/resource_registry.py --root . --list --type tool
python tools/resource_registry.py --root . --freeze prompts/system.md # mark non-evolvable
# TF-IDF retrieval over the evolution archive (AGP retrieve operator)
# Returns top-k historically similar candidates for a lens/failure description.
python tools/archive_search.py --config .evolver.json --query "retry rate limit"
python tools/archive_search.py --config .evolver.json --query-file lenses.json --winners-only --top 3
python tools/archive_search.py --config .evolver.json --query "..." --losers-only --format json
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.
- 1mo ago First seen · 196 lines · 3,303 tokens per session scan A 404cb4e56df8
harness-evolver CLAUDE.md is an instructions file published in the GitHub repository raphaelchristi/harness-evolver (57 stars, last pushed 6mo ago), licensed MIT. It adds 3,303 tokens to every session, about $0.0132 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-30.
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).
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.
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).
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.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.
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).