OrmaosDocs

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.

View as Markdown

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.

order-sync
$ 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:c1

The 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#

What a recording holds#

PartWhat is recorded
contextthe command (names only), the names of the environment variables, the exit code, duration, CPU, memory, every Python process
callsthe call tree of your code, with the shape of each argument and result
exceptionsevery exception that passes through your code: where it was raised, where it was handled, and whether it was swallowed
iosqlite3 statements, files, subprocesses and HTTP requests, each with the line of your code that caused it
logsevery logging record: level, logger, line, message template; also the ones the level dropped
dataframesof a pandas DataFrame or Series at a call: rows, columns, dtypes, nulls
tensorsof a numpy array or torch tensor at a call: shape, dtype, device, how many NaN and inf
pathline by line, only inside a scope you ask for
not_collectedwhat 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.