/refine teaches the agent from what just happened, without rewriting its base prompt. See Refinement for the model behind it.
When to run it
- After a run that went unusually well and you want to lock in the pattern.
- After a run that went badly and you want to nudge the agent away from what it tried.
- On a fresh session started from a template, to bake project-specific guidance into supplemental state.
Run it
Inside an interactive session:- Reads the trajectory.
- Extracts evidence.
- Proposes updates to supplemental state.
- Snapshots the previous state.
- Applies the update.
Roll back
Every/refine writes a snapshot. If a refinement made behavior worse, roll back to the previous snapshot and try again with different context.