Configuration
Configuration
ub-agents.yaml sits at the root of your repository. ub-agents init writes a starter file, and ub-agents doctor --offline validates it. Unknown keys are errors.
repository: your-org/your-project
shared-instructions: .agents/ub_agents.md
agents:
implementer:
runtime: "codex:gpt-6.2-sol:high"
trigger: [ready, needs-changes]
instructions: .agents/implementer.md
worktree: true
outcomes:
handed-off: {add: [needs-review]}
poll-seconds: 30
stop-labels: [needs-human]
Repository
The GitHub repository the agents work on, as owner/name. It must match your checkout's origin.
HTTPS and SSH remotes both work, and so do SSH host aliases such as git@github-work:OWNER/REPO.git, as long as ssh -G resolves them to github.com.
repository: your-org/your-project
Agents
The roles that do the work, by name. See Agents.
agents:
implementer:
...
Shared instructions
A policy file every agent reads before its own instructions: checks, merge policy and who decides. See Instructions.
shared-instructions: .agents/ub_agents.md
Poll interval
The minimum gap between queue checks, in seconds; defaults to 30. See polling rules for timing and account capacity for sizing a shared account.
poll-seconds: 30
Stop labels
Labels that park an item until a person acts. Defaults to needs-human. See Stop labels.
stop-labels: [needs-human]
Everything else
All optional:
| Key | Page |
|---|---|
limits | Limits |
queue | Queue |
approvals, trusted-bots | Approvals |
trusted-pr-authors | Trusted PR authors |
upstream-retrospectives | Upstream retrospectives |
launchers | Launcher accounts |
cleanup | Cleanup hook |
events | Loop events |
checkout-setup | Checkout setup |
runtime-updates | Runtime updates |
runtime-args | Per-CLI argument defaults |
Using a different configuration file
Every command reads ub-agents.yaml by default. Pass --config to use another file.
$ ub-agents --config staging.yaml launchRelative paths and ub-agents.local.yaml resolve from that file's directory.
Machine-local overrides
To change settings on one machine only, put them in ub-agents.local.yaml next to ub-agents.yaml, which init adds to .gitignore. Give only the keys you change. A runtime list replaces the shared one, so repeat the shared runtime to keep it:
# ub-agents.local.yaml
agents:
implementer:
runtime: ["codex:gpt-6.2-sol:high", "claude:claude-opus-5-5:high"]
An optional, untracked ub-agents.local.yaml in the base file's directory, after resolving symlinks, overrides settings on one machine. The base file stays required. Relative paths in both files resolve against that directory. A missing, empty or comment-only local file changes nothing.
- Mappings merge recursively by key, including
agentsand each agent. Omitted keys and other agents inherit from the base. - Scalars and lists replace the whole base value. Lists are never concatenated, so repeat every base entry you want to keep.
- There is no syntax to add or delete. An explicit
nullis a value and is validated normally. - An agent defined only in the local file must be complete.
Both files need unique string keys. Validation runs on the merged result, and errors caused by the local file name it. Launch rereads both files before each new run. The local file is not copied into private worktrees. init adds it to .gitignore; in an existing project, add that line before creating the file.
Key reference
| Key | Type and default | Rules |
|---|---|---|
repository | Required string | GitHub owner/name; must match the checkout's origin. |
agents | Required mapping | Nonempty; names are lowercase slugs: a letter, then letters, digits, - or _. See Agents. |
upstream-retrospectives | on or off, default off | Opt in to public feedback about ub-agents itself; pinned by the launcher for each run. See Retrospectives. |
poll-seconds | Positive number, 30 | Minimum gap between discovery-pass starts. |
origin may be https://github.com/OWNER/REPO, git@github.com:OWNER/REPO or ssh://git@github.com/OWNER/REPO, with an optional .git or trailing /. An SSH host alias also works when ssh -G HOST reports hostname github.com. The check needs no network, so doctor --offline runs it too.