context-surface-analyzer AGENTS.md

context-surface-analyzer AGENTS.md is an instructions file for Codex, OpenCode from tetracoralla/context-surface-analyzer. It costs 479 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/tetracoralla/context-surface-analyzer/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 479 This file is loaded in full into every session.
When invoked 479 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00479 $0.00479
Opus 5 $0.00239 $0.00239
Sonnet 5 $0.00096 $0.00096
Haiku 4.5 $0.00048 $0.00048

Measured 4d ago against content hash 739d062b664c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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 · 44 lines

How it starts

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

Context Surface Analyzer repository contract

This repository is an independent provider product. 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 · 44 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. 4d 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 6d ago), licensed Apache-2.0. It adds 479 tokens to every session, about $0.0024 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.