evolve

evolve is a skill for Codex from GAIR-NLP/ASI-Evolve. It costs 74 tokens per session (2,147 once invoked), scanned A, original, Apache-2.0.

A guide to improving code, algorithms, prompts, or workflows through repeated experiments scored by an evaluator. Each cycle learns from earlier results, designs a candidate, tests it, and analyzes what happened.

In plain words
What is it for?
Running evaluator-driven optimization rounds, recording candidates and results, comparing experiments, maintaining a best version, and feeding lessons into later attempts.
Why use it?
It keeps the goal, scoring method, experiment history, and lessons organized so changes can be compared instead of made randomly.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Codex.

Good fit Running evaluator-driven optimization rounds, recording candidates and results, comparing experiments, maintaining a…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gair-nlp/asi-evolve/evolve
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 GAIR-NLP/ASI-Evolve --skill evolve
Clone the repo
git clone --depth 1 https://github.com/GAIR-NLP/ASI-Evolve

Made for: Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/gair-nlp/asi-evolve/evolve.svg)](https://agentmods.dev/skills/gair-nlp/asi-evolve/evolve)
Your own site
<a href="https://agentmods.dev/skills/gair-nlp/asi-evolve/evolve"><img src="https://agentmods.dev/badge/skills/gair-nlp/asi-evolve/evolve.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,147 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.00074 $0.02147
Opus 5 $0.00037 $0.01073
Sonnet 5 $0.00015 $0.00429
Haiku 4.5 $0.00007 $0.00215

Measured 7d ago against content hash 03baeebc029b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

evolve 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 7d ago.

The scan reads SKILL.md. This mod also ships 19 executable files (scripts/evolve_core/__init__.py, scripts/evolve_core/algorithms/__init__.py, scripts/evolve_core/algorithms/base.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/evolve/SKILL.md · 121 lines

How it starts

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

Evolve

Treat this skill as the single-agent abstraction of ASI-Evolve-dev. Preserve the system's core idea: learn from prior knowledge, design the next candidate, run the evaluator, analyze the outcome, and feed the lesson back into the next round.

Preserve the operating model

  • Keep the four-stage loop intact: learn, design, experiment, analyze.
  • Use the bundled wrappers in scripts/ for stateful operations. Let the agent make orchestration decisions; do not recreate the repository's pipeline stack.
  • The agent itself must choose mutations, run experiments, inspect outputs, and write round analyses step by step.
  • Keep two memory systems alive for the whole run:
    • cognition store for approved external research, paper takeaways, and search-derived insights that may help future rounds
    • experiment database for every candidate, score, analysis, lineage, best snapshot, and lessons learned from actual experiments
  • Treat .evolve_runs/<run-name>/ as the source of truth for the active run.

Start with preflight

  • Draft or update the run spec before any mutate or evaluate step.
  • Align with the user on:
    • objective
    • core score
    • secondary metrics
    • evaluation command or script
    • evaluation timeout
    • success criteria
    • stop conditions and round budget
    • writable file scope and primary targets
    • sampling algorithm
    • island feature dimensions when sampling.algorithm=island
    • cognition source mode
  • Inspect the evaluator before confirmation. If the command or script is vague, pause and resolve it before continuing.
  • Even when the user already gave a detailed task description, you must still produce a concrete preflight plan/approach summary before any evolve round starts.
  • Require an explicit evaluator timeout during preflight. Do not treat timeout as an implicit default.
  • Confirm that the evaluator path you will use has timeout handling. The outer evolve-eval run timeout is mandatory, and the evaluator command or script should also accept or honor the configured timeout when it can hang internally.
  • Confirm that the evaluator can load the materialized candidate path that evolve-eval run produces. The default step artifact is steps/<step-name>/code with no forced extension or filename convention.
  • If you choose the sampling algorithm yourself during preflight, tell the user explicitly which algorithm you picked and why.
  • If you choose island, also tell the user the default feature semantics: complexity=len(code) and diversity=code-difference heuristic over stored programs, and mention that they can override the feature list before confirmation.
  • Refresh the preflight artifacts with scripts/evolve-brief normalize.
  • Keep approval.confirmed=false until the user explicitly approves the preflight summary.
  • Only flip approval.confirmed after the user says the plan is confirmed or approved. Never self-confirm because the request seemed detailed or complete.
  • Refuse to run evolve commands that mutate files, execute the evaluator, or write the final summary before confirmation.

Read the full file on GitHub · 121 lines

Files

What ships with it

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

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. 7d ago First seen · 121 lines · 74 tokens per session scan A 03baeebc029b

Subscribe to this mod's changes

evolve is a skill published in the GitHub repository GAIR-NLP/ASI-Evolve (854 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 74 tokens to every session and 2,147 once invoked, about $0.0004 per session on Opus 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens