adg: Instructions file for Codex

AGENTS.md

adg AGENTS.md is an instructions file for Codex, OpenCode from RbBtSn0w/adg. It costs 859 tokens per session, scanned A, original, MIT.

Repository instructions for adg, covering how contributors create branches, commits, pull requests, and releases.

In plain words
What is it for?
Use them when contributing code, preparing commits, opening pull requests, or working with the project's release process.
Why use it?
They explain the project's rules so changes target the right branch and pass the expected checks before review.

Instructions file for CodexOpenCode

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

This is RbBtSn0w/adg's own configuration. It tells Codex and OpenCode how to work on adg 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 adg configures →

Reuse

Borrowing it

Nothing to install: this file belongs to RbBtSn0w/adg. 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/RbBtSn0w/adg/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/RbBtSn0w/adg

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rbbtsn0w/adg/agents-md/github.svg)](https://agentmods.dev/instructions/rbbtsn0w/adg/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rbbtsn0w/adg/agents-md"><img src="https://agentmods.dev/badge/instructions/rbbtsn0w/adg/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 adg AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rbbtsn0w/adg/agents-md"><img src="https://agentmods.dev/badge/instructions/rbbtsn0w/adg/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 859 This file is loaded in full into every session.
When invoked 859 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.00859 $0.00859
Opus 5.5 $0.00344 $0.00344
Sonnet 5.5 $0.00172 $0.00172
Haiku 4.5 $0.00086 $0.00086

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

Security

Grade A, and why

adg 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 1mo 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 · 62 lines

How it starts

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

AGENTS.md

Guidance for AI agents (and humans) contributing to this repository. See CONTRIBUTING.md and docs/branching-and-release.md for the full process.

See docs/agents-spec.md for the canonical authoring and projection model and docs/hooks-strategy.md for the standards-first adapter philosophy.

Branch & PR rules

  • All pull requests must target the develop branch. Never open a PR against main. main is reserved for stable releases and is updated only by a release PR from develop.
  • Never push directly to main or develop. Both are protected; all changes land via PR + review + passing CI.
  • Branch off develop for new work: git switch develop && git pull && git switch -c <type>/<short-desc>.
  • Ensure clean base before branching: Verify local develop is strictly updated with origin/develop and clean (git status). If your work requires an unmerged PR, follow explicit stack dependency rules (pr-stacking-strategy) rather than implicitly carrying unmerged commits in a single branch.
  • The CI check Validate base branch fails any PR whose base is not develop (the only exception is the release PR develop → main).

Commit messages

  • Use Conventional Commits. The version bump, CHANGELOG.md, and GitHub Release notes are derived from them by semantic-release.
  • Type → release notes section: feat: → Added, fix:/revert: → Fixed, refactor:/perf: → Changed. chore:/test:/build:/ci:/ style: are hidden from the notes.
  • Mark breaking changes with ! or a BREAKING CHANGE: footer.

Local checks before opening a PR

npm ci
npm run typecheck
npm run build
npm test

Telemetry

  • OpenTelemetry (OTel): For every new feature or requirement added, ensure you implement corresponding OpenTelemetry instrumentation (spans, events, or metrics) to maintain observability.
  • OTel CLI Compliance: All CLI programs and external subprocess wrappers must strictly follow the official Semantic conventions for CLI programs:
    • Use SpanKind.INTERNAL for the CLI's own execution (callee spans) and SpanKind.CLIENT for subprocess calls (caller spans).
    • Span names must default to {process.executable.name} (e.g. "git", "claude") or documented low-cardinality values.
    • Correctly record all Required attributes: process.executable.name and process.exit.code.
    • Record process.pid when available (Recommended).
    • Correctly record error.type on failure spans (when process.exit.code !== 0) as Conditionally Required.
    • Do NOT collect process.executable.path — it is always PII and provides no analytical value after sanitization.
  • Telemetry Privacy: All telemetry data must comply with privacy standards—never log raw file paths, personally identifiable information (PII), or user secrets/tokens. Sanitization (e.g., sanitizeArgs()) is mandatory before collecting process.command_args.

Read the full file on GitHub · 62 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. 1mo ago Changed · +1 lines · +62 tokens per session cb7081bf9484
  2. 1mo ago Changed · -4 tokens per session 983e2697b3c6
  3. 2mo ago First seen · 61 lines · 801 tokens per session scan A 1a4a3cbe2b41

Subscribe to this mod's changes

adg AGENTS.md is an instructions file published in the GitHub repository RbBtSn0w/adg (3 stars, last pushed 2d ago), licensed MIT. It adds 859 tokens to every session, about $0.0034 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

Other instructions, from other repositories