Who it is forA researcher developing a recursive self-improvement method who wants to keep control of candidate generation, memory, and selection.
The problemEvaluating each candidate across benchmarks means writing execution and result handling for every task, which takes time away from the method itself.
The outcomeA Python loop that generates a candidate, scores it on chosen tasks, and uses per-task feedback to produce the next candidate.
What you need first
- Python 3.12 or newer and git
- Docker Engine with Compose and Buildx, or Docker Desktop, for benchmark runs
- Codex CLI on PATH and access to a model for candidate runs
- Harbor 0.18.0 installed through the harbor extra for benchmark runs
Steps
python -m pip install -e '.[harbor]'- Write a Python script that imports TargetSpec, BenchmarkSelection, RunOptions, and evaluate from Rsi Eval, following the SDK example in the README.
- In the loop, build a TargetSpec from your candidate directory and call evaluate() with a new output_dir for each candidate.
- Read result.status and each trial's task_id, status, and reward, and pass them to your candidate generator.
Prompt for your agent
Using the rsi_eval SDK, write a loop that generates a candidate in <candidate-dir>, calls evaluate() with a new output directory per candidate, and collects per-task rewards. Report the reward for each candidate across iterations. Verify that each evaluation wrote its own result.json and resolved.json.
Caveat. The README notes that bundled Codex targets need concurrency=1, and each loop iteration with a model consumes quota.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for Danielxu0208/rsi_eval and "Build your own self-improvement loop around evaluate()"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer