optimize

optimize is a skill for Claude Code from evo-hq/evo. It costs 15 tokens per session (1,986 once invoked), scanned A, original, Apache-2.0.

An optimization loop that repeatedly gives structured work briefs to parallel subagents. Subagents are smaller agent workers that can investigate, edit, and test work independently.

In plain words
What is it for?
It is for running repeated experiments and edits across agent workers, using their findings and branches to improve a target until progress stops.
Why use it?
It removes the need to coordinate each optimization round manually. The loop continues until it is interrupted or reaches its stated stall limit.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions subagents; mentions Codex.

Good fit It is for running repeated experiments and edits across agent workers, using their findings and branches to improve a target until progress stops.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/evo-hq/evo/baseline
About the project

Evo is an agent plugin that turns a codebase into an automated experiment loop, discovering metrics, changing code, and testing whether those changes improve the results. It is used to optimize software through parallel subagents, tree-based exploration, shared experiment records, and optional regression or safety gates. The catalogue entries provide agent skills, hooks, commands, and other workflow components for operating Evo.

evo-hq/evo · 1,472 stars · on GitHub · evo-hq.com

Install

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.

Any agent
npx skills add evo-hq/evo --skill baseline
Clone the repo
git clone --depth 1 https://github.com/evo-hq/evo

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 optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/evo-hq/evo/baseline/github.svg)](https://agentmods.dev/skills/evo-hq/evo/baseline)
Your own site
<a href="https://agentmods.dev/skills/evo-hq/evo/baseline"><img src="https://agentmods.dev/badge/skills/evo-hq/evo/baseline/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 optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/evo-hq/evo/baseline"><img src="https://agentmods.dev/badge/skills/evo-hq/evo/baseline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,986 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.00015 $0.01986
Opus 5.5 $0.00006 $0.00794
Sonnet 5.5 $0.00003 $0.00397
Haiku 4.5 $0.00002 $0.00199

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

Security

Grade A, and why

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 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.

scripts/rlm_eval/baseline_SKILL.md · 154 lines

How it starts

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

Run the evo optimization loop. Each round, the orchestrator writes structured briefs and spawns parallel subagents that execute within them. Each subagent is semi-autonomous: it reads the pointer traces, forms the concrete edit, runs experiments, and can iterate within its branch. Runs until interrupted or the stall limit is reached.

Host conventions

This skill runs on any host that implements the Agent Skills spec. When the body uses generic phrases, apply the host's best-fit equivalent:

  • "spawn N subagents in parallel" -- use your host's parallel-subagent or background-task tool if you have one (e.g. Agent with run_in_background, spawn_agent + wait_agent, spawn_agents_on_csv for batch). Respect the host's concurrency cap -- if N exceeds it, run in batches. If the host has no parallel-subagent tool, run them serially and note the reduced round width in the final summary.
  • Slash commands shown in user-facing copy (e.g. /evo:optimize) -- translate to your host's mention syntax when speaking to the user (e.g. $evo optimize on Codex -- plugin namespace then skill name, separated by a space).

Configuration

These defaults can be overridden via arguments: /optimize [subagents=N] [budget=N] [stall=N]

  • subagents: number of parallel subagents per round (default: 5)
  • budget: max iterations each subagent can run within its branch (default: 5)
  • stall: consecutive rounds with no improvement before auto-stopping (default: 5)

Prerequisites

  • Workspace must be initialized (evo status should succeed)
  • A baseline experiment must be committed (run /discover first)
  • All benchmark dependencies must be available in the environment

Architecture

Orchestrator (this agent):
  - Reads state, identifies failure patterns cross-cutting the tree
  - Writes one brief per subagent: objective + parent + boundaries + pointer traces
  - Verifies briefs are diverse (no two attacking the same surface)
  - Collects results, prunes dead branches, adjusts strategy

  Subagent A (brief, budget: N iterations):
    - Reads its pointer traces, forms the concrete edit
    - Creates experiment, edits target, runs benchmark, analyzes
    - If budget remains and sees a promising follow-up, continues
    - Can run up to N serial experiments on its own branch
    - Returns: what it tried, what worked, what it learned

  Subagent B (different brief, budget: N iterations):
    - Same protocol, non-overlapping objective
    ...

Read the full file on GitHub · 154 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 · 154 lines · 15 tokens per session scan A 460643921855

Subscribe to this mod's changes

optimize is a skill published in the GitHub repository evo-hq/evo (1,472 stars, last pushed 11d ago), licensed Apache-2.0. It adds 15 tokens to every session and 1,986 once invoked, about $0.0001 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-06.

Related

Other skills, from other repositories

codex-autoresearch

Triage improvement work and run or resume accepted measured loops in a local project. Architecture, documentation, UX, product study, open research, taste, and one-shot fixes stay direct unless the user explicitly requests repeated measurement with a complete experiment contract.

TheGreenCedar/codex-autoresearch · 55 tokens

write-skills

Create or revise agent skills. Use when adding a new skill file, renaming a skill, simplifying an existing skill, improving trigger descriptions, or deciding what belongs in a skill versus references, scripts, assets, or ordinary docs.

dzhng/skills · 50 tokens

refactor-clean

Refactor cleanly instead of layering sediment. Use for rename requests, stale or misleading names, legacy leftovers, changed scope, or when a change reveals duplicated concepts, local adapters, obsolete owners, redundant inputs or guards, compatibility wrappers, parallel abstractions, an over-large module that has…

dzhng/skills · 80 tokens

screenshot-critique

Use the unprimed sub agent as a second set of eyes before accepting visual work — MANDATORY before declaring any user-reported visual bug fixed or claiming a visual change verified; primed eyes pass defects fresh eyes catch.

dzhng/skills · 52 tokens

claude

Use Claude Code as an independent claude -p subagent when the user explicitly asks for Claude, wants a second-agent opinion from Claude, or asks to delegate a well-scoped task to Claude. Supports selecting --model and thinking/effort level with defaults of the current opus alias and high.

dzhng/skills · 70 tokens

xiaohei-illustrations

Generate Ian-style Xiaohei illustrations for articles, posts, blogs, Notion documents, workflows, methods, processes, structures, states, metaphors, and opinions. Use when the user asks for weird, hand-drawn, Xiaohei, article, editorial, body illustrations, illustration ideas, shot lists, title removal, image edits…

dzhng/skills · 107 tokens