Skip to content
Ragon
Star
Home
On this page

The morning report

Each night ends with a report: one entry per task, with the attempt that was chosen. This page shows how to read it, how the chosen attempt is picked, and how to bring its changes into your branch.

The morning report

/night report (or ragon night report) shows the latest report. Annotated sample:

# Night Shift report                                  <- the night's report, one file per run
## example-repo                                       <- tasks grouped by repository
### Fix the off-by-one in the pager                   <- the task's first line
- Branch: `night/t1`, not merged; review it, then    <- the chosen result lives on this branch
  `ragon night apply t1`
- Tests: `pytest tests/test_pager.py -q` (task): passed
- Attempts: 1, nudges: 0, wall time: 14 min
- Best of 3: 3 ran; chose attempt 2 by judge         <- how the chooser decided
  - Why: attempt 2 also fixed the second caller       <- the judge's reason
  - attempt 1: done, 2 files, tests failed, 12 min    <- dropped: its tests failed
  - attempt 2: done, 2 files, tests passed, 14 min, chosen: the branch
  - attempt 3: done, 3 files, tests passed, 15 min
- Last message: the agent's closing note
## Notes                                              <- anything odd about the night

Every attempt keeps its diff and logs; the report names where.

The chooser, in words

Each task is attempted three times by default, one after another ([night] best_of or --best-of N change it; 1 is a single run). Then:

  1. Attempts whose tests failed or timed out are dropped (if all failed, all stay).
  2. One survivor is chosen outright.
  3. Several survivors are compared in pairs by the model, and one wins.

Only the chosen attempt becomes the branch night/<id>. Three attempts take about three times as long as one, so a short window may fit fewer.

Bring a result back

git diff --stat main...night/<id>     # look first
ragon night apply <id>                # or /night apply <id>
ragon night apply <id> --attempt 2    # an attempt other than the chosen one

apply puts the changes into your checkout as uncommitted changes, all or nothing: if they conflict with your own changes it refuses and changes nothing. Review and commit them yourself. --attempt N takes attempt N instead of the chosen one, when you prefer another's approach.