parallel-context-build

parallel-context-build is a command for coding agents from ethanolivertroy/my-agent-stuff. It costs 7 tokens per session (571 once invoked), scanned A, original, MIT.

A command that launches several fresh-context subagents in parallel to investigate different parts of a request. The results form a handoff for planning or implementation.

In plain words
What is it for?
Use it to prepare context for a coding task, especially when the request involves several files, an issue, a URL, or an existing plan.
Why use it?
It gathers independent information about scope, the codebase, validation, and risks more efficiently than one investigation.

Command

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/ethanolivertroy/my-agent-stuff/parallel-context-build
Clone the repo
git clone --depth 1 https://github.com/ethanolivertroy/my-agent-stuff

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/ethanolivertroy/my-agent-stuff/parallel-context-build.svg)](https://agentmods.dev/commands/ethanolivertroy/my-agent-stuff/parallel-context-build)
Your own site
<a href="https://agentmods.dev/commands/ethanolivertroy/my-agent-stuff/parallel-context-build"><img src="https://agentmods.dev/badge/commands/ethanolivertroy/my-agent-stuff/parallel-context-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 571 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.00007 $0.00571
Opus 5 $0.00003 $0.00285
Sonnet 5 $0.00001 $0.00114
Haiku 4.5 $0.00001 $0.00057

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

Security

Grade A, and why

parallel-context-build 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 4d 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/parallel-context-build.md · 54 lines

What it actually says

Launch fresh-context context-builder subagents in parallel to build grounded handoff context for planning or implementation.

Use the subagent tool in chain mode with a single parallel step, not top-level parallel tasks, so relative output files live under the temporary chain directory. Use context: "fresh" unless I explicitly ask for forked context. Give every parallel task a distinct output path, for example:

  • context-build/request-and-scope.md
  • context-build/codebase-and-patterns.md
  • context-build/validation-and-risks.md

Do not write these context artifacts into the repository unless I explicitly ask for persistent files.

Treat the slash command arguments as the primary request, target, or focus:

$@

If the invocation provides a URL, issue link, file path, plan path, or freeform request, read or fetch that target before assigning builder angles, then pass the target explicitly into every context-builder task.

Choose two or three strong builders based on the request. Prefer three only when the scope benefits from independent context slices. These are examples, not fixed defaults:

  1. Request and scope Clarify the actual goal, user intent, constraints, non-goals, open questions, and decisions that affect the handoff.

  2. Codebase and patterns Inspect relevant files, call paths, existing abstractions, tests, package constraints, and local conventions that the next agent must follow.

  3. Validation and risks Identify likely failure modes, edge cases, test strategy, commands to run, dependency/API concerns, and escalation rules.

Adapt the angles when the request calls for it:

  • Issue or PR URL: include issue requirements, acceptance criteria, linked discussion, and likely affected files.
  • Plan file: include plan consistency, missing context, implementation sequence, and validation readiness.
  • External API/library work: include current docs or primary sources through web_search when needed.
  • Large refactor: include module boundaries, dependency direction, migration/cutover risks, and testability.
  • UI/product work: include user flow, accessibility, copy, visual constraints, and implementation touchpoints.

Ask each builder to produce a compact handoff file with:

  • relevant files and line ranges;
  • key snippets or patterns, not full dumps;
  • constraints and invariants;
  • risks and unknowns;
  • validation commands or next-best checks;
  • a meta-prompt section for the next planner or role subagent.

After the builders return, synthesize their outputs into:

  • the most important context the next agent needs;
  • the recommended meta-prompt to use next;
  • open questions or assumptions;
  • the output artifact paths.

Do not start implementation from this command unless I explicitly ask for it.

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. 4d ago First seen · 54 lines · 7 tokens per session scan A faae2db739f7

Subscribe to this mod's changes

parallel-context-build is a command published in the GitHub repository ethanolivertroy/my-agent-stuff (11 stars, last pushed 1mo ago), licensed MIT. It adds 7 tokens to every session and 571 once invoked, about $0.0000 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.