# ub-agents retry

Run `ub-agents retry` once you've fixed why an item stopped. It resets the item's failure count, records your reason on the issue or pull request and switches the labels back: stop labels such as `needs-human` come off, and the agent's trigger label goes on. A running launcher picks the item up on its next poll.

```sh
ub-agents retry 143 --reason "Blocker resolved"
ub-agents retry 150 --agent reviewer --reason "Findings resolved"
```

Without `--agent`, retry picks the first configured agent that handles that kind of item and has a trigger label on it. If none has a trigger on the item, it falls back to the first agent that handles that kind. When a trigger is already there, retry adds no label and still removes stop labels.

Retry refuses while a launcher is working on the item, and leaves a closed item's labels alone.

## Review rounds

Retry also resets the agent's [round limit](https://agents.uberblick.ai/docs/configuration/outcomes.md#limit-rounds): `--agent reviewer` gives the starter reviewer three new rounds. For just one more review, swap `needs-human` for `needs-review` yourself.

```text
$ ub-agents help retry
usage: ub-agents retry NUMBER --reason REASON [options]

Record a human-authorized reset of blocked work and attempt limits. Use after
resolving the cause; on open items it then removes stop labels and restores the
agent's trigger. Without --agent, print and use the first configured agent whose
kind applies and whose trigger is on the item. If none has a trigger on the
item, use the first agent whose kind applies.

options:
  --agent NAME           configured agent (default: first matching item kind and
                         trigger, else first matching kind)
  --reason REASON        record why the human-authorized reset is justified
                         (required)
  --config PATH          project configuration (default: ub-agents.yaml)
  -h, --help             show this help

examples:
  ub-agents retry 143 --reason "Blocker resolved"
  ub-agents retry 150 --agent reviewer --reason "Checks restored"
```
