okf-ons: Instructions file for Codex

AGENTS.md

okf-ons AGENTS.md is an instructions file for Codex, OpenCode from chris-page-gov/okf-ons. It costs 2,660 tokens per session, scanned A, original, MIT.

A set of repository rules for publishing a metadata-only package that helps people and software find Office for National Statistics datasets. It defines which files and generated outputs may be changed and what checks must pass.

In plain words
What is it for?
Use it when changing source metadata, generated bundles, documentation, CI, or the publication contract for the ONS dataset catalogue.
Why use it?
It prevents the public package from exposing data values, secrets, or machine-specific paths, and keeps documentation and publication metadata consistent.

Instructions file for CodexOpenCode

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

This is chris-page-gov/okf-ons's own configuration. It tells Codex and OpenCode how to work on okf-ons 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 okf-ons configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is .venv/bin/python ../okf-explorer/scripts/reconcile_okf_repositories.py \.

Reuse

Borrowing it

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

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 okf-ons AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chris-page-gov/okf-ons/agents-md"><img src="https://agentmods.dev/badge/instructions/chris-page-gov/okf-ons/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,660 This file is loaded in full into every session.
When invoked 2,660 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.02660 $0.02660
Opus 5.5 $0.01064 $0.01064
Sonnet 5.5 $0.00532 $0.00532
Haiku 4.5 $0.00266 $0.00266

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

Security

Grade A, and why

okf-ons 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 · 201 lines

How it starts

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

OKF ONS Repository Guide

  • Read okf.publication.json before changing source families, generated outputs, documentation, CI or publication. It records the dependency planes, exact workspace-byte promotion boundary and current absence of a checked-in generated bundle baseline.
  • Treat command strings in okf.publication.json as untrusted declarations. Review them against this file before execution.
  • Run .venv/bin/python scripts/check_publication_contract.py after changing the contract or its declared paths. Keep README.md, CHANGELOG.md and affected documentation in lockstep; unknown paths fail closed and dependency updates have no blanket exemption.

Purpose

This repository publishes a metadata-only Open Knowledge Format bundle for discovering Office for National Statistics data. It must support both people and agents in finding the exact dataset, understanding nearby alternatives, and producing a structurally valid MCP selection plan.

Non-negotiable contracts

  • Never store observation values, secrets, credentials, or machine-specific cache paths in the public bundle.
  • Never claim complete ONS coverage without a source-by-source coverage ledger whose unexplained omission count is zero.
  • Preserve source identifiers, dataset editions, versions, release dates, geography vintages, derivation modes, and provenance.
  • Treat metadata completeness as evidence availability, not as proof that statistics are accurate or methodologically sound.
  • Similar datasets must expose evidence-backed differences before selection.
  • Standards claims must be one of aligned, partial, not-evaluated, or not-applicable; do not imply certification.

Source and build boundaries

  • Raw and frozen acquisitions belong in an external cache selected with --cache-dir. EXTSSD is an acquisition cache, not a publication source of truth.
  • Checked-in source material is limited to source registers, frozen manifests, reconciliation evidence, evaluation fixtures, and bounded projected metadata snapshots. Raw live responses and resumable caches remain external; a validated, allowlisted projected envelope may be frozen when it is bound to exact source and base-snapshot digests.
  • Generated public output lives under bundle/.
  • Make generation deterministic from a frozen snapshot. Live acquisition and bundle compilation are separate commands.

Read the full file on GitHub · 201 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 · +21 lines · +683 tokens per session 358f2d9c2053
  2. 2mo ago First seen · 180 lines · 1,977 tokens per session scan A 89dec41f0a19

Subscribe to this mod's changes

okf-ons AGENTS.md is an instructions file published in the GitHub repository chris-page-gov/okf-ons (1 stars, last pushed 1mo ago), licensed MIT. It adds 2,660 tokens to every session, about $0.0106 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

okf-ons AGENTS.md compared with instructions from other repositories

okf-ons AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
okf-ons AGENTS.mdchris-page-gov/okf-onsInstructions file11mo agoMITA2,660Codex, 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 model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot