pi-dispatch CLAUDE.md

Project instructions for working on pi-dispatch, a service that runs the pi coding agent in containers in response to schedules or forge events such as issues and pull requests.

In plain words
What is it for?
Use them before changing pi-dispatch behavior, especially when working on triggers, workers, run history, permissions, concurrency, or spending safeguards.
Why use it?
They explain the project’s boundaries and important rules, including container isolation, spending controls, and where agent behavior changes belong.

Instructions file

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 instructions/edgehero/pi-dispatch/claude-md
Clone the repo
git clone --depth 1 https://github.com/edgehero/pi-dispatch
Per session 2,501 This file is loaded in full into every session.
When invoked 2,501 The same file — it is already loaded in full.
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.02501 $0.02501
Opus 5 $0.01251 $0.01251
Sonnet 5 $0.00500 $0.00500
Haiku 4.5 $0.00250 $0.00250

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

Security

Grade A, and why

pi-dispatch CLAUDE.md 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.

CLAUDE.md · 144 lines

How it starts

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

Working on pi-dispatch

Notes for an AI agent working in this repository. Short on purpose: specs/ is the authority, and this file exists to stop you from having to discover the load-bearing parts by breaking them.

What this project is

pi-dispatch runs the pi coding agent as a service. It lives in the background and, on a cron schedule or a forge event (an issue, a comment, a pull request), opens a container that runs a flow against a repository, does the work, and shuts the container down. A panel shows the triggers, the history of every past run and the spend, and can turn the whole thing off.

pi has no queue, no concurrency control, no spend limit and, by its own README, no permission system. This project is exactly that missing operational layer and nothing else. When a change would make pi-dispatch smarter about what the agent does, it probably belongs in a skill or a flow, not here.

Two consequences worth internalising before you design anything:

  • The container is the boundary. Isolation is built by the worker's own docker run argv, so nothing an image contains can weaken it.
  • Money is the other boundary. Every gate that costs nothing runs before every gate that costs something, and a paid container starts only after all of them pass.

The shape

Path What it is
worker/ the queue consumer, the CLI (pi-dispatch), the forge hosts, doctor, service installer
receiver/ the always-on trigger edge (pi-dispatch-receiver): webhook routes and the poller
admin/ the operator console, a pi extension (/dispatch), TypeScript, bundled to dist/
image/ the job image and the in-container runner that implements the exit-code protocol
deploy/ service units, wrappers and the compose file; worker/deploy/ is the published mirror
specs/ constitution, requirements, design, interfaces, open questions. The source of truth
docs/ operator-facing reference, one file per feature or forge

Read the full file on GitHub · 144 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 · 144 lines · 2,501 tokens per session scan A 556f4626115c

Subscribe to this mod's changes

pi-dispatch CLAUDE.md is an instructions file published in the GitHub repository edgehero/pi-dispatch (163 stars, last pushed 3d ago), licensed MIT. It adds 2,501 tokens to every session, about $0.0125 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 instructions, from other repositories

Seo-Promt-Master GEMINI.md

Instructions for umutxyp/Seo-Promt-Master, covering seo prompt master, the short version, run the tool and ground rules.

umutxyp/Seo-Promt-Master · 567 tokens

platform-skills copilot-instructions.md

Instructions for nitinjain999/platform-skills, covering platform engineering instructions for github copilot, version: 1.40.0, source: https://github.com/nitinjain999/platform-skills, response contract and core principles.

nitinjain999/platform-skills · 3,564 tokens

ai-collaboration-notebook AGENTS.md

Instructions for roam-bit/ai-collaboration-notebook, covering agents.md · ai 协作错题本, 这是什么, 第一部分:协作协议(protocol.md), 🚨 开工前 30 秒自检清单(每次新任务必跑) and 跟我协作的 17 条核心规则.

roam-bit/ai-collaboration-notebook · 8,509 tokens

ExtremeRouter AGENTS.md

Instructions for rsalmn/ExtremeRouter, covering extremerouter — lead engineer agent, core philosophy, thinking process, critical thinking and coding standards.

rsalmn/ExtremeRouter · 772 tokens

Seo-Promt-Master AGENTS.md

Instructions for umutxyp/Seo-Promt-Master, covering agent instructions for this repository and before you open start.md.

umutxyp/Seo-Promt-Master · 820 tokens

kimi-responses-adapter AGENTS.md

AGENTS.md instructions for jianyun8023/kimi-responses-adapter, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.

jianyun8023/kimi-responses-adapter · 942 tokens