← Back to Skills Marketplace
bowen31337

RSI Loop v2 — AVO-Inspired Agent Self-Improvement

by bowen31337 · GitHub ↗ · v2.0.0 · MIT-0
cross-platform ⚠ suspicious
118
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install rsi-loop
Description
Recursive Self-Improvement (RSI) loop for EvoClaw agents. Provides a structured observe→analyze→synthesize→deploy pipeline that enables agents to detect thei...
Usage Guidance
What to check before installing/using this skill: - Review deployer.py, synthesizer.py, and any 'apply_gene' logic. Confirm how the code enforces blast_radius and IMMUTABLE_CORE (is AGENTS.md / SOUL.md actually blocked at runtime?). - Expect the skill to write files under skills/rsi-loop/data/ and skills/rsi-loop/memory/ (append-only lineage & events). If you need to keep an audit trail, review those artifacts; if not, run in a disposable environment first. - The skill can execute scripts in other skill directories (e.g., skills/intelligent-router/*). Decide whether you want an automated process that can run those commands or change those files — if not, restrict filesystem permissions or run the skill in a sandbox/container. - The code refers to an EVOLVE_STRATEGY env var and other platform integrations (MQTT, model provider names) but declares none; if you plan to enable auto-deploy, make explicit policies and environment variables you trust. Consider setting auto-approve thresholds to 0 (no auto-approve) until you’ve audited behavior. - Because this skill can autonomously modify repo files and run cross-skill commands, treat it like a privileged operator: test in a safe sandbox, inspect tests and the deploy path, and require human-in-the-loop approval for any change touching production files. If you want, I can scan specific files (deployer.py, synthesizer.py, openclaw_shim.py) for the exact enforcement logic and list the places where it reads/writes files or invokes external commands.
Capability Analysis
Type: OpenClaw Skill Name: rsi-loop Version: 2.0.0 The bundle implements a 'Recursive Self-Improvement' (RSI) framework that enables an agent to autonomously analyze its own logs, generate 'improvement' proposals, and deploy code or configuration changes. While the stated intent is agent evolution, the implementation in 'scripts/deployer.py' is highly risky, as it executes arbitrary shell commands (shell=True) defined in 'data/genes.json' and can modify the agent's workspace. The bundle includes security-conscious features like an 'IMMUTABLE_CORE' list to protect sensitive files (e.g., SOUL.md) and 'blast_radius' checks to limit the scope of changes, which suggests a complex tool rather than intentional malware. However, the autonomous self-modification and shell execution capabilities represent a significant RCE surface if the agent's synthesis logic is compromised or manipulated via prompt injection.
Capability Assessment
Purpose & Capability
The name/description (an RSI loop for EvoClaw agents) matches the included code and instructions: observer→analyzer→synthesizer→deployer. The ability to scaffold skills, update SOUL.md/AGENTS.md, and run discovery on routing components is consistent with a self-improvement tool. However the skill includes actions that reach beyond its own directory (templates/implementation that run other skills' scripts and target files across the workspace), which is powerful but also wider than a small, focused helper. That breadth is plausible for an RSI tool but worth conscious acceptance.
Instruction Scope
SKILL.md instructs running multiple scripts that read/write data/JSONL in skills/rsi-loop/data and that call or instruct running other skills (e.g., skills/intelligent-router scripts, spawn_helper, tiered-memory scripts). The codebase includes a Lineage store that creates/writes memory/rsi-lineage.jsonl and methods that rewrite lineage files (update_outcome). Several 'implementation' templates explicitly tell the agent to run commands that will modify files across the repo. SKILL.md does not declare or warn about needing repository-level write access, nor does it enumerate external endpoints/credentials required by those downstream scripts. This gives the agent broad discretion to inspect and change files outside its own directory during auto-deploy cycles.
Install Mechanism
No install spec is present (instruction-only install), which reduces risk of arbitrary remote code downloads. However, the skill ships many Python scripts (21 code files) that will be executed locally; because there is no explicit install step, those files will simply run from the agent runtime when invoked. That is expected for an instruction+script skill, but users should treat the included code as executable payload that will run on the host.
Credentials
The registry metadata declares no required env vars or credentials, but internal policies and code reference environment-driven behavior (e.g., mutation-selection mentions EVOLVE_STRATEGY, cron examples reference models and MQTT integration) and implementation templates will likely rely on existing platform credentials (model provider keys, MQTT or ClawChain access). The skill requests no secrets up front yet contains functionality that may trigger use of other credentials present on the agent. Also, several data/proposals include absolute filesystem paths observed from prior runs — suggesting the code performs workspace scanning. This mismatch (no declared env/config needs vs. code that depends on broader environment/context) is a red flag for misplaced assumptions.
Persistence & Privilege
always:false (not force-included) and model invocation is allowed (normal). The skill persists append-only and derived files under skills/rsi-loop/memory and data; LineageStore makes directories and writes JSONL. The skill is allowed to auto-deploy proposals (CLI flags for auto-approve thresholds), which means it can autonomously make code/config changes within blast-radius rules. That autonomous modify capability combined with repository-level file access increases blast radius, but the skill includes an IMMUTABLE_CORE list intended to require human approval for certain files. Importantly, there's an inconsistency: IMMUTABLE_CORE lists AGENTS.md and SOUL.md (protected), while some Genes' allowed_paths (and proposals) explicitly target AGENTS.md for auto-application — this contradiction needs manual verification (either Genes would be blocked by the immutable policy or the policy is not enforced).
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install rsi-loop
  3. After installation, invoke the skill by name or use /rsi-loop
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.0
v2: AVO-inspired upgrades — proposal lineage tracking (ProposalNode+LineageStore), critique gate before deploy (CritiqueAgent with ancestor success rate + redundancy check), knowledge base (failure/success/anti-patterns.md auto-populated from lineage). All additive, zero breaking changes. 100/100 tests pass.
Metadata
Slug rsi-loop
Version 2.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is RSI Loop v2 — AVO-Inspired Agent Self-Improvement?

Recursive Self-Improvement (RSI) loop for EvoClaw agents. Provides a structured observe→analyze→synthesize→deploy pipeline that enables agents to detect thei... It is an AI Agent Skill for Claude Code / OpenClaw, with 118 downloads so far.

How do I install RSI Loop v2 — AVO-Inspired Agent Self-Improvement?

Run "/install rsi-loop" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is RSI Loop v2 — AVO-Inspired Agent Self-Improvement free?

Yes, RSI Loop v2 — AVO-Inspired Agent Self-Improvement is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does RSI Loop v2 — AVO-Inspired Agent Self-Improvement support?

RSI Loop v2 — AVO-Inspired Agent Self-Improvement is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created RSI Loop v2 — AVO-Inspired Agent Self-Improvement?

It is built and maintained by bowen31337 (@bowen31337); the current version is v2.0.0.

💬 Comments