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 agent-optimizegit 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/agent-optimize)<a href="https://agentmods.dev/skills/skillberry-ai/cap-evolve/agent-optimize"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/agent-optimize/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/agent-optimize"><img src="https://agentmods.dev/badge/skills/skillberry-ai/cap-evolve/agent-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00089 | $0.02963 |
| Opus 5.5 | $0.00036 | $0.01185 |
| Sonnet 5.5 | $0.00018 | $0.00593 |
| Haiku 4.5 | $0.00009 | $0.00296 |
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 — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
agent-optimize — the loop you own
You are the optimizer. cap-evolve run (agent mode) does check -> baseline and hands you R. Everything
else is six act.py verbs and one digest.py; the scripts decide, you judge.
Honest statistics (read twice)
- Noise sd of a full-val mean is ~0.05 (30 tasks x 3 trials): only big effects are resolvable. Never re-test a within-noise delta; make a bigger edit instead.
- Never view test traces. Test is sealed, scored ONCE at finalize, and development-exposed after use.
Details only when needed: references/stats.md.
Setup
The loop REQUIRES the new engine. Put this in capevolve.yaml (or export CAPEVOLVE_<NAME>=1):
optimizer:
ablation: {dag_parallel: true, active_eval: true, smart_merge: true, cost_gating: true,
failure_clustering: true, pregate: true, context_digest: true}
Stock default has active_eval OFF: probe --auto then silently runs FULL val. The digest prints
!! CONFIG: ... at the top (after any INFRA line) when any switch is off; fix it before looping. Switches: references/ablation.md.
R="<run_dir from the handoff>"; P="<project dir>"
S="${CAPEVOLVE_SKILLS_DIR:?set to the skills/ dir}"; A="$S/algorithms/agent-optimize/scripts"
mkdir -p "$R/work"
python "$A/spend.py" --run-dir "$R" --project "$P" # parses stop_condition; ask the user if constraints.ambiguous
python "$A/digest.py" --run-dir "$R" --project "$P" # first line must NOT start with "!! CONFIG"
BEST=$(python "$A/digest.py" --run-dir "$R" --project "$P" --format json | python -c 'import json,sys;print(json.load(sys.stdin)["champion"]["id"])')
BEST is the digest's champion (re-read it after every promote). Read once: PROJECT.md,
capevolve.yaml, the adapter, the files under capability_path, optimizer/INSTRUCTIONS.md if
present (benchmark facts only; ignore its "one edit" advice).
The loop
python "$S/phases/diagnose/scripts/run.py" --run-dir "$R" --tag "$BEST" --split val --cluster v2 > /dev/null
python "$A/digest.py" --run-dir "$R" --project "$P"
What ships with it
49 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- meta.yaml 946 B
- references/ablation.md 823 B
- references/clusters.md 1.1 KB
- references/forensics.md 1.5 KB
- references/helpers.md 2.3 KB
- references/legacy.md 466 B
- references/merge.md 1.6 KB
- references/objectives-cost.md 923 B
- references/stats.md 1.1 KB
- references/tool-edit-lessons.md 1.6 KB
- scripts/_bootstrap.py 3.6 KB runs code
- scripts/ablate.py 35 KB runs code
- scripts/abstract.py 826 B runs code
- scripts/act.py 51 KB runs code
- scripts/check.py 71 KB runs code
- scripts/commit.py 64 KB runs code
- scripts/conductor_backend.py 36 KB runs code
- scripts/conductor.py 68 KB runs code
- scripts/detect_loop_patterns.py 5.3 KB runs code
- scripts/digest.py 25 KB runs code
- scripts/funcmerge.py 26 KB runs code
- scripts/gate_check.py 21 KB runs code
- scripts/grow.py 10 KB runs code
- scripts/host.py 87 KB runs code
- scripts/integrate.py 14 KB runs code
- scripts/linkcheck.py 2.3 KB runs code
- scripts/measure.py 16 KB runs code
- scripts/mechanisms.py 7.4 KB runs code
- scripts/merge_n.py 15 KB runs code
- scripts/merge_rejects.py 18 KB runs code
- scripts/merge_search.py 27 KB runs code
- scripts/merge_taskopt.py 7.8 KB runs code
- scripts/merge_verify.py 15 KB runs code
- scripts/merge.py 19 KB runs code
- scripts/meter.py 6.3 KB runs code
- scripts/microcase.py 17 KB runs code
- scripts/multirep.py 2.8 KB runs code
- scripts/plan_round.py 17 KB runs code
- scripts/policy.py 14 KB runs code
- scripts/posterior_check.py 2.1 KB runs code
- scripts/pregate.py 25 KB runs code
- scripts/prepare_candidate.py 8.0 KB runs code
- scripts/proposer.py 12 KB runs code
- scripts/round.py 124 KB runs code
- scripts/run.py 2.2 KB runs code
- scripts/screen.py 19 KB runs code
- scripts/spend.py 11 KB runs code
- scripts/taskeval.py 13 KB runs code
- scripts/watchdog.py 6.0 KB runs code
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 Changed · +20 lines cf4aa5fb1fb2
- 1mo ago Changed · -185 lines · +16 tokens per session 69fcbe869d25
- 1mo ago Changed · +1 lines f2e2fab3805f
- 1mo ago Changed e89d2defac87
- 1mo ago Changed · +8 lines d4c8a27aae2e
- 1mo ago Changed · +1 lines 421c13c73a64
- 2mo ago Changed · +2 lines 181480cc5227
- 2mo ago Changed · -1 lines 9c00cd1f7e5b
- 2mo ago Changed c9e18a4b06e6
- 2mo ago First seen · 322 lines · 73 tokens per session scan A 5ec9f3096659
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 89 tokens to every session and 2,963 once invoked, about $0.0004 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.
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 | 89 | 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 |