mason: Instructions file for Codex

AGENTS.md

mason AGENTS.md is an instructions file for Codex, OpenCode from rockcrafters/mason. It costs 1,178 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Mason, a portable collection of coding-agent skills and commands for Chisel and related work. They explain the repository layout, installation behavior, and how to work with release slices.

In plain words
What is it for?
Use them when maintaining Mason, installing its skills, or writing and reviewing Chisel release-slice definitions.
Why use it?
They help agents place files correctly and follow the project’s conventions when creating or reviewing changes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

This is rockcrafters/mason's own configuration. It tells Codex and OpenCode how to work on mason itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mason configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rockcrafters/mason. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rockcrafters/mason/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/rockcrafters/mason

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rockcrafters/mason/agents-md/github.svg)](https://agentmods.dev/instructions/rockcrafters/mason/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rockcrafters/mason/agents-md"><img src="https://agentmods.dev/badge/instructions/rockcrafters/mason/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mason AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rockcrafters/mason/agents-md"><img src="https://agentmods.dev/badge/instructions/rockcrafters/mason/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,178 This file is loaded in full into every session.
When invoked 1,178 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01178 $0.01178
Opus 5.5 $0.00471 $0.00471
Sonnet 5.5 $0.00236 $0.00236
Haiku 4.5 $0.00118 $0.00118

Measured 2mo ago against content hash 60b888e1e63b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mason 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 2mo 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 · 35 lines

How it starts

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

mason

agent kit for chisel / rocks work. a cross-agent skill bundle, portable across claude code, pi, opencode, copilot, and codex.

each capability area is its own skill under mason/skills/. today there are two: mason (the /mason entry point -- routes a request to the right skill, or prints usage) and the substance:

chisel-releases

working on canonical/chisel-releases. command-per-file; commands:

  • write-slice -- authors + tests + commits chisel slice definition files (SDFs). does not open PRs.
  • review-slice -- read-only review of SDFs against chisel conventions, CI checks, and forward-port rules.

@./mason/skills/chisel-releases/SKILL.md

lives under ./mason/skills/chisel-releases/: commands/, helpers under scripts/, command index schemas/commands.manifest.yaml, and -- once installed -- shared reference shared/CHISEL.md. paths inside command files are relative to the skill's own directory (or, for repo paths like slices/, to the chisel-releases checkout being worked on).

shared/CHISEL.md is not committed -- the source of truth is ./mason/_shared/CHISEL.md, and cli.js materialises it as <skill>/shared/ when installing each skill. in this repo, read/edit mason/_shared/CHISEL.md directly; a mason/skills/*/shared/ dir here is gitignored install fallout, not source.

the deterministic scripts are the backbone, so the commands don't rely on the agent remembering conventions or hand-rolling boilerplate:

  • inspect / author: orientation (where am i, which release/format, which tools are available), deb-list.py (files + deps inside a .deb; --sdf groups them into a draft SDF -- bins/libs/config/headers/var/copyright, clutter dropped, multiarch dirs globbed, copyright wired (incl. shared-copyright doc-dir symlinks), sorted, ambiguous files left as unplaced comments -- as a deterministic starting point the author refines), try-cut (chisel cut into a temp root), scaffold-test.py (emit a spread task.yaml skeleton -- one fresh rootfs per binary-bearing slice, a chroot line per declared binary, so the author fills real functional checks not boilerplate).
  • check: check-slice.py (static conventions: sorting, naming, absolute paths, copyright presence, clutter exclusion, arch names, version-gated fields, hint length/style), check-test.py (binary test coverage: warns on no test or a test exercising none of the binaries, else an info summary of untested binaries), check-diff.py (append-only regressions -- removed SDF / slice / path -- the removed-slices CI gate; file-pair or --base <ref> via git).
  • assemble: review-diff.py --base <ref> finds the changed SDFs in a diff, runs the three checkers, prints findings by severity with a verdict, exits non-zero on any block. this is the CI-callable PR-review bot; it needs no agent.

Read the full file on GitHub · 35 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. 2mo ago First seen · 35 lines · 1,178 tokens per session scan A 60b888e1e63b

Subscribe to this mod's changes

mason AGENTS.md is an instructions file published in the GitHub repository rockcrafters/mason (3 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,178 tokens to every session, about $0.0047 per session on Opus 5.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

mason AGENTS.md compared with instructions from other repositories

mason AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mason AGENTS.mdrockcrafters/masonInstructions file33mo agoApache-2.0A1,178Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot