A system must see what it is missing
Improvement starts with gap detection between the current state and the goal. Without it, the loop only re-runs what it already knows and mistakes motion for progress.
AGENTS.md native ยท no dependencies
A lightweight recursive self-improvement loop that drops into any project
following the AGENTS.md convention. Clone the folder, point the
agent at goal.md, and let it run.
Click a step to inspect it. The loop always reads the goal first.
light-rsi owns the loop and nothing else. Plans, state, logs, traces, code, data, and results stay with the host project.
.light-rsi/.light-rsi/
RSI memory is deliberately narrow: only rules about running the loop.
Reuse is gated by compatibility: exact may be reused,
partial and unknown must pass the cheapest
adaptation test, none is contrast only.
git clone https://github.com/ztxtech/light-rsi \
<project-root>/.light-rsi
## RSI loop
Before each round, read `.light-rsi/AGENTS.md`
and run its loop. The goal is `.light-rsi/goal.md`.
On first run the loop creates goal.md and the memory files
from templates. They are git-ignored, so upstream updates never conflict
with your goal or memory.
Improvement starts with gap detection between the current state and the goal. Without it, the loop only re-runs what it already knows and mistakes motion for progress.
A weak evaluator cannot separate progress from activity, so it stops early or churns. Here the evaluator starts from raw artifacts with a blank context, and may not say "can stop" while a blocker or a higher-value action remains.
Pure self-analysis converges to a fixed point: the system keeps re-deriving its own assumptions. The loop opens outward instead, through ready-made answers, similar problems, weaker subproblems, leading-route DFS, failure questions, and cross-domain literature, and treats what it finds as evidence rather than conclusion.
A gate compares expected gain with coordination cost and risk before decomposition. If parallel wins, isolated blank-context brainstormers fill every usable slot; their raw results are merged by evidence, not agreement, and dissent is preserved.
light-rsi is a lightweight extraction of the RSI loop from AION, a harness built for time-series work.
AION is a good project; it simply did not have enough compute and experiment hardware behind it. So we pulled its RSI loop out into a small external component that can be used every day.
It does not favor any harness: it follows the AGENTS.md convention.
Your harness only needs a goal mode. Point it at the goal in
.light-rsi/ and it can keep going, because the agent starts from
this directory and runs the whole loop here.