Skip to main content
Self-healing turns a failed run into an automatic fix attempt: a DinoAI agent diagnoses the failure in the schedule’s Slack thread and opens a pull request with a fix. This guide enables it on a schedule.
Prerequisites
  • A Bolt schedule you can edit.
  • A Slack notification channel configured on the schedule (self-healing threads into the failure notification, so the channel must exist).
  • A programmable agent defined under .dinoai/agents/<name>.yml on the schedule’s git branch.
Estimated time: 10 minutes.

Steps

1

Enable self-healing on the schedule

In the schedule’s Self-healing section, select an agent to enable it:
  1. Select a Channel, the Slack channel the agent runs in. It must already be a Slack notification channel on this schedule.
  2. Select an Agent name, the DinoAI programmable agent that diagnoses and fixes the run. The list comes from .dinoai/agents/*.yml on the schedule’s git branch.
  3. Save the schedule.
To turn self-healing off, clear the selected agent.
You stay in control. The agent always opens a PR, it never merges to your default branch. Reviewers approve the fix before it reaches production.
2

Or configure self-healing as code

If you manage schedules as code, add a self_healing block:
self_healing.slack_channel must also appear in notifications.slack_channels for the same schedule, or the validator rejects it. The agent threads into the failure notification, so that notification has to exist.
When a run fails on a self-healing schedule, Paradime posts a self-healing message into the failure thread, the agent works in-thread, and it ends with a PR link. If self-healing never starts, check that the self-healing channel is also listed as a notification channel on the schedule.
Authoring the DinoAI agent that does the healing (the recipe itself) lives in the Automate with AI agents section, so this guide does not duplicate it.

Next steps

Set up alerts

Shape the failure notifications self-healing threads into.

Debug a failed run

Investigate by hand when a fix needs a human.

Self-healing reference

Every self-healing setting.

DinoAI reference

How the healing agent diagnoses and fixes runs.