agents AGENTS.md

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

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

Made for: Codex, OpenCode.

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. 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.00666 $0.00666
Opus 5 $0.00333 $0.00333
Sonnet 5 $0.00133 $0.00133
Haiku 4.5 $0.00067 $0.00067

Measured yesterday against content hash 4a4f79a75125, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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. yesterday 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 4mo ago), licensed MIT. It adds 666 tokens to every session, about $0.0033 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.