pipelines

A pipeline command for running several steps in sequence, with each step in its own isolated sandbox. Output files from one step can be passed to the next.

In plain words
What is it for?
Use it for workflows such as generating data with Python, processing it with Node.js, and analyzing the results in another Python step.
Why use it?
It removes the need to manually run and connect multi-stage jobs, even when different steps need different Docker environments.

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/pipelines
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 574 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.00574
Opus 5 $0.00000 $0.00287
Sonnet 5 $0.00000 $0.00115
Haiku 4.5 $0.00000 $0.00057

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

Security

Grade A, and why

pipelines 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/pipelines.md · 90 lines

How it starts

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

agentkernel pipeline

Run a multi-step agent pipeline. Each step runs in its own sandbox, and output from one step can be piped as input to the next.

Usage

agentkernel pipeline [OPTIONS] <FILE>

Options

Option Description
-B, --backend <BACKEND> Backend to use for pipeline sandboxes

Pipeline File Format

Pipelines are defined in TOML:

[[step]]
name = "generate"
image = "python:3.12-alpine"
command = "python generate_data.py"
output = "/app/output/"

[[step]]
name = "process"
image = "node:22-alpine"
command = "node process.js"
input = "/app/input/"
output = "/app/results/"

[[step]]
name = "analyze"
image = "python:3.12-alpine"
command = "python analyze.py"
input = "/app/input/"

Step Fields

Field Required Description
name Yes Step name (must be unique, no / or ..)
image Yes Docker image for this step
command Yes Command to execute (split on whitespace)
input No Directory inside sandbox to receive previous step's output
output No Directory inside sandbox to pass to next step

Examples

Run a pipeline

$ agentkernel pipeline pipeline.toml
  [1/3] generate             done (2.1s)
  [2/3] process              done (1.5s)
  [3/3] analyze              done (0.8s)
  Done (4.4s total)

With a specific backend

agentkernel pipeline pipeline.toml -B docker

How It Works

  1. Steps execute sequentially in order
  2. Each step gets its own sandbox (created, started, executed, stopped, removed)
  3. If a step defines output, files in that directory are copied to a temporary host directory
  4. If the next step defines input, those files are copied into the sandbox before execution
  5. Pipeline stops on first failure
  6. All temporary directories are cleaned up after the pipeline completes

Validation

  • Step names must be unique
  • Step names cannot contain /, \, or .. (path traversal prevention)
  • Pipeline must have at least one step

Read the full file on GitHub · 90 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 · 90 lines · 0 tokens per session scan A d9df2f912dfb

Subscribe to this mod's changes

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