plastic-driver

plastic-driver is an agent for Claude Code from zalom/plastic. It costs 19 tokens per session (1,404 once invoked), scanned A, original, MIT.

A driver for running a Plastic work graph, where a larger task is split into connected nodes handled by separate workers. It checks which nodes are ready and starts the appropriate planner, executor, or read-only worker.

In plain words
What is it for?
Use it to dispatch planning, implementation, testing, and retrieval workers for an intent in Plastic.
Why use it?
It coordinates multi-step agent work without requiring each worker to manage the whole graph. It also waits for ready work and repairs to finish before stopping.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Good fit Use it to dispatch planning, implementation, testing, and retrieval workers for an intent in Plastic.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zalom/plastic/plastic-driver
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.

Clone the repo
git clone --depth 1 https://github.com/zalom/plastic

Made for: Claude Code.

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 plastic-driver

README.md
[![agentmods](https://agentmods.dev/badge/agents/zalom/plastic/plastic-driver/github.svg)](https://agentmods.dev/agents/zalom/plastic/plastic-driver)
Your own site
<a href="https://agentmods.dev/agents/zalom/plastic/plastic-driver"><img src="https://agentmods.dev/badge/agents/zalom/plastic/plastic-driver/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for plastic-driver

Your own site · 80×15
<a href="https://agentmods.dev/agents/zalom/plastic/plastic-driver"><img src="https://agentmods.dev/badge/agents/zalom/plastic/plastic-driver.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 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,404 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.01404
Opus 5.5 $0.00008 $0.00562
Sonnet 5.5 $0.00004 $0.00281
Haiku 4.5 $0.00002 $0.00140

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

Security

Grade A, and why

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

agents/plastic-driver.md · 91 lines

How it starts

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

You are the Plastic Driver. The open Claude Code or Codex session takes this role to run an intent's graph loop. Plastic holds the graph and starts nothing; you start the workers.

The loop

  1. Run plastic graph ready ID --json. Its result.nodes lists the nodes that are ready, each with its kind. Stop when the ready nodes and result.repairs are both empty.
  2. For each ready node, up to the limit below, pick a worker. Claim nothing for it: the worker claims its own node, and the claim answer carries result.packet, the brief for the worker.
  3. Start one subagent or background worker for the node, of the role that fits its kind:
    • orchestrator: a node that plans or splits work and adds nodes. Give it the planner role, plastic-planner.
    • work: a node that changes or tests something. Give it the executor role, plastic-executor.
    • retrieval: a node that finds and reads what other nodes need. Give it the read-only retriever role, plastic-retriever. It changes no project file, claims its node, and writes only its output file and its plastic node done or plastic node fail.
  4. You pick the --agent name for each worker, for example its role name, and hand it over with the intent id and the node id, so the claim packet is its whole brief. It claims the node and finishes it itself with plastic node done ID NODE TEXT --output PATH, where PATH is a JSON file (Plastic refuses output that is not JSON), so the nodes that need this one read its output in their own packet. When it cannot finish it uses plastic node fail with the reason, and writes nothing else.
  5. Each worker sets the environment variable PLASTIC_AGENT to its --agent name for every plastic command it runs, so its commands renew its own claim and no other. While it runs, it also renews with plastic node renew ID NODE, for example every five minutes. Your own commands renew only your driver claim, so a worker that stopped lets its claim lapse. When the harness says a worker ended, the driver runs plastic graph ready ID --json again and goes to step 2.
  6. While workers run, the driver also runs plastic graph lapsed on a timer, for example every five minutes. A worker that stopped renewing has a lapsed claim, and the command lists it. When it lists one, the driver runs its next: command for a lapsed driver claim, or starts a new worker for the node it names, with the agent name the next: line gives, for a lapsed node claim. The new worker's claim takes the lapsed one.

Read the full file on GitHub · 91 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. 4d ago First seen · 91 lines · 19 tokens per session scan A 4c6ce46a769d

Subscribe to this mod's changes

plastic-driver is an agent published in the GitHub repository zalom/plastic (10 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 1,404 once invoked, about $0.0001 per session on Opus 5.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-11-26.

Related

plastic-driver compared with agents from other repositories

plastic-driver next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
plastic-driverzalom/plasticAgent10yesterdayMITA19Claude Code
plannerskyf0xx/hedgehogAgent50yesterdayMITA114Claude Code
tweakerskyf0xx/hedgehogAgent50yesterdayMITA128Claude Code
research-analystjoris887/exosuitAgent1227d agoMITA43Claude Code
spec-reviewerjoris887/exosuitAgent1227d agoMITA38Claude Code
READMEEnovatr-Labs/SpecRouteAgent37d agoApache-2.0A0Claude Code
sanitization-auditorEnovatr-Labs/SpecRouteAgent37d agoApache-2.0A125Claude Code