caliper: Instructions file for Codex

AGENTS.md

caliper AGENTS.md is an instructions file for Codex, OpenCode from edonadei/caliper. It costs 673 tokens per session, scanned A, original, MIT.

Repository instructions for caliper, including contributor setup, formatting, and documentation rules. They require related documentation updates when command options, evaluation formats, judge behavior, or result schemas change.

In plain words
What is it for?
Use them when changing caliper flags, evaluation specifications, judging behavior, result data structures, or Python code that must pass Ruff checks.
Why use it?
They help keep the command-line tool, its reference material, and its formatting checks consistent after API changes.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

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

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

Security

Grade A, and why

caliper 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 16d 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 · 55 lines

How it starts

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

Caliper — agent instructions

Contributor setup, formatting, and linting details live in .github/CONTRIBUTING.md — GitHub's conventional location, not the repo root. Read it there.

Updating docs after API changes

When any of the following change, update every location below that covers it before marking the task done:

  • A caliper run CLI flag is added, removed, or renamed
  • The .eval.yaml spec format changes (new fields, removed fields, renamed keys)
  • The judge behavior changes (how expect: or assert: are evaluated)
  • The results JSON schema changes (RunMeta, AttemptRecord, etc.)

Locations to update:

  1. README.md — CLI reference table, exit codes, and any relevant prose sections
  2. docs/spec-reference.md — the full .eval.yaml format and judging rules
  3. docs/backends.md — backend setup, --model syntax, MCP support by backend
  4. docs/results.md — scoring, caliper compare, and the results JSON schema
  5. skills/evaluate-skill/REFERENCE.md — the source skill reference
  6. skills/grill-skill/REFERENCE.md — the grill-skill reference

tests/test_doc_sync.py fails when a caliper run flag is missing from (or stale in) the README table or missing from the evaluate-skill reference, and when a spec key is missing from docs/spec-reference.md. The rest of this list is still on you.

Formatting

ruff is the single formatting and linting authority for this repo, pinned to ruff==0.15.20. Run ruff format . and ruff check . before finishing. Never hand-reformat lines outside the scope of your change — the formatter is the only style authority, and manual reflow inflates diffs. CI enforces ruff format --check . and ruff check . on every PR. See .github/CONTRIBUTING.md for details.

Decision docs

This repo keeps its domain model and design decisions in version control:

  • docs/CONTEXT.md — the glossary / ubiquitous language. A glossary only: no implementation details, no specs, no scratch notes. This is where the grill-with-docs and domain-modeling skills read and write terms. In this repo it lives at docs/CONTEXT.md, not the repo root — look there.
  • docs/adr/ — Architecture Decision Records (0001-*.md, …), one short entry per hard-to-reverse, non-obvious, real-trade-off decision.

Read the full file on GitHub · 55 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. 16d ago Changed · -7 lines · -78 tokens per session e8e6de9bb7f0
  2. 24d ago Changed · +12 lines · +142 tokens per session d4f15cc7196e
  3. 1mo ago Changed · +3 lines · +71 tokens per session fe31a3838f1a
  4. 1mo ago First seen · 47 lines · 538 tokens per session scan A 46578c825b4c

Subscribe to this mod's changes

caliper AGENTS.md is an instructions file published in the GitHub repository edonadei/caliper (223 stars, last pushed yesterday), licensed MIT. It adds 673 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-30.

Related

Other instructions, from other repositories