albucore AGENTS.md

albucore AGENTS.md is an instructions file for Codex, OpenCode from albumentations-team/albucore. It costs 2,394 tokens per session, scanned A, original, MIT.

Repository instructions for Albucore, an image-processing library that provides low-level operations used by AlbumentationsX. They describe its image shapes, supported data types, performance choices, and local development guidance.

In plain words
What is it for?
Use them when editing Albucore code, choosing or benchmarking image-processing backends, handling grayscale images, and following its documentation, decorators, and development practices.
Why use it?
They help a coding agent make changes that match the library’s conventions and avoid incorrect image dimensions, unsupported data types, or slower implementations.

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/albumentations-team/albucore/agents-md
Clone the repo
git clone --depth 1 https://github.com/albumentations-team/albucore

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/albumentations-team/albucore/agents-md.svg)](https://agentmods.dev/instructions/albumentations-team/albucore/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/albumentations-team/albucore/agents-md"><img src="https://agentmods.dev/badge/instructions/albumentations-team/albucore/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,394 This file is loaded in full into every session.
When invoked 2,394 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.02394 $0.02394
Opus 5 $0.01197 $0.01197
Sonnet 5 $0.00479 $0.00479
Haiku 4.5 $0.00239 $0.00239

Measured 5d ago against content hash 0e38b925b45f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

albucore 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 5d 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 · 278 lines

How it starts

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

Codex AI Development Guidelines for Albucore

This document provides guidelines and conventions for AI assistants (particularly Codex) when working on the Albucore codebase.

Project Overview

Albucore is a high-performance image processing library that provides optimized atomic functions for image manipulation. It serves as the foundation for AlbumentationsX and focuses on:

  • Maximum performance through multiple backend implementations (NumPy, OpenCV, custom)
  • Supported dtypes: uint8 and float32 only (no float64)
  • Backend routing is based ONLY on performance — benchmark before choosing. If LUT is slower, don't use it.
  • Consistent API across different image types and shapes

Core Documentation

Please familiarize yourself with these key documents:

  1. Image Shape Conventions - CRITICAL rules about image shapes

    • All images must have an explicit channel dimension
    • Grayscale images use shape (H, W, 1), not (H, W)
    • Consistent dimension indexing: shape[-1] is channels, shape[-2] is width, shape[-3] is height
  2. Decorators - Decorator usage and patterns

    • @preserve_channel_dim - Maintains single-channel shape
    • @clipped - Clips to valid dtype range
    • @float32_io / @uint8_io - Type conversion wrappers
  3. Performance Optimization - Performance best practices

    • LUT operations and float32 dtype management
    • Backend selection strategies
    • Memory layout considerations
    • Benchmarking guidelines
  4. Public API - Public routers, star exports, and albucore.functions compatibility shims

  5. PyTorch Optimization - Eager CPU Torch contracts, full-path benchmarks, Tensor/NumPy bridge costs, profiling, allocation, layout, and threading decisions

  6. NumKong Performance - NumKong vs OpenCV/NumPy/LUT benchmark tables and methodology

Read the full file on GitHub · 278 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. 5d ago First seen · 278 lines · 2,394 tokens per session scan A 0e38b925b45f

Subscribe to this mod's changes

albucore AGENTS.md is an instructions file published in the GitHub repository albumentations-team/albucore (123 stars, last pushed 8d ago), licensed MIT. It adds 2,394 tokens to every session, about $0.0120 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.