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 xg-gh-25/SwarmAI --skill s_self-evolutiongit clone --depth 1 https://github.com/xg-gh-25/SwarmAIWrote 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/xg-gh-25/swarmai/s_self-evolution)<a href="https://agentmods.dev/skills/xg-gh-25/swarmai/s_self-evolution"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_self-evolution/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/xg-gh-25/swarmai/s_self-evolution"><img src="https://agentmods.dev/badge/skills/xg-gh-25/swarmai/s_self-evolution.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.00063 | $0.01186 |
| Opus 5.5 | $0.00025 | $0.00474 |
| Sonnet 5.5 | $0.00013 | $0.00237 |
| Haiku 4.5 | $0.00006 | $0.00119 |
Grade A, and why
self-evolution 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 — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Self-Evolution — Governance Lifecycle Manager
Manages the Three-Layer Governance OS: Principles → Rules → Gates. Read INSTRUCTIONS.md for the full protocol.
Six Operations
| Operation | Trigger | What It Does |
|---|---|---|
| CLASSIFY | Any governance change proposed | Classify layer, parent principle, check overlap and size delta |
| CAPTURE | User correction detected | Write C-entry with bias tag (A/B/C/D) |
| PROMOTE | Pattern seen 3x OR user approves | Elevate from EVOLUTION → AGENT/STEERING (absorbs steeringify) |
| REFINE | Principle not precise enough | Sharpen existing principle/rule wording |
| RETIRE | Rule covered by gate, or 30d idle | Remove from active rules, record in EVOLUTION |
| COMPRESS | 3+ rules share same root | Merge into single rule with broader coverage |
Trigger Detection (unchanged from v1)
🔴 Reactive — Capability gap
🟡 Proactive — Better way exists (deferred)
🟢 Correction Capture — User pushback → C-entry with bias tag
🔵 Stuck — Going in circles
Priority: Stuck > Reactive > Correction > Proactive Limits: Max 3 triggers/session. 60s cooldown.
Bias Classification (on every correction)
| Bias | Pattern | Indicator |
|---|---|---|
| A | Premature completion | "Good enough", skip review, defer known issue |
| B | Inference over evidence | Assert without reading, stale memory |
| C | Productivity over quality | Rush output, shallow analysis |
| D | Surrender on obstacle | Give up, ask user to compensate |
Admission, not a count budget (enforced on PROMOTE/REFINE)
There is no count cap (AGENT.md § Intake Gate): the real risk is attention dilution, which no count measures. Every new rule passes three questions — a NO blocks it: (1) a genuinely new axis? overlap → fold into the existing rule; (2) load-bearing — can I name the failure it prevents? (3) belongs here — principle → SOUL, one-off → EVOLUTION, better as a mechanism → SOUL P7. Before drafting, ask whether a clearer skill, a better tool result, a mechanism or an edit to an existing rule fixes it: a new sentence in the prompt is the last resort. An addition that would dilute the set must REPLACE an existing rule or not land.
What ships with it
2 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.
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 · +13 lines · -49 tokens per session 05a547ba8c7b
- 3mo ago First seen · 83 lines · 112 tokens per session scan A aa59bcb57981
self-evolution is a skill published in the GitHub repository xg-gh-25/SwarmAI (66 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 1,186 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-08-30.
self-evolution compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| self-evolutionxg-gh-25/SwarmAI | Skill | 66 | today | MIT | A | 63 | Claude Code, Codex |
| hindsight-architectvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 35 | Claude Code, Codex |
| hindsight-localvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 32 | Claude Code, Codex |
| hindsight-coding-agentvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 74 | Claude Code, Codex |
| bot-handoffvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 57 | Cursor |
| memory-contextvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 47 | Cursor |
| routine-memoryvectorize-io/hindsight | Skill | 64k | yesterday | MIT | A | 54 | Cursor |