Install
$ agentstack add skill-fortunto2-rust-code-self-evolve ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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 (SGRSYSTEMPROMPT) | | 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: "" - Stuck →
finish: " — 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.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: fortunto2
- Source: fortunto2/rust-code
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.