Our agent reviews its own mistakes every day. Here is the loop, and the tests it produced A developer built SpaceApp, a self-hosted workspace where AI coding CLIs run side by side, and added a daily self-review loop that turns the agent's repeated mistakes into code changes, each backed by a test. The review prompt is built from figures Space counts rather than the agent's own account of its day, separating genuine mistakes from safety-gate refusals, and files fixes as queue items worked in separate upgrade rounds. The developer reports that most resulting fixes were simply rewritten error messages that state the next step, such as "read the pane before you answer again; never repeat the same answer. I build SpaceApp, a self-hosted workspace where AI coding CLIs run side by side in persistent rooms. Nous is the part of it that sees every room and pane, does the routine work itself and brings me only the decisions that need me. An agent that does routine work makes routine mistakes, and the same ones come back. This post is about the loop that catches the repeats: a daily self-review that turns them into code changes, each with a test. Every part of it is in the public repository, so you can read the code instead of taking my word for it. The first version was a scheduled task typed into a pane once a day. It kept getting lost: the pane it was bound to closed, and the review was skipped on 21 and 23 October. Since 24 October, Space itself starts the review as a turn of its own, once per local day at or after the hour you choose, and skips it when a review already ran that day. Source: daily-review.ts https://github.com/oll4com/spaceapp/blob/main/apps/api/src/nous/daily-review.ts and standing-orders.ts https://github.com/oll4com/spaceapp/blob/main/apps/api/src/nous/standing-orders.ts . The review prompt is built from figures Space counts, not from the agent's own account of its day: The split between mistakes and gate refusals matters. Without it, a safety rule doing its job would show up in the review as a bug to fix. Five orders, in this order: OPEN