samples: Instructions file for Codex

AGENTS.md

samples AGENTS.md is an instructions file for Codex, OpenCode from abap2UI5/samples. It costs 32,358 tokens per session, scanned A, original, MIT.

Repository instructions for coding agents working on abap2UI5 Samples, a collection of demo apps for the abap2UI5 framework. They define the project layout, ABAP code style, language, and pull-request rules.

In plain words
What is it for?
Use them when changing sample apps, reorganising packages, writing documentation or commits, and preparing pull requests.
Why use it?
They give agents one clear source of project rules, reducing inconsistent code, misplaced files, and unclear pull requests.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/abap2ui5/samples/agents-md"><img src="https://agentmods.dev/badge/instructions/abap2ui5/samples/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32,358 This file is loaded in full into every session.
When invoked 32,358 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.32358 $0.32358
Opus 5.5 $0.12943 $0.12943
Sonnet 5.5 $0.06472 $0.06472
Haiku 4.5 $0.03236 $0.03236

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

Security

Grade A, and why

samples 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 25d 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 · 2,111 lines

How it starts

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

AGENTS.md

Single source of truth for agents working on abap2UI5 Samples — a collection of demo apps for the abap2UI5 framework. This file owns everything: the folder scheme, the compatibility model, the overview generation rules, and the ABAP code style / app-structure conventions.

These instructions OVERRIDE any default behavior and must be followed exactly.

Language

This entire project is in English. All code, comments, commit messages, PR titles, PR descriptions, and any other text must be written in English.

Pull requests

  • The PR title becomes the squash-merge commit subject — make it describe the change. Before merging, replace any auto-generated title (e.g. a branch name like Claude/...-abc123) with a short descriptive English title that states what actually changed.
  • One topic per PR. A structural change (a generator, a gate, a workflow, this file) must not ride along in a PR titled for an unrelated sample — split it into its own PR so the history stays searchable.

1. Repository layout

Everything lives in one flat package (abapGit FOLDER_LOGIC=PREFIX, STARTING_FOLDER=/src/): every sample is a class directly in src/, beside z2ui5_cl_smp_app_000, the overview app (§3), which is an index and not a sample. There are no subpackages, and no folders under src/ at all.

src/   "abap2UI5 - samples"   every sample, flat — one class per sample, nothing else

node scripts/check-agents-structure.mjs (npm run check:agents, and the agents_structure job on every pull request) holds the tree to that: it refuses a folder under src/, and compares the quoted name above against the <CTEXT> of src/package.devc.xml. A new package needs this section, scripts/lib/scan-samples.mjs and that gate changed in the same commit — otherwise the classes in it are in no catalogue and thirteen gates stay green (see check-orphan-samples.mjs, which is the other half of that lesson).

The subpackages are gone

Read the full file on GitHub · 2,111 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. 25d ago Changed · +2 lines · +36 tokens per session ec41b5e280da
  2. 26d ago Changed · +4 lines · +66 tokens per session 777d8c5ae4af
  3. 28d ago Changed · +60 lines · +1,477 tokens per session 460317e0c816
  4. 1mo ago Changed · +15 lines · +331 tokens per session b2866ae4ade1
  5. 1mo ago Changed · +12 lines · +243 tokens per session 60f743fb37a9
  6. 1mo ago Changed · +4 lines · +85 tokens per session 7e54998ff59a
  7. 1mo ago Changed · -58 lines · -397 tokens per session d09dea1634a1
  8. 1mo ago Changed · +112 lines · +1,606 tokens per session scan C → A f07eac79b13d
  9. 1mo ago Changed · -1 tokens per session a752f9235a44
  10. 1mo ago First seen · 1,960 lines · 28,912 tokens per session scan C a61ff723225d

Subscribe to this mod's changes

samples AGENTS.md is an instructions file published in the GitHub repository abap2UI5/samples (57 stars, last pushed 3d ago), licensed MIT. It adds 32,358 tokens to every session, about $0.1294 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-30.

Related

samples AGENTS.md compared with instructions from other repositories

samples AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
samples AGENTS.mdabap2UI5/samplesInstructions file573d agoMITA32,358Codex, OpenCode
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
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode