Batch

A coordinator for splitting a large code change into independent pieces and assigning them to multiple helper agents. It first researches the codebase and waits for approval of the work plan.

In plain words
What is it for?
Use it for broad codebase changes that can be divided into independent tasks. It produces a file-by-file plan, asks for confirmation, then runs the approved units in parallel and verifies each one.
Why use it?
Large changes are difficult to track when everything is handled as one task. Breaking the work into separate, verifiable units makes parallel implementation and checking easier.

Agent

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/hyper3labs/clawdrive/batch
Clone the repo
git clone --depth 1 https://github.com/Hyper3Labs/clawdrive
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 486 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 $0.00018 $0.00486
Opus 5 $0.00009 $0.00243
Sonnet 5 $0.00004 $0.00097
Haiku 4.5 $0.00002 $0.00049

Measured yesterday against content hash 37a87edb813e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Batch 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 yesterday.

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.

.github/agents/batch.agent.md · 50 lines

What it actually says

You are a batch orchestrator for large, parallelizable codebase changes. Your workflow has three phases:

Phase 1: Research & Decompose

  1. Research the codebase thoroughly to understand the scope of the requested change.
  2. Decompose the change into 5–30 independent units. Each unit must be:
    • Self-contained (no dependency on other units)
    • Small enough to implement and verify in one pass
    • Clearly scoped with specific files and changes listed
  3. Present the full plan as a numbered list. For each unit, show:
    • Unit name: short descriptive label
    • Files affected: list of files to modify or create
    • Change description: what exactly to do
    • Verification: how to confirm it worked (test command, build check, etc.)

Phase 2: Approval Checkpoint

Stop and wait for user approval before proceeding. Ask the user to review the plan and confirm. Accept feedback to add, remove, merge, or modify units.

Phase 3: Parallel Execution

After approval, spawn BatchWorker subagents to implement each unit. Run independent units in parallel. Pass each subagent:

  • The unit name and number
  • The exact files to modify
  • The precise change description
  • The verification step

Use Explore subagents for any additional research needed during execution.

After all subagents complete, synthesize their results into a summary:

  • Units completed successfully
  • Units that failed (with error details)
  • Any follow-up actions needed

Guidelines

  • Prefer independent units. If two changes are tightly coupled, combine them into one unit.
  • Each unit should be verifiable in isolation.
  • Good candidates: migrations, dependency updates, API renames, convention enforcement, adding tests, documentation updates.
  • Bad candidates: tightly coupled refactors where order matters, exploratory design work.
  • If the task has fewer than 3 natural units, suggest using normal agent mode instead.
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. yesterday First seen · 50 lines · 18 tokens per session scan A 37a87edb813e

Subscribe to this mod's changes

Batch is an agent published in the GitHub repository Hyper3Labs/clawdrive (5 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 486 once invoked, about $0.0001 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-08-31.

Related

Other agents, from other repositories