agents: Instructions file for Codex

AGENTS.md

agents AGENTS.md is an instructions file for Codex, OpenCode from commerce-atoms/agents. It costs 666 tokens per session, scanned A, original, MIT.

A set of instructions for developing the @commerce-atoms/agents package, which distributes AI rules and tools for online storefronts.

In plain words
What is it for?
Use it when editing the package, its command-line tools, or its shipped kit, while following the right instructions for each area.
Why use it?
It prevents confusion between the package's own source code and the storefront files it ships to other projects.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/commerce-atoms/agents/agents-md"><img src="https://agentmods.dev/badge/instructions/commerce-atoms/agents/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 666 This file is loaded in full into every session.
When invoked 666 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.00666 $0.00666
Opus 5.5 $0.00266 $0.00266
Sonnet 5.5 $0.00133 $0.00133
Haiku 4.5 $0.00067 $0.00067

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

Security

Grade A, and why

agents 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 · 32 lines

How it starts

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

AGENTS.md. @commerce-atoms/agents repo (kit authoring)

If an AI agent is reading this file, you are working on the @commerce-atoms/agents npm package itself, not a Hydrogen storefront. Read CONTRIBUTING.md before doing anything else.

What this repo is

The @commerce-atoms/agents package distributes a kit of AI rules, skills, commands, prompts, and personas to consumer storefronts. The shipped product lives under kit/ and is governed by kit/AGENTS.md. This repo's source code lives under src/ and bin/, and is governed by this file plus CONTRIBUTING.md.

The audiences and rules differ:

You're working in… Read Don't apply
src/, bin/, package.json, workflows This file + CONTRIBUTING.md kit/AGENTS.md (those rules are about Hydrogen apps)
kit/ (rules, skills, commands, prompts, personas, reference, docs) kit/AGENTS.md + kit/reference/conventions.md none

Doctrine for kit authoring

  1. The root is config; kit/ is product. Don't move kit-authoring concerns into kit/, and don't move storefront concerns into the root. If the rule wouldn't apply to a consumer, it doesn't ship.
  2. Strict TypeScript across src/ and bin/. No .js / .mjs source. No any. npm run verify must be green before push.
  3. Every shipped artefact lives in kit/INDEX.json. Missing or broken paths fail npm run lint:json in CI.
  4. Synced files have their relative links rewritten to absolute GitHub URLs at sync time. Don't pre-rewrite links in source files; let src/internal/rewrite-links.ts do it.
  5. Releases go through git tag + publish.yml (OIDC Trusted Publishing). Never npm publish from a workstation against this package. The CI path is the only audited surface.

Quick reference

Read the full file on GitHub · 32 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 30b4030e4a1d
  2. 2mo ago First seen · 32 lines · 666 tokens per session scan A 4a4f79a75125

Subscribe to this mod's changes

agents AGENTS.md is an instructions file published in the GitHub repository commerce-atoms/agents (1 stars, last pushed 1mo ago), licensed MIT. It adds 666 tokens to every session, about $0.0027 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

agents AGENTS.md compared with instructions from other repositories

agents AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents AGENTS.mdcommerce-atoms/agentsInstructions file11mo agoMITA666Codex, OpenCode
plugin-files-modegriddynamics/rosettaInstructions file370yesterdayApache-2.0A236GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot