queue-rebalancer

queue-rebalancer is an agent for Claude Code from ivegamsft/basecoat. It costs 85 tokens per session (588 once invoked), scanned A, original, MIT.

A queue coordinator that maps dependencies between open pull requests and issues, then creates a small work group focused on fixes blocking other work.

In plain words
What is it for?
It is for ranking blocker work, organizing a temporary unblock lane, cherry-picking blocker fixes, and restoring normal queue order after verification.
Why use it?
It helps teams find the fixes with the greatest ability to unblock broken builds or dependent tasks instead of treating every queue item equally.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

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.

agentmods
npx agentmods add agents/ivegamsft/basecoat/basecoat-60-workflow-queue-rebalancer
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

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 queue-rebalancer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-queue-rebalancer.svg)](https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-queue-rebalancer)
Your own site
<a href="https://agentmods.dev/agents/ivegamsft/basecoat/basecoat-60-workflow-queue-rebalancer"><img src="https://agentmods.dev/badge/agents/ivegamsft/basecoat/basecoat-60-workflow-queue-rebalancer.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 588 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00085 $0.00588
Opus 5 $0.00043 $0.00294
Sonnet 5 $0.00017 $0.00118
Haiku 4.5 $0.00009 $0.00059

Measured 2d ago against content hash dde3267858e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

queue-rebalancer 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 2d 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.

agents/basecoat-60-workflow-queue-rebalancer.agent.md · 53 lines

What it actually says

Queue Rebalancer Agent

Builds a dependency graph from open PRs and issues, scores items by unblock impact, forms a focused unblock lane for blocker fixes, and returns work to regular order after verification.

Inputs

  • Open PR queue with CI status; open issue queue with labels and body text
  • Optional: --blockers <numbers>, --unblock-group-size <N>, --mode reprioritize|reshuffle|rebalance (default: rebalance), --dry-run, --score-policy <path>, --approval-policy <path>

Workflow

  1. Collect open PRs and issues with CI status, labels, and body text.
  2. Build a directed dependency graph from explicit body keywords and base-branch chains.
  3. Group nodes into feature clusters with confidence scores and rationale.
  4. Score each item with configurable weighted policy (impact, urgency, blockers, churn).
  5. Classify items as blocker, blocked, independent, or chain-member.
  6. Form a focused unblock group (max 3-5 items) targeting active breakage only.
  7. Apply scope and risk gates; pause enhancements and high-risk moves for human check-in.
  8. If --dry-run, stop after producing the ranked plan and audit log preview; otherwise execute the approved unblock group, verify CI, publish the audit log, and return to regular order.

Output

Reorder plan with blocker-first ranked queue, dependency graph with edge rationale, feature clusters, unblock group with cherry-pick sources, gated items, audit log with before/after rank and score rationale, and CI verification evidence.

References

Scoring policy YAML, phase details, output format, audit log schema, report template: agents/references/queue-rebalancer-detail.md

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. 2d ago First seen · 53 lines · 85 tokens per session scan A dde3267858e9

Subscribe to this mod's changes

queue-rebalancer is an agent published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 588 once invoked, about $0.0004 per session on Opus 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-09-03.

Related

Other agents, from other repositories

committer

Agent that first generates the result report for a verified TASK and then performs git commit. Automatically invoked by the scheduler. Result files are created in the corresponding WORK directory.

davepoon/buildwithclaude · 36 tokens

Jira Workflow Steward

Expert delivery operations specialist who enforces Jira-linked Git workflows, traceable commits, structured pull requests, and release-safe branch strategy across software teams.

SHAdd0WTAka/Zen-Ai-Pentest · 34 tokens

Issue Tracker

Your GitHub issue command center -- find, triage, review, and respond to issues with full markdown + HTML reports saved to your workspace. Includes reactions, release context, and discussion awareness.

Community-Access/accessibility-agents · 42 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens

FAI Git Workflow Expert

Git workflow specialist — trunk-based development, conventional commits, PR best practices, branch protection, merge strategies, CODEOWNERS, and Git hooks for AI project collaboration.

frootai/frootai · 39 tokens

Shipper

Post-review shipping agent — commits, updates the roadmap, captures postmortem, and optionally creates a PR after a PASS verdict.

srnichols/plan-forge · 29 tokens