Skip to main content

Ordine

Self-healing task pipelines for your desktop.

CI PyPI License: MIT Python 3.11+

Ordine watches folders and manifests, runs your files through step pipelines, and — when a step fails — recovers through the branches you (or an AI you approve) taught it. Every input is deduplicated, every output name is ordinal-true, and everything runs locally.

Ordine demo

Install

pipx install ordine

Image pipelines work best with ImageMagick installed (sudo apt install imagemagick).

Or install the .deb from Releases:

sudo apt install ./ordine_*_amd64.deb imagemagick

See docs/install.md for upgrades, systemd, and development setup.

Quickstart

From a clone — also the contributor path (~3 minutes):

git clone https://github.com/Antikatoptis-Pareidolia/ordine.git
cd ordine && uv sync
uv run ordine example ~/ordine-demo
uv run ordine run ~/ordine-demo/png-cleanup.yml --oneshot

Six sample images are validated, made transparent, trimmed, renamed from assets.csv, and exported to exports/. Then start the web UI:

uv run ordine serve   # → http://127.0.0.1:8484

With pipx or the .deb, drop the uv run prefix (ordine example, ordine run, ordine serve).

Press Start on a pipeline, drop a file into its watch folder, and watch the task appear, process, and land — or flag, diagnose, and heal.

Why Ordine

Any watch → transform → deliver workflow fits Ordine: shell commands, scripts, documents, images — steps are plugins.

Our founding example is a CSV of asset names and prompts. You want images generated for each row, cleaned up (white background → transparent, cropped to content), named exactly by their row — even when rows 3–6 fail — and delivered to your game folder. Unattended. Resumable after a crash. Fixable from the browser when something breaks at 2 AM.

That workflow ships as the built-in example and in examples/chain/. Nothing in the engine is image-specific.

  • Universal steps — shell.run runs any command; write custom steps as tiny Python plugins (see docs/plugin-guide.md)
  • Ordinal guarantee — file 7 gets row 7's name, always. Failures in between never shift names (ordine is Italian for order; it's the soul of the tool).
  • Recovery branches — declare fallback step sequences per step. Primary fails → branches run → flags escalate by ladder level when everything is exhausted.
  • Durable deduplication — a SQLite ledger admits each content hash or manifest row once. Crash retries may replay a step, so externally visible steps should be idempotent.
  • Dry-run lab — rehearse playbooks on copied samples in a sandbox that never touches production data, step through execution, fix from the failing step, resume with the validated prefix replayed.
  • AI that drafts, never executes — describe a pipeline and get a validated draft; let a model diagnose a failure and propose a recovery branch. Nothing applies without your explicit approval. Bring your own key (Anthropic, OpenAI, or any OpenAI-compatible endpoint — Ollama and DeepSeek included). Works fully without any key, too.
  • Local and quiet — no telemetry, ever. No accounts. Your files, your machine, your keys.

The chain example

The full founding workflow — manifest → image generation → cleanup — ships in examples/chain/ and runs offline with a deterministic mock provider:

uv run ordine run examples/chain/gen-images.yml --oneshot   # CSV rows → images
uv run ordine run examples/chain/png-cleanup.yml --oneshot  # images → named, transparent assets

A document-only variant (shell commands, no image steps) lives in examples/docs-pipeline/.

Edit a prompt in assets.csv and rerun both: exactly one image regenerates, flows through cleanup, and replaces its predecessor — same filename, new content, neighbors untouched. Swap provider: mock for openai when you want real generations.

How it fits together

trigger (folder_watch / manifest / manual)
   └─ task (ordinal, durable dedup)
        └─ steps: validate → transform → rename_from_manifest → export
             └─ on_failure: retries → recovery branches → escalating flags

Playbooks are YAML, versioned immutably with diffs and one-click revert. The web editor, the CLI, and the AI features all drive the same core — which never imports the LLM layer (enforced by tests), so pipeline runs stay deterministic.

Documentation

Start at docs/README.md: install, playbook reference, triggers, the dry-run lab, AI features, security posture (docs/security.md — read this before running playbooks from strangers: playbooks are code), and the plugin guide for writing your own steps.

Contributing

Built by Constantin Vlad with an AI plan/audit/implement workflow — see CONTRIBUTING.md for how plans, audits, and reviews drive every commit. Dev setup, conventions, and the plan/audit workflow live in CONTRIBUTING.md. CI runs lint, types, 390+ tests, and installs the built .deb on a clean Ubuntu container for every push.

License

MIT — Copyright (c) 2026 Constantin Vlad / Antikatoptis Pareidolia.

Metadata

Release files for ordine 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ordine 0.3.1
File Size Uploaded Provenance Actions
ordine-0.3.1.tar.gz 186.8 kB With provenance Details for ordine-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ordine 0.3.1
File Interpreter ABI Platform Actions
ordine-0.3.1-py3-none-any.whl Python 3 none any Details for ordine-0.3.1-py3-none-any.whl

Total release size: 368.7 kB

Release files / ordine-0.3.1.tar.gz

Download URL ordine-0.3.1.tar.gz
Size 186.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1eeb5ba3d554cea107ca9446fc69f031dde9de70e0cc081cf93943fe25e42a41
BLAKE2b-256 checksum
How to use checksums
9ddc424575d7ce2d87ae957812cad1f9a51139888f778096494bc4488be56ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / ordine-0.3.1-py3-none-any.whl

Download URL ordine-0.3.1-py3-none-any.whl
Size 181.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
561446a30a13a9e1e3fd68e2d0a5de1d0d50aca5c3ff1220edb2114166b6739e
BLAKE2b-256 checksum
How to use checksums
12f7d641781342a0fc2974409673ad5829da00ac2afe1025f368ea90ceea4646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for ordine 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ordine-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page