Source: https://seerepo.com/learn/hand-your-agent-what-to-fix
Markdown source: https://seerepo.com/learn/hand-your-agent-what-to-fix.md
Description: Health lists what's worth fixing in your repo and writes the prompt: copy it, paste it into your agent, done.

# Hand your agent the files worth fixing

Health looks at your repo the way a careful reviewer would and writes down what's worth fixing. Each task comes with a prompt your agent can act on.

## Why this matters

Your agent is great at fixing things once it knows which files to read. The hard part is finding them: failing tests, busy code with no tests, files nothing uses, packages you installed and never import, files too big to change safely.

## Why most tools can't tell you

Each of those lives somewhere else: test results in one place, unused code nowhere unless you go looking, file sizes only if you count. Nothing puts them together and turns them into a request for your agent.

## How SeeRepo does it

Health gathers what's worth fixing and orders it by severity, the most serious first. Each prompt says the problem and your repo, lists the files and asks for the fix. Here is the one for SeeRepo's own repo, whose only open task is one giant file:

```text
In my project curetcore/seerepo, these files are over 1,000 lines:
- app/components/workspace/Workspace.tsx (2,564 lines)

Split the biggest into smaller modules by responsibility, without changing what it does and keeping what it exports. Tell me the new files.
```

## How to do it

1. Open **Health** (key **1**). On top, the ring says how much of what SeeRepo checks is fine, and its title, how your code is: "Something serious needs fixing", "Nothing's breaking yet, but it can" or "It can wait".
2. Tap a task: its sheet opens. **See where it is** lights up its files' parts on the map.
3. Click **Copy prompt**. SeeRepo says "Paste it into Claude Code, Codex or Cursor: it will know which files to read."
4. Paste it into your agent and let it work. When the fix lands with its push, the task closes on the next read.

See [Health](/docs/health) for every kind of task.

> Next idea: no automatic tests yet? One prompt sets them up. Read [Get automatic tests with one prompt](/learn/automatic-tests-with-one-prompt).
