# Give launchers their own account

Run the loop with a dedicated GitHub account for your agents, with write access to this repository only.

## Why not admin

Write access is enough to push branches, open pull requests and set labels. With [approvals on](https://agents.uberblick.ai/docs/configuration/approvals.md#on), outside work waits for a maintainer, and an agent account with maintain or admin counts as one, so it could approve that work itself. [`ub-agents doctor`](https://agents.uberblick.ai/docs/commands/doctor.md) warns about it.

```sh
ub-agents doctor
```

## Limit what agents can reach

Agents run with the launcher account and inherit the launcher's environment. Keep secrets you don't want them to use out of that environment, and protect the default branch with a ruleset: required checks, no force pushes.

To keep agents from merging changes to their own rules, list `ub-agents.yaml` and your agent instructions in a `CODEOWNERS` file under a maintainers team, require code owner review in the default branch's ruleset, and make sure the launcher account can't bypass that ruleset. Naming a team keeps the file unchanged when people join or leave. This complements the instruction-level hand-off in [Merges that need a person](https://agents.uberblick.ai/docs/best-practices/people-decide.md#merges-that-need-a-person).

## Several loops

Several loops can share one agent account, up to ten, or about seven when runs are short. See [How many launchers one account supports](https://agents.uberblick.ai/docs/best-practices/account-capacity.md).
