Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

omni stats

Token savings analytics, read from your own database.

omni stats

Leads with the bytes that never reached your model, then one line per engine, each percentage against its own base, then the command classes those bytes came from. The aggregate below them mixes in every call OMNI deliberately declined, so it is a diagnostic for one host’s pipeline rather than a product claim.

Every view draws the same frame, OMNI · <view> · <window> between two rules, and --view context carries no window because it reads the live session rather than a period.

Flags

flageffect
--since <window>hour, today, week, month (default), all
--view <name>summary (default), detail, projects, context, rerun, share
--limit <n>Rows in a table view, default 10, 0 for all. Read by detail, projects and rerun; a table it cuts says how many rows it hid
--jsonMachine readable, scoped by --since
--cardWrite the summary as an image, sized for social posts
--help, -hHelp

Every earlier spelling still resolves: --detail, --today, --day, -d, --week, -w, --month, -m, --hour, -H, --all-commands, --project, --context, --rerun, --share and --view commands. They are not listed because there is one way to say each thing now, and they print no deprecation notice: the rename was ours, not yours. --view commands is in that list rather than the table above because it renders the detail view and always did.

--json and --card are output formats rather than views. --card outranks everything, since naming it can only mean writing the file; --json outranks --view, since there is one machine-readable report and it is not per view. Both used to be read as views, which is how --view detail --card came to write no image.

--rerun is the one to know

Reduction percentage cannot tell you whether a distiller removed something the agent then had to fetch again. If it did, the reduction was a deferral, not a saving. This flag is the check that percentage cannot make.

Traps

Terminal rows are not tokens. Output written to a TTY is read by a human, not a model. On one installation those rows were 73% of every byte OMNI claimed to have saved. stats excludes them now, and so does the benchmark harness, but anyone querying ~/.omni/omni.db directly has to filter by agent_id themselves.

A high number deserves suspicion. The worst defects in this project reported the highest reductions, because deleting the answer compresses very well. Pair any figure with omni diff on a real command.

A low aggregate is usually right, and it is not the number to judge OMNI by. Most calls are handed back untouched by design, so read the per-class rows to see where the work actually happened.

--share and --card cannot drift from the report. Both read the same aggregation as omni stats itself, which was a deliberate choice after an earlier version computed them separately.