Automations
Trigger-driven agent loops on a visual canvas: when something happens, the agent works, tests run, and a pull request opens.
Available on PlusAn automation is a loop you draw once and Fairlx runs every time its trigger fires. A new bug can start the agent, run your tests, open a pull request, post to Slack and move the card to In Review, without anyone assigning it. Automations are available on Plus.
Open them from Agent → Agent tools → Automations. The page has your list of loops on the left and the canvas for the selected loop on the right.

Triggers
Every loop starts with one trigger. Most triggers can be narrowed with filters such as item type, priority, status or a keyword.
| Trigger | Fires when |
|---|---|
| Work item created | A bug, story or task is raised. |
| Status changed | An item moves to a status, for example Ready. |
| Assigned to Fairlx | Someone assigns the Fairlx Agent. |
| @Fairlx in a comment | Someone mentions @Fairlx on the item. |
| @Fairlx in Slack / Discord | A thread reply mentions Fairlx. |
| CI failed | CI fails on a merged or default-branch commit. The keyword matches repo, branch, workflow, job or class. |
| Deploy failed | A production deploy fails. The keyword matches repo, branch or environment. |
| CI passed after merge | CI on a watched merge, and its production deploy, goes green. |
| Run button only | Never fires on its own. Use Run now. |
Step types
After the trigger, connect steps on the canvas. Each step has its own settings in the details panel.
| Step | What it does | Settings |
|---|---|---|
| Trigger | Starts the loop. | Trigger kind and filters |
| Fairlx Agent | Runs the agent on the item, usually in a coding sandbox. | Prompt, autonomous mode |
| Run tests | Runs a test command in the sandbox. | Command, number of retries |
| Deploy / PR | Delivers the work, for example by opening a pull request. | Mode, optional command |
| Notify | Posts a message. | Channel (Slack or in-app), target, message |
| Supervisor | Watches the loop and tells someone when it starts, fails or finishes. Can require approval. | Target, channel, when to notify, require approval |
| Close item | Moves the item to a status and leaves a comment. | Status, comment |
A step can have a failure path, drawn as a red dashed line, so you decide what happens when tests fail or the agent cannot finish.
Example: Bug → fix → test → PR
This loop is available as a template when you create a new loop. It handles new bugs end to end.
Trigger: Work item created
Filtered to the Bug item type, so only new bugs start it.
Fairlx Agent
The agent reproduces the bug in the sandbox, finds the root cause and makes the smallest safe fix. Its prompt:
Agent promptReproduce the bug in the sandbox, find the root cause, and fix it with the smallest safe change. Add or update a regression test.Run tests
Runs your test command, for example
npm test -- --run, with up to two retries.Deploy / PR
Opens a pull request with the fix.
Notify and Close item
Posts to Slack with the item key, title and pull request link, then moves the item to In Review with a comment.
Supervisor
Tells the person you choose when the loop starts, fails or finishes.
Notify messages can include values from the run. The template uses:
Fairlx fixed {{key}} — {{title}}. Tests pass and the PR is open: {{prUrl}}Build a loop
Create the loop
Click New loop and start from a template, or describe what you want in Describe the loop and Fairlx drafts it onto the canvas.
Configure each step
Select a step to open its settings. Set the trigger filters, edit the agent prompt and the test command, and choose who the Supervisor notifies.
Save and test
Click Save loop, then Run now to try it before it fires on real events.
Enable it
Turn on Enabled in the loop toolbar. From now on the trigger starts the loop.
Run now
Run now starts the loop immediately and shows its recent runs. Use it to test a new loop, or with the “Run button only” trigger for loops you want to run on demand, such as a weekly dependency check. On a phone, loops open read-only with Run now and their last runs.
Plans and credits
Automations are a Plus feature. Agent steps spend AI credits like any agent run, and coding steps use the same sandboxes as coding sessions. See Credits & usage.
Good practices
- Filter triggers tightly. “Work item created” with no filter fires on every item. Narrow it to a type, priority or keyword.
- Test with Run now first. Run the loop by hand on a sample item before you enable it.
- Always add a Run tests step before Deploy / PR. It catches broken fixes before anyone reviews them.
- Add a Supervisor. Someone should hear about failures. Use “require approval” for loops that build features rather than small fixes.
- Keep prompts specific. Say what “done” means and what the agent must not do, for example “Never skip or delete the failing test.”
- Deliver through pull requests. Let people review automated work in Review Studio before it merges.
Automations and approvals
