scavi: Instructions file for Codex

AGENTS.md

scavi AGENTS.md is an instructions file for Codex, OpenCode from hsr88/scavi. It costs 1,830 tokens per session, scanned B, original, MIT.

A set of instructions for AI coding assistants working on Scavi, an open-source tool that checks whether an agent's project context matches the codebase.

In plain words
What is it for?
Use it when developing or maintaining Scavi, especially when deciding how the tool should inspect repositories or when following its product and engineering rules.
Why use it?
It tells agents how Scavi works and sets engineering priorities, including using direct checks from files, configuration, Git, and code parsing when those can answer a question.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hsr88/scavi/agents-md"><img src="https://agentmods.dev/badge/instructions/hsr88/scavi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,830 This file is loaded in full into every session.
When invoked 1,830 The same file — it is already loaded in full.
Security scan B 1 finding. 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.01830 $0.01830
Opus 5.5 $0.00732 $0.00732
Sonnet 5.5 $0.00366 $0.00366
Haiku 4.5 $0.00183 $0.00183

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

Security

Grade B, and why

scavi AGENTS.md scanned grade B with 1 finding 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

* execute arbitrary commands extracted from documentation
AGENTS.md · 477 lines

How it starts

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

Scavi — Agent Instructions

Scavi is an open-source context linter for AI coding agents.

The context linter for AI coding agents. Keep your agents in sync with your code.

These instructions apply to AI coding agents working inside the Scavi repository.


Core principle

Scavi should never use an LLM when the repository can provide a deterministic answer.

This is the most important architectural rule in the project.

Before introducing an LLM call, ask:

  1. Can this be determined from the filesystem?
  2. Can this be determined from a manifest or configuration file?
  3. Can this be determined from Git metadata?
  4. Can this be determined through static parsing?
  5. Can this be determined through deterministic repository search?

If the answer to any of these is yes, do not use an LLM.

Examples of deterministic checks:

  • whether a referenced path exists
  • whether a package script exists
  • which package manager the repository uses
  • whether a dependency is installed
  • what version is declared in a manifest
  • whether a referenced file exists
  • whether two context files give conflicting package-manager instructions

LLMs are reserved for claims that require semantic interpretation.


Product behavior

Scavi validates instructions intended for AI coding agents against the actual repository.

Initial context formats include:

AGENTS.md
CLAUDE.md
GEMINI.md
.github/copilot-instructions.md
.cursor/rules/*.mdc

Scavi should detect:

  • stale instructions
  • invalid paths
  • invalid commands
  • outdated dependency/version claims
  • package-manager mismatches
  • missing referenced files
  • conflicting instructions across context files
  • semantic claims that no longer match implementation

Engineering priorities

When making implementation decisions, prioritize in this order:

  1. correctness
  2. low false-positive rate
  3. explainability
  4. deterministic behavior
  5. privacy
  6. performance
  7. extensibility

A context linter that produces noisy warnings will be disabled.

Read the full file on GitHub · 477 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 First seen · 477 lines · 1,830 tokens per session scan B a169e53adc4f

Subscribe to this mod's changes

scavi AGENTS.md is an instructions file published in the GitHub repository hsr88/scavi (1 stars, last pushed 2mo ago), licensed MIT. It adds 1,830 tokens to every session, about $0.0073 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

scavi AGENTS.md compared with instructions from other repositories

scavi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scavi AGENTS.mdhsr88/scaviInstructions file12mo agoMITB1,830Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
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