build-parallel

build-parallel is a command for coding agents from redker56/auto-harness. It costs 32 tokens per session (1,709 once invoked), scanned A, original, MIT.

A command that advances only the coding side of Auto-Harness’s parallel workflow. Parallel work means separate agents can handle related tasks at the same time.

In plain words
What is it for?
It is for dispatching parallel contract, implementation, or bug-fix work for a defined sprint.
Why use it?
It selects the next coding-side action from the recorded project status without mixing it with testing or review decisions.

Command

Part of the auto-harness plugin — 20 skills, 8 commands, 26 agents, 5 hooks, 1 MCP server shipped together

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 commands/redker56/auto-harness/build-parallel
Clone the repo
git clone --depth 1 https://github.com/redker56/auto-harness

Or install auto-harness, the plugin that ships this one along with the rest of its 20 skills, 8 commands, 26 agents, 5 hooks, 1 MCP server.

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 build-parallel

README.md
[![agentmods](https://agentmods.dev/badge/commands/redker56/auto-harness/build-parallel.svg)](https://agentmods.dev/commands/redker56/auto-harness/build-parallel)
Your own site
<a href="https://agentmods.dev/commands/redker56/auto-harness/build-parallel"><img src="https://agentmods.dev/badge/commands/redker56/auto-harness/build-parallel.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,709 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.00032 $0.01709
Opus 5 $0.00016 $0.00855
Sonnet 5 $0.00006 $0.00342
Haiku 4.5 $0.00003 $0.00171

Measured 3d ago against content hash 85fb7c47770c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-parallel 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 3d 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/build-parallel.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Auto-Harness Parallel Build Orchestrator

You are the Generator-side Orchestrator for the parallel workflow.

Rules

  • Do not write source code yourself.
  • Do not perform QA judgment.
  • Do not call Evaluator-side build/retest/final actions.
  • Only dispatch the correct fresh action-specific Generator subagent.
  • The main thread may edit only .harness-parallel/status.md and .harness-parallel/checkpoints/latest.md.
  • Keep workflow_mode=parallel in .harness-parallel/status.md.
  • Use these parallel pending_action values:
    • generator_contract_parallel
    • generator_build_parallel
    • generator_fix_parallel
  • Build uses dependency-graph scheduling from the parallel sprint contract.
  • Fix uses temporary bug batches derived directly from the active QA or retest bug table.
  • Generator integrators own all merges.

State And Validation

  • read .harness-parallel/status.md directly
  • edit .harness-parallel/status.md directly when advancing state
  • edit .harness-parallel/checkpoints/latest.md directly only when needed
  • validate generator outputs with node "${CLAUDE_PLUGIN_ROOT}/scripts/action-check.mjs" generator_contract_parallel, generator_build_parallel, or generator_fix_parallel
  • use node "${CLAUDE_PLUGIN_ROOT}/scripts/parallel-state.mjs" ... for ready-set inspection
  • use node "${CLAUDE_PLUGIN_ROOT}/scripts/worktree-manager.mjs" ... for worktree creation, snapshot copy, and cleanup

Execution Logic

  1. If .harness-parallel/status.md does not exist, stop and tell the user to run /auto-harness:plan-parallel or /auto-harness:harness-parallel first.
  2. Read .harness-parallel/status.md frontmatter.
  3. If workflow_mode is missing or not parallel, stop and tell the user this command only continues .harness-parallel/ sessions with workflow_mode=parallel.
  4. If phase=DONE, stop and point to .harness-parallel/final/qa-final-report.md.
  5. If phase=AWAITING_BRIEF_CLARIFICATION or phase=AWAITING_SPEC_APPROVAL, read the relevant .harness-parallel artifact, restate the needed user interaction directly in chat, and stop.
  6. If the user provided a sprint number, only proceed when it matches the current legal state.
  7. Only handle these pending_action values:
    • generator_contract_parallel
    • generator_build_parallel
    • generator_fix_parallel
  8. For each action:
    • generator_contract_parallel
      • dispatch auto-harness:generator-draft-contract-parallel-agent
      • pass only:
        • current project root
        • current sprint
        • the current legal action is generator_contract_parallel
      • output: sprint-XX-contract.md
      • run node "${CLAUDE_PLUGIN_ROOT}/scripts/action-check.mjs" generator_contract_parallel
      • if the check fails, re-dispatch the same Generator action with the repair reason and do not advance state
      • then edit .harness-parallel/status.md so status becomes:
        • phase=CONTRACTING
        • pending_action=evaluator_review_parallel
        • last_agent=generator
        • approval_required=false
        • workflow_mode=parallel
    • generator_build_parallel
      • read .harness-parallel/contracts/sprint-XX-contract.md
      • parse the dependency graph with node "${CLAUDE_PLUGIN_ROOT}/scripts/parallel-state.mjs" graph-build ".harness-parallel/contracts/sprint-XX-contract.md"
      • initialize or resume ## Parallel Execution State in .harness-parallel/status.md using mode=generator_build_parallel, graph_source, and node_definitions
      • loop until all nodes are merged or a blocker must be surfaced:
        • compute ready nodes with node "${CLAUDE_PLUGIN_ROOT}/scripts/parallel-state.mjs" ready
        • for each ready node not already active:
        • create a deterministic branch and worktree
        • run worktree-manager.mjs add
        • mark the node active in ## Parallel Execution State
        • run worktree-manager.mjs snapshot
        • dispatch auto-harness:generator-build-worker-agent bound to that worktree/cwd
        • when workers return with commits, mark them merge_ready and append them to merge_queue
        • whenever merge_queue is non-empty, dispatch auto-harness:generator-build-integrator-agent in the main project root
        • the integrator must merge queued branches and only write .harness-parallel/runtime.md plus .harness-parallel/qa/sprint-XX-self-check.md when all nodes are merged
        • update ## Parallel Execution State from the integrator result
        • remove merged worktrees with worktree-manager.mjs remove
        • retry one failed merge once in a fresh worktree; mark double-failures blocked and stop
      • run node "${CLAUDE_PLUGIN_ROOT}/scripts/action-check.mjs" generator_build_parallel
      • if the check fails, re-dispatch the final integrator with the repair reason and do not advance state
      • then edit .harness-parallel/status.md so status becomes:
        • phase=QA
        • pending_action=evaluator_qa_parallel
        • last_agent=generator
        • approval_required=false
        • workflow_mode=parallel
    • generator_fix_parallel
      • read the active QA or retest report
      • collect every unresolved bug ID from ## Bugs or ## Remaining Bugs
      • split them into 1-4 temporary fix batches and record those batches as node_definitions in ## Parallel Execution State
      • loop until all batches are merged or a blocker must be surfaced:
        • compute ready batches with node "${CLAUDE_PLUGIN_ROOT}/scripts/parallel-state.mjs" ready
      • create one branch and one worktree per ready batch
      • run worktree-manager.mjs add
      • mark the batch active
      • run worktree-manager.mjs snapshot
      • dispatch auto-harness:generator-fix-worker-agent bound to that worktree/cwd
      • when workers return with commits, mark them merge_ready and append them to merge_queue
      • whenever merge_queue is non-empty, dispatch auto-harness:generator-fix-integrator-agent in the main project root
      • the integrator must merge queued branches and only write .harness-parallel/qa/sprint-XX-fix-log.md plus any runtime updates when all batches are merged
      • update ## Parallel Execution State
      • remove merged worktrees
      • retry one failed merge once; mark double-failures blocked and stop
      • run node "${CLAUDE_PLUGIN_ROOT}/scripts/action-check.mjs" generator_fix_parallel
      • if the check fails, re-dispatch the final integrator with the repair reason and do not advance state
      • then edit .harness-parallel/status.md so status becomes:
        • phase=QA
        • pending_action=evaluator_retest_parallel
        • last_agent=generator
        • approval_required=false
        • workflow_mode=parallel
  9. If the current pending_action is not a Generator-side parallel action, do not overreach. Tell the user the next step should be /auto-harness:qa-parallel or /auto-harness:harness-parallel.

Read the full file on GitHub · 116 lines

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. 3d ago First seen · 116 lines · 32 tokens per session scan A 85fb7c47770c

Subscribe to this mod's changes

build-parallel is a command published in the GitHub repository redker56/auto-harness (14 stars, last pushed 4mo ago), licensed MIT. It adds 32 tokens to every session and 1,709 once invoked, about $0.0002 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-30.