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

# Self-healing projects

<Note>Self-healing projects are an experimental feature. We welcome [feedback](/main/06-resources/help-and-support).</Note>

## What are self-healing projects?

Enable self-healing on any project to close the loop between monitoring and fixing. Intuned watches your runs, detects when something breaks, and the agent investigates, writes a fix, and can merge and deploy it — all without manual intervention. The level of autonomy is fully configurable — you control how much the agent does on its own. See [autonomy levels](#autonomy-levels).

## How to enable it

1. Go to your project's overview page.
2. Select **Edit Project**.
3. Under **Self-healing project**, toggle the autonomy levels you want.

<Frame caption="Self-healing settings in the Edit Project dialog.">
  <img src="https://mintcdn.com/intuned-dev/PKoj-Mu2mK0gzdqc/assets/intuned-agent/self-maintaining-settings.png?fit=max&auto=format&n=PKoj-Mu2mK0gzdqc&q=85&s=cfa772ed9912bc37fa600867fdf2f303" alt="Self-healing project settings in Edit Project" width="2880" height="2048" data-path="assets/intuned-agent/self-maintaining-settings.png" />
</Frame>

## How it works

<Steps>
  <Step title="A run completes">
    After each job run or standalone run, Intuned captures metrics — success rate, failure count, run count, and result size — and checks them against anomaly detection rules and historical data.
  </Step>

  <Step title="Anomalies are detected and triaged">
    If a rule triggers, an anomaly is created. The agent investigates each anomaly — comparing healthy and failed runs, reading traces and logs — and decides whether it's a real issue or a false positive.
  </Step>

  <Step title="Issues are surfaced">
    After the agent validates that anomalies point to real problems — by analyzing run results, past data, and traces — confirmed issues with the same root cause are grouped and surfaced in the [Issues panel](#issues-panel).
  </Step>

  <Step title="Agent fixes the issue">
    If **Auto-fix** is enabled, the agent opens a session on a new branch to diagnose and fix the issue.
  </Step>

  <Step title="Fix is merged and deployed">
    If **Auto-merge fixes** and **Auto-deploy fixes** are enabled, the agent merges the fix and deploys the project automatically.
  </Step>
</Steps>

<Note>It may take up to 6 hours for issues to surface. This batching window reduces AI credit costs. The window is configurable, and we're working on making detection more real-time. The exact detection logic is an internal detail and may change as we improve accuracy — we welcome [feedback](/main/06-resources/help-and-support).</Note>

### Anomaly detection

Intuned monitors metrics after each run to detect changes that could indicate a problem — a website updates its layout, response sizes shift, data patterns deviate from recent runs. When an anomaly is detected, the agent doesn't surface it immediately. It investigates first — comparing healthy and failed runs, analyzing traces and logs — and only promotes it to a real issue if it confirms something is broken. False positives are dismissed automatically.

## Autonomy levels

Self-healing projects have four toggles, each adding a layer of autonomy. Enable only the ones you're comfortable with — each level includes everything above it.

We recommend starting with **Advanced monitoring** on all projects to surface issues early. Advanced monitoring and higher autonomy levels consume additional AI credits. See [Plans and billing](/main/05-references/plans-and-billing) for details.

| Toggle                  | What it does                                                             | Instructions                                                |
| ----------------------- | ------------------------------------------------------------------------ | ----------------------------------------------------------- |
| **Advanced monitoring** | Automatically detect and surface issues from runs                        | —                                                           |
| **Auto-fix**            | Automatically open an agent session to fix raised issues on a new branch | Describe when sessions should be created automatically      |
| **Auto-merge fixes**    | Automatically merge fix branches                                         | Describe the conditions required before branches are merged |
| **Auto-deploy fixes**   | Automatically deploy the project after a fix branch is merged            | Describe when deployments should happen automatically       |

Auto-fix, auto-merge, and auto-deploy each accept optional **instructions** — free-text guidance the agent follows when performing that action.

<AccordionGroup>
  <Accordion title="Default auto-fix instructions">
    Automatically create remediation sessions for OPEN issues and keep the branch tightly scoped to the surfaced problem.
  </Accordion>

  <Accordion title="Default auto-merge instructions">
    Auto-merge only complete remediation branches that have a clear work summary and no waiting-for-user state.
  </Accordion>

  <Accordion title="Default auto-deploy instructions">
    Auto-deploy only after an auto-merge succeeds; stop if deployment logs surface a failure or if human approval is still required.
  </Accordion>
</AccordionGroup>

## Issues panel

<Frame caption="Check the numbered markers on the image below.">
  <img src="https://mintcdn.com/intuned-dev/PKoj-Mu2mK0gzdqc/assets/intuned-agent/issues-panel.png?fit=max&auto=format&n=PKoj-Mu2mK0gzdqc&q=85&s=e014e2fb1e01f7f5b2b8fab94ebea57d" alt="The Issues panel on the project overview page" width="2880" height="2048" data-path="assets/intuned-agent/issues-panel.png" />
</Frame>

1. **Issues panel** — Open issues appear on the right side of the project overview. Each issue shows a title, timestamp, and a description of the root cause. Dismiss false positives or select an issue for details.
2. **Agent session** — If Auto-fix is enabled, the agent automatically opens a session to fix the issue. The session appears in the Agent Sessions list linked to the issue.
3. **Attach an issue to a message** — Reference an issue directly in the agent input to start a conversation about it. The agent loads the issue context and begins investigating.

## Related resources

<CardGroup cols={2}>
  <Card title="Using the agent" icon="book" href="/main/02-intuned-agent/using-the-agent">
    Workflows, prompt examples, and the agent interface
  </Card>

  <Card title="Intuned Agent overview" icon="robot" href="/main/02-intuned-agent/overview">
    What the agent can do and where to find it
  </Card>

  <Card title="Jobs" icon="clock" href="/main/02-features/jobs-batched-executions">
    Scheduled and batched executions the agent monitors
  </Card>

  <Card title="Monitoring and traces" icon="chart-line" href="/main/02-features/observability-monitoring-logs">
    Run traces, logs, and observability
  </Card>
</CardGroup>
