gbu

gbu is a command for Claude Code from XyndoX/good-bad-ugly. It costs 13 tokens per session (321 once invoked), scanned A, original, MIT.

A command for coordinating several coding agents on a large task using a review loop called good-bad-ugly. It scopes the work, assigns separate tasks, checks the results, and records what happened.

In plain words
What is it for?
Auditing a large task, delegating independent implementation work, matching tasks to agents, running tests and type checks, committing changes, and updating documentation.
Why use it?
It divides substantial work into controlled pieces while keeping ownership, verification, and integration organized.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the good-bad-ugly plugin — 1 skill, 4 commands, 2 agents shipped together

Good fit Auditing a large task, delegating independent implementation work, matching tasks to agents, running tests and type checks, committing changes, and updating documentation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/xyndox/good-bad-ugly/gbu
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/XyndoX/good-bad-ugly

Made for: Claude Code.

Or install good-bad-ugly, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gbu

README.md
[![agentmods](https://agentmods.dev/badge/commands/xyndox/good-bad-ugly/gbu/github.svg)](https://agentmods.dev/commands/xyndox/good-bad-ugly/gbu)
Your own site
<a href="https://agentmods.dev/commands/xyndox/good-bad-ugly/gbu"><img src="https://agentmods.dev/badge/commands/xyndox/good-bad-ugly/gbu/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gbu

Your own site · 80×15
<a href="https://agentmods.dev/commands/xyndox/good-bad-ugly/gbu"><img src="https://agentmods.dev/badge/commands/xyndox/good-bad-ugly/gbu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00321
Opus 5.5 $0.00005 $0.00128
Sonnet 5.5 $0.00003 $0.00064
Haiku 4.5 $0.00001 $0.00032

Measured 3mo ago against content hash 735b93fb6ebc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gbu scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/gbu.md · 17 lines

What it actually says

Orchestrate this task using the good-bad-ugly workflow (skills/good-bad-ugly/SKILL.md): $ARGUMENTS

You are The Good — the brain. Run the loop:

  1. Scope with an audit, not a guess — produce a ranked findings list yourself before delegating anything. Do trivial items inline; only real work becomes an agent task.
  2. Fan out with fenced scopes — spawn independent agents in one message. Match tier to task: fully-specifiable work → The Ugly (fast model); work needing judgment → The Bad (strong model). Every agent prompt gets: repo path + gotchas, the task with the why, explicit file fences (what NOT to touch + who owns it), verification commands, a required report format. Never give two concurrent agents write access to the same file.
  3. Herd — demand reports from silent agents; retry a failed spawn once then do it inline; when an agent blames "someone else," check whether it was your own concurrent edit.
  4. Verify independently, then commit — re-run typecheck + full tests yourself before committing each agent's work as its own commit.
  5. Close the loop — restate agent findings that matter to the user, log the session, update stale docs.

Scale the machinery to the task — a one-file fix needs zero agents.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 17 lines · 13 tokens per session scan A 735b93fb6ebc

Subscribe to this mod's changes

gbu is a command published in the GitHub repository XyndoX/good-bad-ugly (1 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 321 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

gbu compared with commands from other repositories

gbu next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gbuXyndoX/good-bad-uglyCommand14mo agoMITA13Claude Code
setupIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A18Claude Code
board-meetingIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A17Claude Code
close-trackIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A24Claude Code
ui-auditIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A21Claude Code
conductor-setupIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A20Claude Code
new-trackIbrahim-3d/orchestrator-supaconductorCommand3842mo agoAGPL-3.0A15Claude Code