Ormaos

Ormaos records and shows what happened inside your Python execution — the runtime context for your agent and for you.

The problem

A scheduled Python job prints sync finished: OK, exits without an error, and in the morning the stock of some products is wrong. The run cannot be repeated and nothing was logged, so whoever investigates, a person or a coding agent, has only the code and the data that is left.

Reading a recording by hand

The demo job, order-sync, in a fresh copy: install Ormaos, record one run, then read the recording. The summary names an exception that was caught and never seen; the next commands show where it was raised and handled, the calls below the handler, and the I/O they did.

A real terminal session, not edited. Pauses are shortened during playback.

An agent, without and with the recording

The same job on the morning after a night run that cannot be repeated. A coding agent gets the folder and one sentence: the run said OK, some products have wrong stock, find out why. On one side the folder has last night's recording, on the other it has not.

runs with the recording stated the cause as proven
5 of 5
runs without the recording stated the cause as proven
0 of 5

Measured: N = 5 runs per side, model claude-opus-5-5, each run started with only the prompt, in a sandbox that holds only its own folder.

On both sides, every run named the except that skips orders and the orders that were skipped. The difference is the reason for the skips. With the recording, the answer gave the exception type, how many times it was raised, and the lines where it was raised and handled, as what happened last night. Without it, every answer said the reason could not be confirmed and left other causes open.

On neither side could a run say what exactly was wrong in the text of the rejected values: Ormaos records shapes (types, lengths, structure), never values.

Below, one more run per side, recorded in a terminal. They are not among the runs counted above.

Without the recording. The agent finds the five orders that were skipped and the except that skips them, and says it cannot tell why they failed.

With the recording. The agent reads it first and gives the exception type, the five times it was raised, and the lines where it was raised and handled.

Real sessions, not edited; pauses are shortened during playback. Each step of the agent is printed as it arrives: what it runs, the first 12 lines of each result, and its answer.

A second job, two nights compared

Another job, freight-quote, asks a carrier's API for the freight of tomorrow's shipments and writes the quotes to a database. Last night it printed quotes finished: OK, and this morning 17 of its 26 quotes are lower than what the carrier charged. The night before was fine, and its quotes are gone: each run replaces them. Both nights were recorded, and ormaos diff says what the second one did that the first did not.

A real terminal session, not edited. In the second night, 17 of the 26 calls to the carrier were answered with 429, 17 urllib.error.HTTPError were caught at job.py:43, and rate in ratecard.py ran 17 times. In the first night, none of the three.

The same comparison as above, on this job: a coding agent gets the folder and one sentence, that the run said OK and some quotes are lower than what the carrier charged. On one side the folder has the recordings of the two nights, on the other it has not.

runs with the recordings gave the carrier's 429 as what happened
5 of 5
runs without the recordings gave the carrier's 429 as what happened
0 of 5

Measured: N = 5 runs per side, model claude-opus-5-5, each run started with only the prompt, in a sandbox that holds only its own folder.

On both sides, every run named the except that prices a shipment from an older rate card when the call to the carrier fails, and the 17 quotes that are equal to that rate card. Without the recordings, all five runs produced a 429 themselves on a copy, named a used-up daily allowance of calls as the most likely reason, and said they could not confirm which error it was last night. With the recordings, all five gave it as what happened: 9 calls answered with 200, 17 with 429, and 17 exceptions caught at job.py:43.

Try it in 3 commands

git clone https://github.com/ormaos/ormaos-examples && cd ormaos-examples/order-sync
python3 -m venv .venv && .venv/bin/pip install git+https://github.com/ormaos/ormaos-python
./reset.sh && .venv/bin/ormaos run -- .venv/bin/python job.py

The job's own output comes first, unchanged. Then Ormaos prints a short summary on stderr, and its last line gives the next command to run. What is needed to install it, and everything else, is in the README.

Not yet

ormaos-python (the recorder and the command line) · ormaos-examples (the demo job and this page) · Apache License. This page loads one third-party script, the asciinema player, and nothing else.