DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to build your own self-improvement loop around evaluate() with Rsi Eval

Call evaluate() from your own loop to test each new candidate and feed scores into the next one.

Short answer: python -m pip install -e '.[harbor]'; then 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. All steps.

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

  1. python -m pip install -e '.[harbor]'
  2. Write a Python script that imports TargetSpec, BenchmarkSelection, RunOptions, and evaluate from Rsi Eval, following the SDK example in the README.
  3. In the loop, build a TargetSpec from your candidate directory and call evaluate() with a new output_dir for each candidate.
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer