Triggers
Triggers start work for you when a task changes, so an agent can pick up a bug the moment it is assigned to you. A trigger has three parts:
- An event: a task is created, changed, assigned, or becomes ready. Ready, the usual choice, fires when a task first matches your filter while open or waiting.
- A filter: for example open, labeled
bug,fullyexecutable, and owned by you. - An action. Ready-made triggers run theirs once per task, so nothing is started twice, and every trigger skips a task another agent has claimed.
Local and cloud agents
The action runs a local agent or a cloud agent:
| Where it runs | How it is reached | Examples |
|---|---|---|
| Local agent, on your computer | The tracker runs a command when the event arrives, so it works while the tracker is running. | Any command: a script that opens a workspace in your agent tool, or an agent CLI |
| Cloud agent, anywhere | Akkari sends a signed HTTPS request to a URL you register, even when your computer is off. | A cloud agent's webhook, or your own agent server |
When a trigger fires
For a local agent, the tracker claims the task, then runs your command. What you see is whatever that command opens, such as a new workspace with the agent already running. There is no separate notification.
akkari triggers local runs lists recent runs with their output, and akkari triggers local retry <run-id> reruns one that failed. For a cloud agent, akkari triggers webhook deliveries <id> shows each delivery and its response.
Akkari stores only that a run happened and how it ended, never your command, its output, or the brief it was given.
When your computer is off
Local triggers run only while the tracker is running. Tasks that change while it is stopped do not fire them when it starts again, and the tracker does not start on its own after a reboot, so run akkari tracker start after restarting.
Cloud triggers do not depend on your computer. If your endpoint does not answer with a success, Akkari retries for up to an hour.
Start with one
Each trigger only acts on tasks that match its filter, and ready-made ones only on open tasks you own. Start with one, such as fixing bug tasks, and add more once you trust what it does.
Recipes has ready-made triggers for both, set up in one command.