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 agentmods add skills/fortunto2/rust-code/self-evolvenpx skills add fortunto2/rust-code --skill self-evolvegit clone --depth 1 https://github.com/fortunto2/rust-codeWhat 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 | $0.00071 | $0.00569 |
| Opus 5 | $0.00036 | $0.00284 |
| Sonnet 5 | $0.00014 | $0.00114 |
| Haiku 4.5 | $0.00007 | $0.00057 |
Grade A, and why
self-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 2d 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.
What it actually says
Self-Evolution
Analyze your own performance history and fix recurring issues. ONE improvement per iteration.
Process
- Read
.rust-code/evolution.jsonl+ recent session logs - Find patterns: patch failures, loop warnings, error spikes
- Trace to root cause in source code
- Apply minimal fix,
make check, commit - Signal
RESTART_AGENTif you changed agent code
Reference files for diagnosis: references/diagnosis-paths.md
Key Source Files
| Symptom | Source |
|---|---|
| Patch matching failures | crates/sgr-agent/src/app_tools/apply_patch.rs |
| Agent stuck in loops | crates/sgr-agent/src/loop_detect.rs |
| Prompt confusion | crates/rc-cli/src/agent.rs (SGR_SYSTEM_PROMPT) |
| Tool argument errors | crates/rc-cli/src/agent.rs (execute_action) |
| Schema issues | crates/sgr-agent/src/schema.rs |
Signals
- Fixed something →
finish: "RESTART_AGENT — [what you fixed]" - Nothing to fix →
finish: "<solo:done/>" - Stuck →
finish: "<solo:done/> — need human input"
Gotchas
- RESTART_AGENT kills your context — everything in memory is lost. Commit first, write notes to
.tasks/for the next session to pick up. - Simplicity threshold — a 0.001 score improvement that adds 20 lines of hacky code is NOT worth it. Removing code with equal results is always a win.
make checkcan take 2+ minutes — don't call it in a tight loop. Run once after your change, fix issues, run once more to verify.- Don't optimize what you can't measure — read actual session logs, grep for error patterns. Don't guess at improvements.
- Evolution log is append-only — don't edit
evolution.jsonl. The loop engine reads it for scoring trends.
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.
- 2d ago First seen · 45 lines · 71 tokens per session scan A 71fb217c5c27
self-evolve is a skill published in the GitHub repository fortunto2/rust-code (41 stars, last pushed 10d ago), licensed MIT. It adds 71 tokens to every session and 569 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.
Other skills, from other repositories
test-repo
Use this skill to test strategy changes against a fresh test repository. Invoke when the user asks to "test against a test repo", "validate the changes", or wants to verify session hooks, commits, and rewind functionality work correctly.
development
开发语言能力索引。Python、Go、Rust、TypeScript、Java、C++、Shell。当用户提到编程、开发、代码、语言时路由到此。.
model-update
新增或更新 CCX 项目中的模型注册技能。适用于 Claude 与非 Claude 模型,覆盖能力表、路由白名单、基准映射、代码生成与验证。.
conductor-implement
Executes the tasks defined in the specified track's plan. Use this to start or continue working on a feature, bug fix, or chore.
bionic-decision-engine
Unified mathematical arbitrator for all resource allocation decisions — money, time, energy, relationships. Absorbs 46 decision protocols + 24 strategy protocols into one dense engine.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.