uberblick/ub-agents v0.5.4
Commands · Loop internal commands

Commands

Loop internal commands

Agents run these commands themselves; the built-in run rules tell them when and how.

report

Every run ends with report, which posts the result and moves the labels. When an agent needs a person, the item waits with an Action needed comment. A run that ends without a report counts as a failed attempt.

$ ub-agents help report
usage: ub-agents report (--outcome OUTCOME | --status {retry,blocked}) --summary SUMMARY [options]

Record a supervised run's explicit result on GitHub. Use inside the launcher-
provided assignment environment; choose --status or --outcome (required). Stop
reports (--status blocked or an outcome adding a configured stop label) require
--action or --option.

options:
  --outcome OUTCOME      declared project outcome; reports success
  --status {retry,blocked}
                         failure verdict; changes no labels
  --summary SUMMARY      explain the result in 1–8000 characters (required)
  --action ACTION        one independent ask that is needed, at most 300
                         characters; repeat for each ask
  --option OPTION        one alternative way to unblock, at most 300 characters;
                         repeat with the recommendation first; append :
                         `COMMAND` for a command block
  --handoff NUMBER       implementation PR number; its head is recorded
  -h, --help             show this help

examples:
  ub-agents report --outcome handed-off --summary "Ready for review" --handoff 150
  ub-agents report --status blocked --summary "Decision pending" --option "Maintainer: use A." --option "Maintainer: use B."

read

Agents use read to look at another issue or pull request, filtered by approvals like their own assignment. Run ub-agents read 143 to see #143 the way an agent sees it.

$ ub-agents help read
usage: ub-agents read NUMBER [options]

Read an open or closed issue or PR under the assignment input trust rules.
Withheld input is marked or counted; history and permission failures show no
item content. trusted-bots trusts listed GitHub bot feedback like write, without
maintainer authority. Inside a supervised run use the launcher's report_command
followed by read N; its repository and configuration are pinned by the launcher.
This command makes no writes.

options:
  --config PATH          project configuration (default: ub-agents.yaml)
  -h, --help             show this help

examples:
  ub-agents read 143
  ub-agents read 150 --config workflow.yaml

retrospective

Agents post what slowed them down to their retrospective board. With upstream-retrospectives: on, --upstream sends general feedback about ub-agents itself to its public Field reports board; upstream posts must not link their item. See the content rules. A failed post never blocks the run.

$ ub-agents help retrospective
usage: ub-agents retrospective --body-file PATH [options]

Post a body file as a top-level comment on the agent's configured retrospective
discussion. Only available inside a supervised run; use the launcher's literal
report_command. The repository and board are pinned by the launcher. With
upstream-retrospectives: on, --upstream sends public feedback about ub-agents to
its fixed Field reports board instead; omit project details and item links.
Prints the comment URL and does not change the run's outcome. Upstream GitHub
failures warn and exit successfully.

options:
  --body-file PATH       path to a UTF-8 retrospective body file (required)
  --upstream             send public feedback about ub-agents (requires
                         upstream-retrospectives: on)
  -h, --help             show this help

examples:
  ub-agents retrospective --body-file /run/scratch/retrospective.md
  ub-agents retrospective --body-file "/run/scratch/run notes.md"