OrmaosDocs

Get started

Install

Install ormaos from GitHub into the Python environment that runs your program, then check what that Python can record.

View as Markdown

Requirements#

  • Python 3.12 or newer. Ormaos records with sys.monitoring, which Python 3.12 added. On an older Python, ormaos guide says that only the context of the command can be recorded.
  • Linux. Windows and macOS are not tested (see Not yet).
  • No other package: the ormaos package uses only the Python standard library.

Install it where your program runs#

Ormaos must be installed in the environment of the Python that runs your program: that Python must be able to import ormaos.

bash
pip install git+https://github.com/ormaos/ormaos-python

In a virtual environment of the project:

bash
python3 -m venv .venv
.venv/bin/pip install git+https://github.com/ormaos/ormaos-python

With uv:

bash
uv pip install git+https://github.com/ormaos/ormaos-python

There is no package on PyPI yet; install from GitHub.

Check it#

order-sync
$ ormaos --version
ormaos 0.0.1

ormaos status says whether this Python can record, whether the recorder starts by itself in the Python processes of ormaos run, and the limits of a recording:

order-sync
$ ormaos status
ormaos 0.0.1 on Python 3.14.4 (/tmp/ormaos-docs-generate/venv/bin/python)
this Python can record: yes; starts by itself under `run`: yes
this command is not running inside a recording
limits when recording, per process: 200000 calls, 50000 exceptions, 200000 lines, 100000 io events, 50000 logging records (ORMAOS_MAX_CALLS, ORMAOS_MAX_EXCEPTIONS, ORMAOS_MAX_LINES, ORMAOS_MAX_IO, ORMAOS_MAX_LOGS)
space: .ormaos uses …; the largest: r1, …; ormaos sets no limit on the folder and deletes nothing
1 recording in .ormaos; last: r1, 2026-11-27 12:00:00, complete, exit 0
next: ormaos show r1 | ormaos list

starts by itself under run: yes means the package installed its .pth file, so every Python process that the command starts, in this environment, is recorded. A Python of another environment, or one started with -S, is not; the recording says how many such processes it missed. See Subprocesses and child processes.

Tell your coding agent#

ormaos guide --agents-md prints one line for the AGENTS.md of your project. With --write it shows the change as a diff and adds the line:

order-sync
$ ormaos guide --agents-md --write
--- /dev/null
+++ AGENTS.md
@@ -0,0 +1 @@
+- To see what actually happened inside a Python execution (what ran, how often, what was raised and caught, what I/O happened), record it with `ormaos run -- <command>`; run `ormaos guide` first to learn how.
ormaos: added the line to AGENTS.md

Without --write, no file is touched. The ormaos-python repository also has the same guidance as a skill, in skills/ormaos: copy that folder into the skills folder of your agent.

Next#