> ## Documentation Index
> Fetch the complete documentation index at: https://docs.paradime.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-Healing settings for a Bolt schedule

> Turn on self-healing in a Bolt schedule's setup panel and pick which DinoAI agent runs when the schedule fails, from the Bolt Pipeline Healer to custom agents.

Let an AI agent automatically diagnose and propose fixes when this schedule fails. When a run fails on a schedule with Self-Healing enabled, Paradime triggers a DinoAI agent against the failure, inside the same Slack thread as the failure notification. The agent diagnoses the run, implements a fix, and opens a pull request for your team to review.

<Info>
  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.
</Info>

<Warning>
  **Prerequisites**

  * **A Slack notification channel** must be configured for this schedule under [Notifications](/products/bolt/creating-schedules/notification-settings). Self-Healing runs the agent in that channel's failure thread.
  * **A programmable agent** defined under `.dinoai/agents/<name>.yml` on the schedule's Git branch. This is the agent that diagnoses and fixes the run.
</Warning>

#### Enable from the Bolt UI

In the schedule's **Self-healing** section, selecting an agent enables self-healing:

1. Select a **Channel** — the Slack channel the agent runs in. It must already be configured as a Slack notification channel on this schedule.
2. Select an **Agent name** — the DinoAI programmable agent that diagnoses and fixes the run. The list is populated from `.dinoai/agents/*.yml` on the schedule's Git branch.
3. Save the schedule.

To turn self-healing off, clear the selected agent.

#### Configure from YAML

If you manage schedules as code, add a `self_healing` block to the schedule:

```yaml theme={"system"}
self_healing:
  enabled: true
  slack_channel: '#agent-demo'
  agent_name: bolt-pipeline-healer
```

<Warning>
  `self_healing.slack_channel` **must also appear** in `notifications.slack_channels` for the same schedule. The validator rejects the schedule otherwise. The agent threads into the failure notification, so the notification has to exist for the agent to find its thread.
</Warning>

***

#### What happens when a run fails

1. The standard failure notification posts to every Slack channel in `notifications.slack_channels`.
2. In the **Self-Healing channel**, Paradime posts `🦖 Self-healing enabled — starting healing session...` into the failure thread and triggers the DinoAI agent.
3. In every **other** notification channel, Paradime posts `🦖 Self-healing started in #<healing-channel>` so reviewers know where to follow along.
4. The agent works in-thread, posts progress, and ends with a PR link for the proposed fix.
5. If the same schedule has been self-healed recently, the agent is given a summary of those prior sessions so it doesn't duplicate work — for example, if an open PR already proposes a fix.

For the full agent-side narrative, see DinoAI → Self-Healing.

***

#### Related

* [Notification Settings](/products/bolt/creating-schedules/notification-settings) - Configure the Slack channel Self-Healing reuses
* [Schedules as Code](/products/bolt/creating-schedules/schedules-as-code/index) - Configuration Reference — Full YAML schema
* [DinoAI Self-Healing](/products/dino-ai/bolt-pipeline-agent/self-healing) - How the agent diagnoses and fixes the failure
* [Fix with DinoAI](/products/dino-ai/bolt-pipeline-agent/fix-with-dinoai) - Manual one-click equivalent
* [Programmable Agents](/guides/programmable-agents/index) - Author a custom `agent_name`

<Card title="Define this as code" icon="code" href="/products/bolt/creating-schedules/schedules-as-code/configuration-reference#self-healing" horizontal>
  Configure the `self_healing` block (`enabled`, `slack_channel`, `agent_name`).
</Card>


## Related topics

- [DinoAI Bolt Pipeline Agent Self-Healing](/products/dino-ai/bolt-pipeline-agent/self-healing.md)
- [Bolt Pipeline Healer](/guides/programmable-agents/bolt-pipeline-healer.md)
- [bolt-ci-healer](/guides/programmable-agents/bolt-ci-healer.md)
- [Deploy Schedules](/products/bolt/creating-schedules/deploy.md)
- [Schedule Settings](/products/bolt/creating-schedules/schedule-settings.md)
