blazediff: Instructions file for Codex

AGENTS.md

blazediff AGENTS.md is an instructions file for Codex, OpenCode from teimurjan/blazediff. It costs 1,167 tokens per session, scanned A, original, MIT.

Project-specific instructions for BlazeDiff, a monorepo, meaning one repository that contains multiple related projects, for comparing images and objects.

In plain words
What is it for?
Guiding edits across the Rust and TypeScript parts of BlazeDiff, preserving project conventions, using the required CLI workflows, and checking package-specific behavior.
Why use it?
It keeps agent work consistent with the repository’s rules, including which files must stay synchronized and which commands or changes are prohibited.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/teimurjan/blazediff/agents-md"><img src="https://agentmods.dev/badge/instructions/teimurjan/blazediff/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,167 This file is loaded in full into every session.
When invoked 1,167 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.01167 $0.01167
Opus 5.5 $0.00467 $0.00467
Sonnet 5.5 $0.00233 $0.00233
Haiku 4.5 $0.00117 $0.00117

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

Security

Grade A, and why

blazediff 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 10d 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 · 41 lines

How it starts

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

BlazeDiff Agent Rules

Monorepo for image and object diffing. pnpm workspaces. Rust core in crates/blazediff/, TS packages in packages/, agent in packages/agent/.

Hard rules

  • No em dashes. Anywhere. Commits, PRs, code comments, docs, chat output. Use a period, comma, parens, or colon.
  • Never edit .blazediff/manifest.json by hand. Drive it through the agent CLI.
  • Never skip pre-commit hooks (--no-verify, --no-gpg-sign). Fix the underlying issue.
  • Never force-push to main or amend published commits.
  • Keep these three in sync; edit all of them together:
    • skill/blazediff/SKILL.md (authoritative playbook)
    • apps/website/app/docs/agent/page.mdx
    • packages/agent/README.md
  • Don't add watershed or distance-transform to the interpret pipeline. Morph close + connected components is sufficient.
  • Don't restructure interpret into atomic-regions / semantic-groups / score-labels. Improve evidence extraction, not topology.
  • Don't add deno.json to @blazediff/core-native-*, @blazediff/milo-native-*, @blazediff/codec-png-native-*, @blazediff/bun, @blazediff/vitest, @blazediff/jest, @blazediff/ui, @blazediff/react. They stay NPM-only.
  • Verify JSR slow-types per package (cd packages/<pkg> && npx jsr publish --dry-run). Never from the workspace root.
  • When iterating on diff algorithms, use --fixtures=<small-subset> and --iterations=2. Run the full suite only before merging.
  • After Rust changes, verify both binding feature builds for the crate you touched: cargo check -p <crate> --features napi and --features python (blazediff, blazediff-ssim, blazediff-interpret and blazediff-milo each ship both). blazediff-png ships napi and wasm: check --features napi and --no-default-features --features wasm --target wasm32-unknown-unknown.
  • JSR-only Node imports (e.g. node:buffer in @blazediff/core) live in packages/<pkg>/jsr.patch. Don't commit source with the patch applied; scripts/checks/check-jsr-patches-clean.sh enforces this in pre-commit.

Read the full file on GitHub · 41 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. 10d ago Changed · +59 tokens per session 9196693e7436
  2. 17d ago Changed · +1 lines · +60 tokens per session c6dbd01dc905
  3. 1mo ago Changed · +1 lines · +138 tokens per session 91e7d4394c89
  4. 2mo ago First seen · 39 lines · 910 tokens per session scan A 9e1b5d29c8fe

Subscribe to this mod's changes

blazediff AGENTS.md is an instructions file published in the GitHub repository teimurjan/blazediff (354 stars, last pushed yesterday), licensed MIT. It adds 1,167 tokens to every session, about $0.0047 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

blazediff AGENTS.md compared with instructions from other repositories

blazediff AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blazediff AGENTS.mdteimurjan/blazediffInstructions file354yesterdayMITA1,167Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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