stagecraft AGENTS.md

stagecraft AGENTS.md is an instructions file for Codex, OpenCode from telus-labs/stagecraft. It costs 1,093 tokens per session, scanned A, original, MIT.

A project guide for coding agents working on the Stagecraft codebase, covering setup, architecture, file locations, tests and rules that protect important design decisions.

In plain words
What is it for?
Use it when changing Stagecraft itself, especially dispatch logic, host adapters, tests or documentation.
Why use it?
It gives an agent the required reading order and project rules, reducing the risk of breaking core contracts or using the wrong test and lint commands.

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/telus-labs/stagecraft/agents-md
Clone the repo
git clone --depth 1 https://github.com/telus-labs/stagecraft

Made for: Codex, OpenCode.

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 stagecraft AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/telus-labs/stagecraft/agents-md.svg)](https://agentmods.dev/instructions/telus-labs/stagecraft/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/telus-labs/stagecraft/agents-md"><img src="https://agentmods.dev/badge/instructions/telus-labs/stagecraft/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,093 This file is loaded in full into every session.
When invoked 1,093 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.01093 $0.01093
Opus 5 $0.00547 $0.00547
Sonnet 5 $0.00219 $0.00219
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

stagecraft 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 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.md · 67 lines

How it starts

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

AGENTS.md

Host-neutral context for any LLM working on the Stagecraft codebase itself. (The CLI binary is devteam; the project is Stagecraft.) If you are using Stagecraft to drive another project's pipeline, read README.md instead.

Start here (in order)

  1. CONTRIBUTING.md — setup, recipes for common changes, conventions, and the doc-update checklist.
  2. ARCHITECTURE.md — 15 locked design decisions. Do not break these casually.
  3. core/adapters/host-adapter.md — the contract every adapter must satisfy.
  4. docs/walkthroughs/stage-04-split-host.md — stress-test trace that locked the multi-workstream dispatch contract. Read before touching dispatch logic.

Test and lint commands

npm test                                              # full offline test suite
npm run consistency                                   # cross-artifact drift check
npx eslint .                                          # linter
CI=true DEVTEAM_HEADLESS_COMMAND=cat npm test         # full CI run (no host CLI needed)

DEVTEAM_HEADLESS_COMMAND=cat stubs the host CLI for headless tests without claude or codex installed.

Where things live

Concern Path
Stage definitions, tracks, role assignments core/pipeline/stages.js
Routing config loader core/config.js
Adapter discovery + per-(stage, role) resolution core/router.js
Dispatch logic (runStage / next / merge) core/orchestrator.js
Gate validator + per-stage schemas core/gates/
Guards (stoplist, security-heuristic, write-audit) core/guards/
Role briefs (single source of truth) roles/*.md
Rules docs rules/*.md
Task skills skills/*/SKILL.md
Per-host adapters hosts/<name>/{adapter.js, capabilities.json, install/}
CLI entry point bin/devteam

Load-bearing contracts (do not break without an ADR)

Read the full file on GitHub · 67 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 · 67 lines · 1,093 tokens per session scan A 4a154b00ec7a

Subscribe to this mod's changes

stagecraft AGENTS.md is an instructions file published in the GitHub repository telus-labs/stagecraft (6 stars, last pushed yesterday), licensed MIT. It adds 1,093 tokens to every session, about $0.0055 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-31.

Related

Other instructions, from other repositories

parallel-code CLAUDE.md

Claude Code instructions for johannesjo/parallel-code, covering parallel code, stack, commands, project structure and conventions.

johannesjo/parallel-code · 257 tokens

PokeTokenBar CLAUDE.md

Claude Code instructions for chattymin/PokeTokenBar, covering poketokenbar — claude 프로젝트 지침, 참조 문서 (필요할 때 읽는다), 기여 언어 규약 (오픈소스 대비 — english first), 릴리스 (자연어 트리거) and 확장 규약 (새 프로바이더/툴 추가 시).

chattymin/PokeTokenBar · 1,918 tokens

semantix CLAUDE.md

Claude Code instructions for Gnosil/semantix, covering 项目规则(claude code), 1. 改动须经用户过目;由 claude 提交到分支 + pr,用户 review 后合并 and 2. 本地实验区:论文数据与实验材料不进 github.

Gnosil/semantix · 561 tokens

cc-statistics CLAUDE.md

Instructions for androidZzT/cc-statistics, covering claude.md, project, setup, usage and architecture.

androidZzT/cc-statistics · 912 tokens

intuitive-flow AGENTS.md

AGENTS.md instructions for MiaoDX/intuitive-flow, covering codex guide, environment, delegation and verification, development and testing and preferred skills and workflow routing.

MiaoDX/intuitive-flow · 1,443 tokens

SubFrame AGENTS.md

AGENTS.md instructions for Codename-11/SubFrame, covering subframe - subframe project, core working principle, relationship to native ai tools, session start and concurrent work & worktrees.

Codename-11/SubFrame · 3,973 tokens