Skip to content
aegea-devPublic

Repository files navigation

itero

itero: your domain, your solution, your tool

Build the harness you need, from anything, for anything. Chain scripts, CLI tools, containers, APIs, message queues, any programming language, AI agents and models: anything that runs becomes a step in your workflows.

You write the chain in a small JSON file, by hand or with AI; itero runs it when something happens or on a schedule, with waiting, retries, guards, undo and a record of every run.

Documentation: https://docs.itero.sh.

In a minute: a beacon

Something to keep an eye on: a site, a local server, a backup. Every minute itero asks it; when it does not answer, you get a notification saying why.

mkdir beacon && cd beacon && echo '{}' > itero.config.json && mkdir actions workflows

cat > actions/check-site <<'EOF'
#!/bin/sh
curl -fs --max-time 10 -o /dev/null "$url" || { echo "$url is down" >&2; exit 1; }
EOF
chmod +x actions/check-site

cat > workflows/beacon.json <<'EOF'
{ "on": [{ "schedule": "* * * * *" }],
  "steps": [{ "#check-site": { "args": { "url": "http://localhost:3000" } } }],
  "error": [{ "#notify": { "args": { "title": "beacon", "text": "$output.why" } } }] }
EOF

itero ws daemon

Two small files and one command. examples/beacon goes further: many sites and the disk's free space, told only when something changes (down, then back up).

What people chain

  • Tell me when a mail arrives, and only the important ones: a connector for new mail and a notification; a model step to rate it decides which you hear about. mail-alert, a model on this machine in page-summary
  • Process every file dropped in this folder: a watched folder, one run per burst of files. photos
  • Wait for a payment, then ship: a step that waits for a message that comes later, minutes or days. order
  • Make the cluster, refuse a dangerous plan, roll back on failure: terraform and kubectl chained, a guard step, and undo. terraform
  • My app needs a job done and wants the result: itero ws emit --wait answers with the run's state, or a callback when it ends. languages
  • Every morning, a summary of these pages: a schedule, a fetch, a model, a mail. page-digest
  • Is everything still up?: health checks, told when something changes. beacon

Plain files in git: nothing lost, everything iterated

A workspace is a folder of plain files: workflows as JSON, actions as executables. Keep it in git, share an action or a whole workflow as a folder, clone someone's and improve it. A run keeps the version of the workflow it started with, so editing a file never changes a run under way.

Next to the others

  • cron runs a command at a time; itero chains steps, waits for messages, retries, undoes and keeps a record.
  • n8n, Zapier offer the nodes they built; in itero any program is a step, and the workflow is a file you keep.
  • Temporal, Airflow need their SDK and a server; itero is one binary, and a step is whatever runs on your machine.

Install

brew trust aegea-dev/tap
brew install aegea-dev/tap/itero
# or
curl -fsSL https://itero.sh/install | sh

Homebrew 7 and later load a tap's formulae only once you trust the tap, hence brew trust. Homebrew puts Itero.app in the formula's own folder. The script checks the release archive's SHA-256 before unpacking, installs itero to ~/.local/bin and, on macOS, Itero.app to ~/Applications, and never edits your shell profile. --version X.Y.Z, --to DIR and --uninstall are its options (sh -s -- --help).

Build

cargo build
make test         # the test suite
make lint-check   # clippy, warnings fail
make fmt-check    # rustfmt
make check        # cargo check, every target
make audit        # Cargo.lock against RustSec advisories (needs cargo-audit)
make dist         # a release archive with THIRD-PARTY-LICENSES (needs cargo-about)
make test-linux   # the tests and clippy on Linux, in Docker
make bench        # how fast events are taken and runs end (make bench-linux: in Docker)
make test-docker  # the IMAP, POP3 and Gmail examples against a mail server in Docker
make docs         # the docs site at http://localhost:4321/ (make docs-install once)
make verify       # every gate before a release: fmt, check, clippy, tests, audit, docs

On macOS, make notifier builds Itero.app next to the binary (and make install puts it in ~/Applications): notifications then come from itero. Without it they come through osascript. Its icon is packaging/macos/Itero.icns, built from itero.svg by make icon. On Linux, notifications go through notify-send (or gdbus, or kdialog).

A workspace

A folder with itero.config.json is a workspace ({} will do); itero ws daemon runs it alone, itero daemon every workspace on the machine's list.

itero.config.json          the manifest: what it is, port, limits, and each workflow, action and connector
workflows/order.json       a workflow ●: when it runs (on) and its steps
actions/check-payment      an action ■: an executable, its name its file name
connectors/mail.received   a connector ▲: each line it prints is a message of this type
.itero/                    the journal, the log (itero.log) and memory

workflows/, actions/ and connectors/ may have subfolders to group files; a name stays its file name, and itero ws which <name> says where it is.

  • A workflow starts on a message ({"event": "order.placed"}), a schedule ({"schedule": "0 9 * * *"}) or a watched file ({"path": "inbox"}), under conditions ({"$event.paid": true}, {"has": ["$event.order", "$$API"]}). Its steps are actions (#name), workflows, lists that run side by side, and steps with their args and their own on. A step reads a value by where it comes from: $event (what started the run), $output (the step before), $steps.<name> (any earlier step), $config (the manifest), $$NAME (a secret, a value in .env, or an environment variable). success, failure and error run at the end.
  • An action gets only its step's args, as environment variables and as {"args": ...} on stdin, prints its result (the next step's $output), and exits 0 (done), 75 (not yet: wait for a matching message) or anything else (an error). A program or a package it needs and lacks is named: in the run's error when a step fails, and by itero ws check before anything runs.
  • A message starts runs of the workflows on its type, and reaches the steps waiting for it that it matches by what they printed.

Commands at the top level are the machine's: itero daemon (every workspace on its list), itero service install|status|start|stop|restart|uninstall, itero info, itero emit, itero secret, itero context, itero token, itero ai, itero watch, itero webhook, itero completion. Everything about one workspace is under itero ws, in its folder or named after it (itero ws <name> ...): daemon, add|list|remove, info, check, which, emit <type> '<data>', secret, wf list|runs|stop, ac list|errors, cn list, ev list|cancel. What the daemon does is in .itero/itero.log, one JSON line each.

Examples

  • examples/hello-world: the smallest workspace, an event with a name and a notification that says hello.
  • examples/beacon: sites and the disk's free space checked on a schedule, with a notification when something changes.
  • examples/mail-alert: a notification for each new mail in the local mailbox, as it arrives.
  • examples/mail-servers: new mail on an IMAP or POP3 server, checked every minute with curl.
  • examples/gmail: a notification for each new Gmail mail the moment it arrives, pushed by IMAP IDLE (Python, no polling).
  • examples/notify-api: an app on this machine asks for a notification over HTTP, with buttons, and gets the answer posted back when it is clicked (macOS).
  • examples/order: payment and stock side by side, the payment waiting for its provider, then shipping and a mail.
  • examples/page-digest: a page, summarized by an AI assistant, by mail.
  • examples/messages: an alert by mail, push notification (ntfy) or iMessage, one action each with the same args.
  • examples/page-summary: a page sent in a message, summarized by a model on this machine (LM Studio), printed in the daemon's terminal.
  • examples/ai-mail: each mail sorted by a model on this machine, with a notification for the urgent ones.
  • examples/reddit-top: a subreddit's top post opened in Chrome, its discussion summed up by a model on this machine, as a notification.
  • examples/wiki-stream: every edit to a Wikipedia, live from Wikimedia's stream: what each 10 seconds bring, and pages people edit again and again; it resumes where it stopped (also a notebook, for Colab).
  • examples/page-watch: a notification each time the newest post on Hacker News changes, seen on the page in Chrome.
  • examples/photos: a thumbnail for each photo dropped into a folder the daemon watches.
  • examples/webhook: replies from your own app reach the step waiting for them, through one workflow that forwards every webhook.
  • examples/github-webhook: a push to a GitHub repository is a notification on this machine, through a tunnel.
  • examples/pomodoro: a pomodoro session of the length an event says, with a notification once it is over.
  • examples/languages: actions in Python (uv), Node, Bun and Docker, each in its subfolder and bringing its own packages, answering itero ws emit --wait.
  • examples/terraform: a k3d cluster of 3 machines with a web app applied by OpenTofu, a guard on the plan, and the cluster deleted when a step fails.

AI Usage

itero is developed by Erhan Gundogan with substantial help from AI coding assistants (mostly Claude Code and OpenAI Codex).

Contributing

itero is maintained by one person and its direction is set deliberately. Bug reports are always welcome. If you hit a real problem or want a feature you would use yourself, so are patches: open an issue first to agree the approach. See CONTRIBUTING.md.

License

Apache License 2.0. See LICENSE.