context-surface-analyzer: Instructions file for Codex

AGENTS.md

context-surface-analyzer AGENTS.md is an instructions file for Codex, OpenCode from tetracoralla/context-surface-analyzer. It costs 531 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Context Surface Analyzer, a tool that measures the structure of an explicitly supplied catalogue of agent tools. They define factual boundaries, shared analysis rules, and change requirements.

In plain words
What is it for?
Guiding changes to the repository, including its command-line interface, MCP server, and web adapters; checking byte counts, tool and schema counts, name collisions, duplicate schemas, and labelled token measurements.
Why use it?
They prevent the project from treating reports as proof of usefulness or from adding unsupported behavior such as filesystem crawling, network calls, or automatic tool routing.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 context-surface-analyzer AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tetracoralla/context-surface-analyzer/agents-md"><img src="https://agentmods.dev/badge/instructions/tetracoralla/context-surface-analyzer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 531 This file is loaded in full into every session.
When invoked 531 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.00531 $0.00531
Opus 5.5 $0.00212 $0.00212
Sonnet 5.5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

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

Security

Grade A, and why

context-surface-analyzer 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 2mo 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 · 48 lines

How it starts

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

Context Surface Analyzer repository contract

Current source ownership is context-surface-analyzer in Agent Host. This repository retains historical source. Apply new implementation and release work in Agent Host; the contract below describes this retained implementation.

Read docs/PRODUCT_MODEL.md and docs/REVIEW_CONTRACT.md before changing behavior, schemas, limits, or claims.

Authority and boundaries

  • Current source, executable tests, and current CLI/MCP/web runtime control factual claims. Generated reports do not certify utility, safety, adoption, or completeness.
  • The shared core in src/core.js owns analysis and comparison semantics. CLI, MCP, and web routes are adapters and must not independently implement them.
  • Inputs are explicit bounded snapshots. Do not add passive observation, filesystem crawling, host discovery, credentials, network calls, model calls, automatic routing, enable/disable actions, or retirement recommendations.
  • Exact UTF-8 byte counts are for canonical JSON defined by this product. They are not token estimates. Token measurements are caller-supplied observations and remain labeled by source, provider, model, serialization, and tokenizer version when supplied.
  • Name collisions are exact and case-sensitive. Duplicate schemas require exact canonical equality. Do not silently upgrade these observations into semantic similarity or product value judgments.
  • This MVP declares no provider-neutral Capability Profile or Procedure Profile. Do not create one without a separate standardization decision.

Change rules

  • Keep snapshot fields and transport arguments closed and reject unknown keys.
  • Keep all requests and complete responses cumulatively bounded. Every relaxed limit requires a current consumer and a negative regression test.
  • Preserve one-call dominant Agent routes: context.analyze and context.diff.
  • Keep MCP annotations read-only, non-destructive, idempotent, and closed-world.
  • Keep the MCP carrier's 2025 legacy-era boundary explicit. Do not advertise 2026 modern-era support without the required per-era negotiation and wire codec through a portable installed runtime.
  • Keep the human surface local, narrow, and free of Agent protocol metadata.
  • Add the smallest negative regression for every repaired guard or ambiguity.
  • Do not commit, push, publish, install globally, or edit a sibling repository without explicit owner authorization.

Read the full file on GitHub · 48 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. 2mo ago Changed · +4 lines · +52 tokens per session d25e4f5940eb
  2. 2mo ago First seen · 44 lines · 479 tokens per session scan A 739d062b664c

Subscribe to this mod's changes

context-surface-analyzer AGENTS.md is an instructions file published in the GitHub repository tetracoralla/context-surface-analyzer (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 531 tokens to every session, about $0.0021 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

context-surface-analyzer AGENTS.md compared with instructions from other repositories

context-surface-analyzer AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
context-surface-analyzer AGENTS.mdtetracoralla/context-surface-analyzerInstructions file02mo agoApache-2.0A531Codex, 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