# Fix bugs from your editor

> Use Relia every day from Claude Code, Cursor or any AI assistant with four questions, from "what needs my attention?" to "did my deploy break anything?".

Section: Use Relia every day · Page: https://tryrelia.com/docs/from-your-editor · Last checked against the product: 2026-11-01
Video walkthrough: https://youtu.be/67fIYRYKZWk

Once your AI assistant is connected to Relia, you can do your daily Relia work without leaving your editor. Your assistant reads Relia's evidence, and the code changes happen in your editor, with your approval.

## Before you start

- Your AI assistant is connected to Relia. If not, run this once in a terminal and restart your tools:

  ```bash
  npx -y relia-sdk@latest mcp install
  ```

  See [Connect your AI assistant](https://tryrelia.com/docs/connect-ai-assistant.md).
- Open the repository of the app Relia watches. In a repository set up with Relia, your assistant finds the project id in `.env.local` (`RELIA_PROJECT_ID`) or in `src/relia.ts` / `relia.tracing.js`. With several projects, you can also name the project in your question.
- On **Free**, your assistant gets Relia's status and each problem's headline. Explanations and fix plans need **Growth** or **Pro**.

> **Tip:** watch [Connect Claude Code, Cursor and Codex to Relia (MCP setup)](https://youtu.be/fpGlCkJzzKA) (2 min).

## Steps

1. **Ask what needs you.**

   ```text
   Use Relia: what needs my attention?
   ```

   Your assistant calls Relia's status tool and answers in plain words, for example "GET /api/search has been failing since just after 3 p.m., 46 users affected".

2. **Ask for the fix.**

   ```text
   Show me how to fix it.
   ```

   Your assistant reads the incident and Relia's fix plan: the root cause, the file and the line. It shows you the change before writing anything. Say yes, and it edits the file. Then deploy as you normally do. Getting the fix plan the first time uses one of your plan's monthly fix plans.

3. **Mark it fixed.**

   ```text
   Mark it fixed in Relia.
   ```

   Relia changes nothing without your yes, so your assistant asks you first. Say yes, and Relia starts watching real traffic. Once enough requests pass without the problem, Relia confirms the fix and sends "Your fix worked". See [Fix it and confirm the fix worked](https://tryrelia.com/docs/fix-and-verify.md).

4. **Check your deploy.**

   ```text
   Did my last deploy break anything?
   ```

   Your assistant reads recent deploys and changes, then what started or got worse after the latest one, and tells you whether the deploy is fine.

## Ready-made prompts

Claude Code and other tools list Relia's prompts. In Claude Code, type `/mcp__relia__` to see them:

| Prompt | What it does |
|---|---|
| `fix-top` | **Fix the most important problem**: finds it, reads its evidence and fix plan, fixes it in your code, then offers to have Relia verify the fix. |
| `deploy-check` | **Did my last deploy break anything?** Compares before and after the latest deploy. |
| `review-pr` | **Review this change against production**: checks your current diff against how those routes, queries and pages behave live. |
| `status` | **What needs my attention?** |
| `check` | **Is Relia receiving everything?** |
| `setup` | **Set up Relia** in this repository. |

## What your assistant can and can't do

- **Reads freely**: status, incidents, fix plans, Ask Relia answers, dashboards, funnels, requests (`relia_trace`), logs, sessions, database queries, page speed, uptime and recent changes.
- **Asks you first**, every time: marking a fix (`relia_mark_fixed`), giving a verdict on an incident (`relia_set_verdict`), "I'm on it" (`relia_ack`), recording a deploy (`relia_report_change`) and creating a project. Relia refuses these without your confirmation, and each one is in the project's audit log.
- **Your role applies**: a viewer can't acknowledge, and only owners and admins can mark something expected.
- **Can't** change Relia's settings, delete data, or see passwords. Relia itself never changes your code.

The full list is in [MCP tools](https://tryrelia.com/docs/mcp-tools.md).

## If something's wrong

- **Your assistant doesn't know Relia**: restart the tool after `mcp install`. In Claude Code, type `/mcp`, pick **relia** and choose **Authenticate**.
- **It picks the wrong project**: name the project in your question, for example "Use Relia project Shop".
- **"Upgrade" instead of a fix plan**: the project is on Free. See [Plans and billing](https://tryrelia.com/docs/plans-and-billing.md).

## Next

- [Connect your AI assistant](https://tryrelia.com/docs/connect-ai-assistant.md)
- [MCP tools](https://tryrelia.com/docs/mcp-tools.md)
- [Did my deploy break anything?](https://tryrelia.com/docs/did-my-deploy-break.md)
- [Your AI assistant can't reach Relia?](https://tryrelia.com/docs/mcp-connection.md)

---
All Relia docs for AI assistants: https://tryrelia.com/llms.txt (index) · https://tryrelia.com/llms-full.txt (everything in one file)
