Puppetmaster AGENTS.md

Instructions for coding agents working in the Puppetmaster repository, including how to identify worker roles and when a task should use multiple agents.

In plain words
What is it for?
Use them when contributing to Puppetmaster or its related projects, especially when deciding whether to work directly or coordinate a group of agents.
Why use it?
They prevent workers from starting unnecessary agent groups and explain the repository's expected workflow for interactive agents.

Instructions file for CodexOpenCode

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/professorpalmer/puppetmaster/agents-md
Clone the repo
git clone --depth 1 https://github.com/professorpalmer/Puppetmaster

Made for: Codex, OpenCode.

Per session 4,520 This file is loaded in full into every session.
When invoked 4,520 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.04520 $0.04520
Opus 5 $0.02260 $0.02260
Sonnet 5 $0.00904 $0.00904
Haiku 4.5 $0.00452 $0.00452

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

Security

Grade A, and why

Puppetmaster AGENTS.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 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.

AGENTS.md · 204 lines

How it starts

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

AGENTS.md

Repo-level guidance for AI coding agents (Cursor, Claude Code, Codex, etc.) working in this repository. Cursor users see the same directive via .cursor/rules/puppetmaster-workflow.mdc.

First: are you a Puppetmaster worker?

If your prompt was issued by Puppetmaster, everything below about starting a swarm does not apply to you. You are the swarm. Do the analysis or the edit yourself, directly, and return the artifacts your prompt asks for.

You are a Puppetmaster worker if your prompt contains any of:

  • a Puppetmaster artifact contract: / Return only Puppetmaster artifact JSON block,
  • a Role: <role> + Goal: <goal> header,
  • an instruction to finish by calling submit_findings or submit_report.

Workers are spawned by puppetmaster.worker_runtime as plain agent CLIs. They have no Puppetmaster MCP tools, so "start a swarm before exploring" is an instruction they cannot follow — following it costs a full context load and returns a request for clarification instead of findings. Roll your own grep/read loop; that is your job.

The rest of this file addresses an interactive agent working with the user, which has the MCP tools available. Pi is in that class: a TUI/pilot via the bundled @puppetmaster/pi-pilot package (puppetmaster install-pi-mcp / setup --platforms pi). OMP / oh-my-pi is the same class via native MCP (puppetmaster install-omp-mcp / setup --platforms omp or ohmypi; writes ~/.omp/agent/mcp.json). Use start_implement / start_agentic / start_prewalk, consume artifacts, nuke the job. Do not lease pi or omp as a worker.

Default subagent runtime: Puppetmaster

When this repo is open — and you are not a Puppetmaster worker (see above) — Puppetmaster's MCP tools are the primary path for fanning out work. Do not roll your own grep/read exploration loops or invoke ad-hoc subagents when a Puppetmaster swarm is available.

When to start a Puppetmaster swarm (do this by default)

For any request that involves more than a single trivial change, start a Puppetmaster swarm before spending tokens on your own exploration:

Read the full file on GitHub · 204 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 · 204 lines · 4,520 tokens per session scan A 3ff5bb80bc8e

Subscribe to this mod's changes

Puppetmaster AGENTS.md is an instructions file published in the GitHub repository professorpalmer/Puppetmaster (349 stars, last pushed 3d ago), licensed MIT. It adds 4,520 tokens to every session, about $0.0226 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

codedb AGENTS.md

AGENTS.md instructions for justrach/codedb, covering codedb agent guidelines, what codedb is (and isn't), review guidelines, pre-merge verification and security-sensitive areas.

justrach/codedb · 509 tokens

honey-for-devs copilot-instructions.md

Instructions for Green-PT/honey-for-devs, covering honey (i shrunk the ai), intensity, lever 1 — minimum code that needs to exist, never cut (lazy ≠ broken) and lever 2 — say less about it.

Green-PT/honey-for-devs · 3,168 tokens

claude-code-blueprint CLAUDE.md

Instructions for faizkhairi/claude-code-blueprint, covering global claude behavior rules, verify-after-complete (mandatory), what to verify depends on what was built, verification mindset and after verification.

faizkhairi/claude-code-blueprint · 3,009 tokens

claude-code-blueprint AGENTS.md

Instructions for faizkhairi/claude-code-blueprint, covering agents.md: repository orientation for ai assistants, what this repo is, what this repo is not, repository layout and how to help the user.

faizkhairi/claude-code-blueprint · 1,135 tokens

agent-native-setup AGENTS.md

Instructions for luca-mastrostefano/agent-native-setup, covering agent-native-setup — agent contract, navigation and command surface.

luca-mastrostefano/agent-native-setup · 400 tokens

agent-skills AGENTS.md

Instructions for powabase-ai/agent-skills, covering agents.md, repository structure, prerequisites & commands, writing skill.md files and frontmatter (required).

powabase-ai/agent-skills · 1,025 tokens