Skip to main content

INFINI CLI

The reference implementation of the infini command-line tool.

The CLI is the INFINI Reference Engine. It conforms to the same Loopfile spec as every other engine. The only asymmetry: it ships first with new spec features, since the spec is developed against it.


Install

pip install infini-cli

# With adapter extras
pip install infini-cli[hermes,openclaw]

# From source
git clone https://github.com/NickAiNYC/infini
cd infini/cli && pip install -e .

Requires Python 3.10+.


Commands

infini validate  [Loopfile]   # check spec compliance
infini run       [Loopfile]   # execute a loop (--mock for no API key)
infini inspect   [run_dir]    # inspect a trace (--web opens Observatory, coming soon)
infini replay    [run_dir]    # time-travel debug from any step
infini diff      [v1] [v2]    # semantic diff between loops or traces
infini ui        [trace]      # launch the Observatory web app
infini engines                # list detected adapters (reads adapter.yaml)
infini init      [--target]   # scaffold a minimal project (Loopfile, loops/, state/, runs/)
infini new       <name>       # create a new project scaffold
infini graph     [Loopfile]   # render a simple ASCII graph of steps
infini benchmark [Loopfile]   # preview benchmark estimate (real profiling needs a run)

Commands not yet implemented (planned)

infini install   [loop_ref]   # pull from registry (planned — registry not yet live)
infini publish   [Loopfile]   # push to registry (planned)
infini ci        [Loopfile]   # run loop against fixtures (GitHub Action)
infini search    [query]      # search the registry (planned)
infini migrate   [Loopfile]   # migrate a Loopfile between spec versions
infini keys generate           # generate a publisher signing keypair

Mock mode

infini run --mock simulates LLM calls so you can run any Loopfile without an API key. Useful for evaluation, CI, demos, and the conformance suite. Mock mode is deterministic: same Loopfile + same seed = same output.


Conformance

The CLI implements:

Capability Status
Parse Loopfile
Run Loop
Verify
Inspect Trace
Replay
Diff

This makes the CLI the canonical conformance reference. If your adapter disagrees with the CLI on a spec edge case, the CLI is right until an RFC says otherwise.


Architecture

cli/
├── README.md           # you are here
├── pyproject.toml      # package metadata
├── src/infini/
│   ├── __init__.py
│   ├── main.py         # entrypoint
│   ├── parse.py        # Loopfile parser
│   ├── validate.py     # JSON Schema validator
│   ├── run.py          # reference engine
│   ├── inspect.py      # trace inspector (Loop Observatory)
│   ├── replay.py       # time-travel debugger
│   ├── diff.py         # semantic diff
│   ├── registry.py     # publish/install/search
│   ├── ci.py           # CI mode
│   ├── migrate.py      # spec migration
│   └── keys.py         # signing key management
└── tests/
    ├── conformance/    # spec conformance suite
    ├── fixtures/       # example Loopfiles
    └── expected/       # expected trace shapes

The full source ships with the next CLI release. This README documents the contract.


The Loop Observatory

infini inspect <run_dir> opens the Loop Observatory — the signature feature.

The Observatory shows, for any run:

  • the graph of decisions taken,
  • every verification checkpoint and its verdict,
  • total runtime, token count, and dollar cost,
  • artifacts produced at each step,
  • where the loop failed (if it did), and what was retried,
  • what changed between iterations,
  • governance events (Hermes) and tool calls (OpenClaw) in a swimlane view.

The Inspector ships today. The full UI (annotated timeline, cost waterfall, artifact gallery, replay studio) is in preview.


License

MIT. See repository LICENSE.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infini_cli-1.1.0.tar.gz (65.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infini_cli-1.1.0-py3-none-any.whl (71.1 kB view details)

Uploaded Python 3

File details

Details for the file infini_cli-1.1.0.tar.gz.

File metadata

  • Download URL: infini_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for infini_cli-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4d45dec8526a9be570050340438cea358fb33aa411a5733e6fcafe844991b801
MD5 3d75295815d0cfcef99af63f1b7e3f8b
BLAKE2b-256 32527e99a189caad6ea1c6b1feaccce09dad726f5898ae08591c64af529ff7a2

See more details on using hashes here.

File details

Details for the file infini_cli-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: infini_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 71.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for infini_cli-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a0248a3099455044f23c63f7ec8c6fdcfe24d5a320792fe7c0685a7060dade24
MD5 b2ef0d33fbb223f55076e2cf36159e3f
BLAKE2b-256 c178fcf60c056139278b4c8f8f5398c7d7fa6415615c7419100562fa291952d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page