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 1,977 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 →

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,977 This file is loaded in full into every session.
When invoked 1,977 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.01977 $0.01977
Opus 5 $0.00988 $0.00988
Sonnet 5 $0.00395 $0.00395
Haiku 4.5 $0.00198 $0.00198

Measured 6d ago against content hash 89dec41f0a19, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 6d 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 · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 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 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 · 180 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. 6d 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 (0 stars, last pushed 19d ago), licensed MIT. It adds 1,977 tokens to every session, about $0.0099 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens