parallel

A command for running several jobs at the same time, with each job in its own sandbox. A job is a named command paired with a container image, such as a Node.js or Rust environment.

In plain words
What is it for?
Use it to run tests, linters, builds, or checks concurrently and collect their results when all jobs finish.
Why use it?
It reduces waiting when tasks such as linting and testing are independent. Separate sandboxes keep the jobs from interfering with one another.

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/thrashr888/agentkernel/parallel
Clone the repo
git clone --depth 1 https://github.com/thrashr888/agentkernel
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 618 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.00000 $0.00618
Opus 5 $0.00000 $0.00309
Sonnet 5 $0.00000 $0.00124
Haiku 4.5 $0.00000 $0.00062

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

Security

Grade A, and why

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

docs/commands/parallel.md · 88 lines

How it starts

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

agentkernel parallel

Run multiple jobs concurrently. Each job runs in its own sandbox. Results are collected and reported when all jobs finish.

Usage

agentkernel parallel --job <JOB> [--job <JOB>...] [-B <BACKEND>]

Options

Option Description
-j, --job <JOB> Job spec (repeatable). Format: name:image:command or name:image:tag:command
-B, --backend <BACKEND> Backend to use

Job Format

Jobs are specified as colon-separated strings:

name:image:command              # Image without tag (uses :latest)
name:image:tag:command          # Image with explicit tag

Examples:

  • lint:node:npx eslint . — uses node:latest
  • test:node:22-alpine:npm test — uses node:22-alpine
  • build:rust:1.85-alpine:cargo build — uses rust:1.85-alpine

Examples

Run lint and test in parallel

$ agentkernel parallel \
    --job "lint:node:22-alpine:npx eslint ." \
    --job "test:node:22-alpine:npm test" \
    -B docker
Running 2 jobs in parallel...

  lint done (1.2s)
  test done (3.4s)

All jobs passed (3.4s wall time)

Fan-out across languages

agentkernel parallel \
    --job "python:python:3.12-alpine:python3 -c 'print(1+1)'" \
    --job "node:node:22-alpine:node -e 'console.log(1+1)'" \
    --job "ruby:ruby:3.3-alpine:ruby -e 'puts 1+1'" \
    -B docker

Handle failures

$ agentkernel parallel \
    --job "pass:alpine:3.24:echo ok" \
    --job "fail:alpine:3.24:false" \
    -B docker
Running 2 jobs in parallel...

  pass done (0.2s)
  fail FAILED (0.2s)

Error: Some jobs failed (0.2s wall time)

The exit code is non-zero if any job fails.

How It Works

  1. All jobs are spawned concurrently using tokio::spawn
  2. Each job tries ephemeral execution first, then falls back to full sandbox lifecycle
  3. Results are collected and displayed as jobs complete
  4. Wall time reflects the slowest job (parallel execution)

See Also

  • Pipeline - Sequential multi-step execution with data flow
  • Run - Run a single command

Read the full file on GitHub · 88 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. 2d ago First seen · 88 lines · 0 tokens per session scan A d5802449221f

Subscribe to this mod's changes

parallel is a command published in the GitHub repository thrashr888/agentkernel (58 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 618 tokens. 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.