Get started
Ormaos documentation
Ormaos records what happened inside a Python execution and shows it to you and to your coding agent, one short answer at a time.
You put ormaos run -- in front of a command. The program runs unchanged, with its own output and its own exit code, and a recording of what it did is saved next to it in .ormaos/: the calls of your code, every exception (also the ones that were caught and never shown), the I/O, the logging records (also the ones the level dropped), what each DataFrame and tensor looked like, and what could not be recorded.
A small command line reads the recording. Every answer is short and ends with next:, the commands for the next question.
$ ormaos run -- python job.py
sync finished: OK
ormaos: r1 exit 0 in …: 1 Python process, 322 calls, 7 exceptions (6 swallowed), 182 io
ormaos: swallowed 6x validate.SkuFormatError at job.py:57, raised at validate.py:24 [r1:e1]
ormaos: not collected: io: reads of the 1 file opened at fetch.py:26: opened for reading, and no `read` call by Python code was seen on a file of that name: if it was read, that was inside C code (a file that is iterated, `for line in f`, `csv.reader`)
ormaos: saved in .ormaos/r1, next: ormaos exceptions r1:e1 | ormaos tree r1:c1The job printed sync finished: OK. The four lines after it are Ormaos, on stderr: six exceptions were raised in validate.py and handled at job.py:57 without being raised again, and one file was opened for reading with no read call by Python code seen on it. Ormaos shows what happened; you, or your coding agent, decide whether that is what should have happened.
Start here#
next: line, change the code, compare two recordings.For coding agentsThe loop an agent runs: record, read, change, record again, ormaos diff.CLI referenceEvery verb and flag, from the argument parser of the version these docs describe.What a recording holds#
| Part | What is recorded |
|---|---|
context | the command (names only), the names of the environment variables, the exit code, duration, CPU, memory, every Python process |
calls | the call tree of your code, with the shape of each argument and result |
exceptions | every exception that passes through your code: where it was raised, where it was handled, and whether it was swallowed |
io | sqlite3 statements, files, subprocesses and HTTP requests, each with the line of your code that caused it |
logs | every logging record: level, logger, line, message template; also the ones the level dropped |
dataframes | of a pandas DataFrame or Series at a call: rows, columns, dtypes, nulls |
tensors | of a numpy array or torch tensor at a call: shape, dtype, device, how many NaN and inf |
path | line by line, only inside a scope you ask for |
not_collected | what this run could not record, with the reason |
It records shapes, never values: orders: list[36 parse.Order], not the orders. Values are recorded only in a run where you ask for them with --values. Nothing leaves your machine: no AI, no network, no telemetry. See Shapes, not values and Privacy.
For agents reading this site#
Every page is also plain Markdown: add .md to its path (this one is /index.md), or send Accept: text/markdown. /llms.txt lists every page with a one-line description, and /llms-full.txt is the whole site in one file.