blazediff AGENTS.md

blazediff AGENTS.md is an instructions file for Codex, OpenCode from teimurjan/blazediff. It costs 910 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

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/teimurjan/blazediff/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 910 This file is loaded in full into every session.
When invoked 910 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.00910 $0.00910
Opus 5 $0.00455 $0.00455
Sonnet 5 $0.00182 $0.00182
Haiku 4.5 $0.00091 $0.00091

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

How it starts

The opening of the file, as written. The whole thing — 39 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/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 and blazediff-interpret each ship both).
  • 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.

Quick commands

  • pnpm build (excludes website), pnpm test, pnpm typecheck, pnpm deno:test
  • pnpm check:write (biome lint + format)
  • npx @j178/prek run --all-files (full pre-commit suite)
  • cd crates && cargo test -p blazediff (Rust core)

Read the full file on GitHub · 39 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 · 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 (337 stars, last pushed 5d ago), licensed MIT. It adds 910 tokens to every session, about $0.0046 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-30.