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.
npx skills add skillberry-ai/cap-evolve --skill legacygit clone --depth 1 https://github.com/skillberry-ai/cap-evolveWrote 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/skills/skillberry-ai/cap-evolve/legacy)<a href="https://agentmods.dev/skills/skillberry-ai/cap-evolve/legacy"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/legacy/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/skills/skillberry-ai/cap-evolve/legacy"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/legacy.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.00073 | $0.05369 |
| Opus 5.5 | $0.00029 | $0.02148 |
| Sonnet 5.5 | $0.00015 | $0.01074 |
| Haiku 4.5 | $0.00007 | $0.00537 |
Grade A, and why
agent-optimize 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 — 333 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-optimize — the free-form loop you own
The one algorithm with no deterministic subprocess and no per-iteration optimizer: you — the agent
that ran intake — are the optimizer, the scheduler and the stopping rule. cap-evolve run (with
orchestration_mode: agent) does check → baseline, prints a handoff, and returns. From there the search
is yours, bounded by core's invariants and the free-text stop_condition. Drive the existing
primitives so the run dir and dashboard stay populated as in a deterministic run (unattended:
host.py/--agent-driver). A forensic run (#665) followed this loop in PROSE, not BEHAVIOR — 1
candidate/round forever, full-val paid regardless of scope, two mergeable accepts never merged — so
every step below names the script that decides for you.
Shell variables used below
R="<run_dir from the agent-mode handoff>" # e.g. .capevolve/run_20250101_120000
P="<project dir>" # the dir holding capevolve.yaml + adapters/
S="${CAPEVOLVE_SKILLS_DIR:?set CAPEVOLVE_SKILLS_DIR to the skills/ dir}"
A="$S/algorithms/agent-optimize/scripts" # this skill's helpers
mkdir -p "$R/work" # working copies live here (RunDir does NOT create it)
Every script imports _bootstrap itself and prints JSON on stdout.
Phase 0 — understand before you optimize
Once, before any edit, and ask the user any blocking question here so the loop then runs unattended.
Read PROJECT.md, capevolve.yaml, the adapter, every file under capability_path,
./guidance/<cap>/SKILL.md, optimizer/INSTRUCTIONS.md if present; understand the task, run_target
output, score() reward, per-task feedback, val/test size, num_trials, gate_mode/gate_k_se,
objectives/model_routing if set (sections below), edit surface.
Then let spend.py parse the free-text stop_condition rather than restating it: it prints
constraints.predicates, every concrete check it extracts. If constraints.ambiguous is non-empty,
ASK THE USER before the loop starts — a vague clause is reported, never guessed at.
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 · 333 lines · 73 tokens per session scan A 1bd74c08109a
agent-optimize is a skill published in the GitHub repository skillberry-ai/cap-evolve (71 stars, last pushed today), licensed Apache-2.0. It adds 73 tokens to every session and 5,369 once invoked, about $0.0003 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-10-11.
agent-optimize compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-optimizeskillberry-ai/cap-evolve | Skill | 71 | today | Apache-2.0 | A | 73 | Claude Code |
| worker-integrationruvnet/ruflo | Skill | 83k | today | MIT | A | 14 | Claude Code |
| agentmailpaperclipai/paperclip | Skill | 118k | today | MIT | A | 30 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 30 | Claude Code |
| tao-generate-image-groundingNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 95 | Claude Code |
| mochi-remindkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 20 | Claude Code, Codex |