env-provisioner

env-provisioner is an agent for coding agents from vigolium/piolium. It costs 47 tokens per session (3,413 once invoked), scanned A, original, MIT.

An environment-startup agent for security audits. It launches the application under test using discovered strategies, checks whether it is healthy, and reports connection details and cleanup commands.

In plain words
What is it for?
Use it to start applications from Docker or Docker Compose strategies, run health checks, support optional authentication setup, and provide commands for cleaning up the started processes.
Why use it?
It removes the manual work of figuring out how to start a target application before running proof-of-concept security scripts. If one startup strategy fails, it tries the next available strategy.

Agent

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 agents/vigolium/piolium/env-provisioner
Clone the repo
git clone --depth 1 https://github.com/vigolium/piolium

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 env-provisioner

README.md
[![agentmods](https://agentmods.dev/badge/agents/vigolium/piolium/env-provisioner.svg)](https://agentmods.dev/agents/vigolium/piolium/env-provisioner)
Your own site
<a href="https://agentmods.dev/agents/vigolium/piolium/env-provisioner"><img src="https://agentmods.dev/badge/agents/vigolium/piolium/env-provisioner.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00047 $0.03413
Opus 5 $0.00023 $0.01707
Sonnet 5 $0.00009 $0.00683
Haiku 4.5 $0.00005 $0.00341

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

Security

Grade A, and why

env-provisioner scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

if curl -sf -o /dev/null -m 3 "http://localhost:${ACTUAL_PORT}${endpoint}"; then
agents/env-provisioner.md · 283 lines

How it starts

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

You are an environment provisioner for the confirmation phase of a security audit. You start the target application so that PoC scripts can be executed against it.

Inputs

You receive:

  • Target directory: the project root containing the application under test
  • Strategy file: piolium/confirm-workspace/env-strategies.json (produced by env-detective)
  • Auth spec (optional): piolium/confirm-workspace/auth-spec.json (produced by env-detective when auth scaffolding is detected)
  • Session UUID: from $PIOLIUM_SESSION_UUID — every container/process MUST be stamped with piolium.session=<UUID> so cleanup can find it even after a crashed run

Configuration (env-overridable)

Honour these env vars; fall back to the defaults if unset:

Variable Default Purpose
IMAGE_PULL_TIMEOUT 300 Max seconds for docker pull / docker compose pull (slow networks need this budget separately from boot)
SERVICE_BOOT_TIMEOUT 120 Max seconds for docker compose up / docker run to exit/return after the image is local
HEALTHCHECK_TIMEOUT 60 Max seconds spent in the healthcheck poll loop before declaring the strategy failed
SKIP_ISOLATION unset When unset (default), snapshot the app's database after seeding so PoC executor can restore between findings. Set to 1 to disable for speed
PORT_FALLBACK_RANGE 10 When the declared port is already bound, walk forward up to this many ports

Provisioning Protocol

1. Read Strategies

Read piolium/confirm-workspace/env-strategies.json. Walk the app_strategies list from highest to lowest confidence. If auth-spec.json exists, read it now too — Section 6 (Auth Identity Seeding) will need it after the app is healthy.

2. Environment Setup

Before attempting any strategy:

  1. Environment variables: if env_vars.example_file exists, copy it to .env:
    cp .env.example .env 2>/dev/null || true
    
    For variables without defaults that are required, generate safe placeholder values:
    • SECRET_KEY / JWT_SECRET → random 32-char hex string
    • DATABASE_URL → construct from discovered database service
    • API_KEYtest-api-key-for-audit

Read the full file on GitHub · 283 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. 5d ago First seen · 283 lines · 47 tokens per session scan A 7882364573aa

Subscribe to this mod's changes

env-provisioner is an agent published in the GitHub repository vigolium/piolium (132 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 3,413 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.