operate-pi-dispatch

Instructions for operating pi-dispatch, a queue that runs paid autonomous agent jobs. They describe observing deployments and using human-confirmation gates for settings that can affect spending or processing.

In plain words
What is it for?
Checking worker status, recent runs, budgets, cost reports, insights, and provider or model cost estimates, as well as managing gated settings and triggers.
Why use it?
They help an operator understand queue health, costs, and safeguards before changing money-related configuration.

Skill for Claude CodeCodex

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 skills/edgehero/pi-dispatch/operate-pi-dispatch
Any agent
npx skills add edgehero/pi-dispatch --skill operate-pi-dispatch
Clone the repo
git clone --depth 1 https://github.com/edgehero/pi-dispatch

Made for: Claude Code, Codex.

Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,146 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.00041 $0.05146
Opus 5 $0.00020 $0.02573
Sonnet 5 $0.00008 $0.01029
Haiku 4.5 $0.00004 $0.00515

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

Security

Grade A, and why

operate-pi-dispatch 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 3d 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.

admin/skills/operate-pi-dispatch/SKILL.md · 297 lines

How it starts

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

Operating pi-dispatch

pi-dispatch is a queue that runs paid autonomous agent jobs. The admin extension exposes tools to observe and operate a deployment. Some tools only read; some turn processing on and off; some change money-affecting configuration and are gated behind a human confirmation.

The tools

Observe (no approval needed):

  • dispatch_status — queue/worker state, today's budget, settings overlay, schedulers.
  • dispatch_runs — recent run records (PII-free). Raw job logs are never available to tools.
  • dispatch_costs — cost analytics folded from the run history: window totals (window = 7d/30d/mtd), daily buckets, per-flow and per-model rollups, subscription plan verdicts, provenance (flow filters to one flow). Every dollar in the result is typed { usd, class, ... } — quote the class with the number (metered is measured, estimated/seeded are not), and never present an estimate as an exact spend. The operator sees the same fold drawn as charts on the insights page (/dispatch insights [7d|30d|mtd] writes and opens it), and /dispatch insights whatif <provider/model> --flow <flow> estimates what a flow would cost per run on another model's rates.
  • dispatch_triggers — the configured triggers with their array index (needed to edit/delete one).

Control (no approval needed — reversible and money-safe):

  • dispatch_pause — stop starting new jobs (running ones finish). This is "turn dispatch off".
  • dispatch_resume — re-enable processing. This is "turn dispatch on".

Start a run (paid, already gated producer-side):

  • dispatch_run — enqueue one agent run against an allowlisted local folder.

The human confirm gates — how to use them

These tools change money-affecting configuration and each one asks the operator to approve a confirmation dialog before it takes effect:

  • dispatch_set — change a limit/setting (e.g. dailyCap, weeklyCap, maxTurns, model). Omit value to unset.
  • dispatch_trigger_add / dispatch_trigger_edit / dispatch_trigger_delete — manage triggers.
  • dispatch_pause_add / dispatch_pause_edit / dispatch_pause_delete — manage scheduled pause windows (per folder/repo "quiet hours": runs for a scope are deferred between certain times and auto-resume after; dispatch_pauses lists them with their index). dispatch_pause_edit is a partial change — pass the index plus only the fields to alter. Deferring never drops a job and costs no budget.
  • dispatch_waits — list the jobs the worker is HOLDING on a trigger's run.waitFor condition: job id, an id-only target, the operator's own words for what it waits on, and how long it has waited. Different from the queue's delayed count, which also mixes cron next-occurrences, retry backoff and quiet hours.
  • dispatch_wait_cancel — remove a held job so it never runs (confirm-gated). It is the only lever that reaches one: a held job has spent nothing, so no budget cap will ever refuse it, and deleting the trigger does not reach a job already enqueued.
  • dispatch_limit_add / dispatch_limit_edit / dispatch_limit_delete — manage scoped limits (per repo/folder budget caps and concurrency: day/week/month job-count caps refuse a job pre-spend with reason scope-cap, never retried; concurrent defers the excess, never drops it; dispatch_limits lists them with their index and used counts). dispatch_limit_edit is a partial change — pass the index plus only the fields to alter. Scopes match exactly (a repo owner/name or an ABSOLUTE folder path, no globs).

Read the full file on GitHub · 297 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. 3d ago First seen · 297 lines · 41 tokens per session scan A 55d80f724a29

Subscribe to this mod's changes

operate-pi-dispatch is a skill published in the GitHub repository edgehero/pi-dispatch (163 stars, last pushed 3d ago), licensed MIT. It adds 41 tokens to every session and 5,146 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

seo-audit

Audit and fix a website's technical SEO and AI-search (GEO) readiness against Google's official guidance, page by page, ending in a computed SEO/GEO score. Use when asked to audit SEO, fix indexing or crawling problems, check canonicals/hreflang/sitemaps/structured data, diagnose why pages are not indexed or traffic…

umutxyp/Seo-Promt-Master · 108 tokens

prompt-architect

Analyzes and improves prompts using 31 frameworks across 7 intent categories. Use when a user wants to improve, rewrite, structure, or engineer a prompt — including requests like "help me write a better prompt", "improve this prompt", "what framework should I use", "make this prompt more effective", or any prompt…

ckelsoe/prompt-architect · 111 tokens

extreme-router-gateway-engine

AI Gateway routing, provider management, and core engine expertise for ExtremeRouter. Use when working on request routing, provider fallback, token refresh, format translation, streaming, or when the user asks about "how does routing work", "add a new provider", "fix the fallback logic", "optimize token usage", or…

rsalmn/ExtremeRouter · 81 tokens

extreme-router-refactor

Code refactoring, tech debt cleanup, and code review expertise for ExtremeRouter. Use when cleaning up code, fixing bugs, reviewing PRs, identifying tech debt, or when the user asks to "improve this code", "fix this mess", "why is this broken", "make this cleaner", or mentions code smells, duplication, or poor…

rsalmn/ExtremeRouter · 78 tokens

extremerouter-stt

Speech-to-text via ExtremeRouter /v1/audio/transcriptions using OpenAI Whisper / Groq / Gemini / Deepgram / AssemblyAI / NVIDIA / HuggingFace models. Use when the user wants to transcribe audio, convert speech to text, or get subtitles from audio files.

rsalmn/ExtremeRouter · 64 tokens

extremerouter-web-search

Web search via ExtremeRouter /v1/search using Tavily / Exa / Brave / Serper / SearXNG / Google PSE / Linkup / SearchAPI / You.com / Perplexity. Use when the user wants to search the web, look up information, find articles, or query a search engine.

rsalmn/ExtremeRouter · 73 tokens