Refine your agent
Ask Zhanla to refine your agent. A refinement tries fixes in a separate git worktree, measures each against your unchanged code and recommends the best.
- Baseline
- Propose a patch
- Run tests and linters
- Measure it
- Go again or stop
You approve one card: goal, target score, iteration cap (default 10), base commit, the files it may change, and the tests and linters it runs.
Each iteration is a hypothesis, a patch, your checks and a measured run. If the repository has no tests or linters, a trial run of one dataset item stands in for the checks. Later iterations see earlier ones, regressions included, and a repeated patch is refused.
A refinement stops at the cap and pauses after two iterations in a row that couldn't complete. Otherwise the model decides when to stop, guided by your target and by three iterations without a 0.02 gain.


Nothing is applied. Ask Zhanla to open the iteration you want as a draft PR.
Updated Nov 24, 2026. Checked against release candidate b60cdc94. For AI agents: llms.txt.