DEV Community

Cover image for Set it once, let it run: Ingot's Automations
Ingot
Ingot

Posted on

Set it once, let it run: Ingot's Automations

The usual way to keep a routine going is to remember to do it. A pull request opens, and someone has to start the review. CI fails, and someone has to reproduce it. Monday comes, and someone has to bump the dependencies. If no one is at the keyboard, the work waits.

We wanted the event itself to start the job.

Ingot is a desktop AI IDE for macOS, Windows and Linux, now in beta. Automations are agents that run without anyone typing a prompt. Each one is trigger → instructions → output: something happens, the agent does what the instructions say with your repository, your .ingot rules and the Blaze model you picked, and the result lands where you want it — a pull request, a comment on the pull request, or a Slack message.

The Automations panel in dark mode: three automations with their triggers and goals, and a history showing Done and Goal met

The Automations panel in dark mode: each automation has a trigger and a goal, and the history shows when a run finished or met its goal.

Trigger, agent, result

The product page puts it in three steps:

  1. Pick a trigger. A pull request, a schedule, a webhook, a CI failure, a Slack message, a comment that mentions @ingot, a Linear issue or comment, or a Trapr report.
  2. Describe the job. Plain words plus your .ingot rules. Choose a Blaze tier or Auto.
  3. Get the result. A PR comment, a draft pull request, or a message to your team.

Trigger (schedule, GitHub pull request, webhook), then the Ingot agent on your machine with your repo, rules and Blaze model, then the output (pull request, PR comment, Slack message)

Trigger, then the agent with your repository, your rules and the Blaze model you picked, then the output. The same diagram is in the docs.

The same trigger–agent–result diagram in light mode

The same flow in light mode.

An automation is a file

Each automation is a Markdown file in .ingot/automations/, so it lives in your repository and is reviewed like any other code. The file name is the automation's id (fix-ci.md is fix-ci). The frontmatter says when it runs and what "done" means; the text after it is the prompt.

---
name: Fix failing CI
on: [ci_failure]
branches: [main]
run: local
goal: CI passes again
done_when: [the failing tests pass locally, no unrelated changes]
check: npm test
max_iterations: 3
---
CI failed: {{title}}.
Find the failing job, reproduce it locally, make the smallest safe fix and run the tests again.
Enter fullscreen mode Exit fullscreen mode

{{title}}, {{body}}, {{branch}}, {{url}}, {{author}}, {{number}}, {{repo}} and the other event fields are filled in when it fires. For Linear you also get {{identifier}} (for example ENG-42), {{team}}, {{state}} and {{labels}}. Text that arrived from outside — a PR body, a comment, a Slack message, a Linear issue — is fenced as untrusted data, so the agent never follows instructions hidden inside it.

Commit the file, and everyone who opens the repository in Ingot gets the same automation.

Open the panel

Open Automations in the bottom panel — ⌘⌥⇧N on macOS, Alt+Shift+N on Windows and Linux — and choose New Automation. Pick a template, name it, pick the Blaze model and the outputs. Ingot writes .ingot/automations/<name>.md and opens it; you edit the instructions below the frontmatter.

Run Now and Send Test Event let you try a run before you wait for a real event. Every action is also in Find Action, including copying the webhook URL, setting Slack and Linear signing secrets, and syncing cloud automations.

The Automations panel in light mode, with the same three automations and history

The same panel in light mode, on the official docs project.

Start from a template

New Automation (or ingot automations new --template <id>) starts from a template. The docs list these:

  • Pull request review (review-pr) — a pull request opens; Blaze posts a PR comment
  • Nightly test run (nightly) — every night at 03:00, until npm test passes; Blaze Fast opens a pull request and can notify Slack
  • Dependency and security check (deps-security) — every Monday at 06:00; Blaze opens a pull request and can notify Slack

Fix failing CI, Answer @ingot comments, Slack request and Linear issue are there too.

A scheduled routine is just an automation with a cron trigger. The product page's examples are a nightly test-and-fix or weekly dependency updates, at a time and time zone you pick. In the file, cron is five fields (0 3 * * *) or @daily, at least five minutes apart. Set timezone when you don't want UTC.

The Automations panel with each automation's trigger, Blaze model and outputs, and a history that links the pull request and the PR comment

Each automation shows its trigger, its Blaze model and its outputs. The history links what it opened, and says why an output didn't go out — for example, no Slack webhook set yet.

The same outputs and history view in light mode

The same view in light mode.

Where the result goes

Add output: to say where the result should land. Without it, the result stays in the agent chat and the run history.

  • pr — the agent works on its own branch (ingot/auto/<id>-<time>), commits, pushes and opens a pull request. It never pushes to your base branch. If nothing needed to change, it opens nothing and says so.
  • pr_comment — when the run ends, the agent's final reply is posted as a comment on the pull request that started it (it needs a pr or comment trigger). It uses your GitHub sign-in in Ingot.
  • slack — when the run ends, a short summary with links goes to your Slack channel through an incoming webhook.

New Automation asks where the result goes: Pull request, PR comment and Slack message, with the template's outputs already checked

New Automation asks where the result goes. The template's outputs are already checked. Leave them all off and the result stays in the chat.

The same outputs dialog in light mode

The same dialog in light mode.

Ingot's own comments carry a hidden marker, so an automation never starts itself again in a loop. Events sent by bots, or by Ingot itself, never start an automation. The same delivery — the same CI run, comment or PR update — starts an automation only once.

The product page also lists a draft pull request from Rex as a place the result can land, and email or chat as notification options.

Pick a Blaze model

model: takes a Blaze model by name. Leave it out to use the model new chats use.

  • Blaze Fast (blaze-fast) — quick and cheap: nightly test runs, small fixes
  • Blaze (blaze) — most work: reviews, dependency upgrades
  • Blaze Max (blaze-max) — the deepest thinking: hard bugs, large refactors
  • Blaze Auto (blaze-auto) — lets Ingot pick the right Blaze model per run

Any other model id from your model list works too.

Triggers

These are the triggers the docs list today:

  • pr — a pull request opened, reopened or ready for review. You can also listen for synchronize, edited or closed.
  • comment — a PR, issue or review comment that mentions @ingot (or another mention you set; "" means any comment).
  • ci_failure — a failed or timed-out GitHub Actions run or check.
  • slack — an @Ingot mention, a /ingot slash command, or a channel message with a keyword you set.
  • webhook — a POST to the automation's webhook URL, with any JSON or text.
  • cron — the schedule.
  • linear.issue_created, linear.issue_updated, linear.comment_created — a new or updated Linear issue, or a new comment on one.

You can narrow Linear events with team, label, state and keyword filters. Linear reaches local automations only; cloud automations don't take Linear events yet.

A cooldown (default 10 minutes) stops the same automation from starting again too soon.

Local first, no tunnel needed

By default an automation is run: local. It runs on your own machine, in the open Ingot desktop app or in Ingot started from your terminal. Your code stays on your machine. There's nothing extra to pay for the run itself beyond the model you use — local runs use your plan's model usage, like a chat.

GitHub can't reach your laptop. When you're signed in and a local automation listens for a pull request, a comment, a CI failure or a webhook, your Ingot hook URL checks the signature and queues the event. Your running Ingot IDE pulls it every 30 seconds and runs the automation locally. Only the parsed event is queued (title, numbers, branches, author, link and a capped body), never the full payload, and only for a day. Nothing runs on the server for a local automation.

GitHub sends a signed webhook to your Ingot hook URL, which checks it and queues the event; your Ingot IDE pulls it and runs the agent locally

GitHub sends a signed webhook to your Ingot hook URL. The relay checks it and queues the event; your IDE pulls it and runs the agent locally.

The same relay diagram in light mode

The same relay in light mode.

For a local automation, Ingot must be open. Schedules that were missed don't run late. Relayed GitHub and webhook events wait up to a day and run when the IDE opens again.

If the job has to keep going while the IDE is closed, set run: cloud. The agent then runs on an Ingot cloud agent, with your code checked out in an Ingot sandbox. Cloud automations need a plan with Zaprex cloud agents (Silver, Gold or Platinum), and they use that plan's minutes, approvals and limits. Sync Cloud in the panel (or ingot automations sync) uploads the run: cloud files and shows the hook URLs.

Hold a goal until it is met

With goal, the agent keeps working until the goal is met or it has used max_iterations turns (default 5, at most 20):

  • The agent works on the prompt, with the goal and the done_when criteria in view.
  • Ingot runs check (a command such as npm test). It must exit 0.
  • If it fails, the agent gets the check's output and tries again.
  • The fire ends as Goal met, or Gave up when the turns run out.

In the IDE this is the chat's goal mode: the goal banner shows each criterion, the check result and the turns used. In the cloud, every try is a new run that starts with the failing check's output.

An automation's chat in the IDE: the goal check failed, then passed, and the goal banner says Done

An automation's chat in the IDE: the goal check failed, then passed, and the goal banner says Done.

The same goal chat in light mode

The same goal view in light mode.

The product page also notes that you can split a big job across several agents, and that risky steps wait for a yes. You can cap the minutes an automation may use.

Safety

An automation's agent has the same tools, sandbox and approvals as a chat you start yourself. A risky step still waits for your approval. output: pr never pushes to your base branch: every run gets its own branch and a pull request you review.

At most two local automations run at once (this is a setting). An event that arrives while they are busy is skipped, and the sender is told why. You can turn every automation off in Settings, or one from its checkbox in the panel (that sets enabled: false in the file).

Secrets live in the IDE's key store or encrypted on the server, never in the files. The Slack webhook URL stays in your IDE's key store and is never sent to Ingot.

From the terminal

The Ingot CLI can list, validate, create and test automations offline, and sync or run the cloud ones with your account:

npx @ingotide/cli automations validate
npx @ingotide/cli automations new --template nightly
npx @ingotide/cli automations test --webhook '{"title":"Deploy failed"}'
npx @ingotide/cli automations sync
Enter fullscreen mode Exit fullscreen mode

test runs offline: it shows which automations a sample event would start, and why the others wouldn't.

What it costs

The editor itself is free. AI starts at $15 a month (Ingot Bronze). Local automations are available on every plan; they use your plan's model usage, like a chat. Cloud automations need Silver, Gold or Platinum, and they run on your plan's Zaprex minutes.

  • Bronze — 40 Zaprex minutes a month
  • Silver — 300 Zaprex minutes a month, 2 runs at once
  • Gold — 1,200 Zaprex minutes a month, 4 runs at once
  • Platinum — 150 Zaprex minutes per seat

Need more? Turn on on-demand usage with a cap you set.

Founding teams get Ingot Platinum at $25 a seat for the first year. Ask through ingotide.com/pricing, or email us at hello@ingotide.com.

What we describe here is what the public docs and the product page say Automations does today. The docs also list later phases: more shared team automations, and a template marketplace. A separate Zaprex canvas for Rex automations is in beta and still being built.

Try it

Top comments (0)