albucore: Instructions file for Codex

AGENTS.md

albucore AGENTS.md is an instructions file for Codex, OpenCode from albumentations-team/albucore. It costs 3,017 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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads ~/.codex paths; mentions AGENTS.md; mentions Codex.

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

Reuse

Borrowing it

Nothing to install: this file belongs to albumentations-team/albucore. 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/albumentations-team/albucore/main/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/github.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/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 albucore AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,017 This file is loaded in full into every session.
When invoked 3,017 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.03017 $0.03017
Opus 5.5 $0.01207 $0.01207
Sonnet 5.5 $0.00603 $0.00603
Haiku 4.5 $0.00302 $0.00302

Measured yesterday against content hash 3f342709c040, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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 · 308 lines

How it starts

The opening of the file, as written. The whole thing — 308 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 image dtypes: uint8, float16, and float32 (no float64 image inputs)
  • 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
    • NumPy uses channel-last; Torch CPU uses an explicit channel-first layout
    • Grayscale images use (H, W, 1) or a declared layout with C=1
  2. Performance Optimization - Performance best practices

    • LUT operations and float32 dtype management
    • Backend selection strategies
    • Memory layout considerations
    • Benchmarking guidelines
  3. Public API - Public operations, explicit root exports, and owning modules

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

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

Repo-Local Codex Skills

Repo-specific Codex skills live in .codex/skills/:

  • albucore-conventions - Apply when implementing or reviewing image-processing code, tests, shape handling, dtype handling, and backend routing.
  • albucore-benchmarks - Apply when adding benchmarks, comparing versions, or documenting benchmark workflow.
  • performance-optimization - Apply for every runtime implementation, review, profile, or optimization. It loads docs/performance-optimization.md completely and runs the delete-first, vectorization, grouped-reduction, LUT, RNG, backend, extraction, and explicit-output/alias audit.
  • torch-performance-optimization - Apply for every eager CPU-only Torch runtime implementation, review, profile, routing, layout, allocation, threading, or benchmark decision. It loads docs/torch-performance-optimization.md and adds Torch-specific contract, profiler, bridge, and full-path benchmark checks.
  • albucore-public-api - Apply when changing exports, documenting API status, or deciding what belongs in package __all__.

Read the full file on GitHub · 308 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. yesterday Changed · +11 lines · +139 tokens per session 3f342709c040
  2. 4d ago Changed · +12 lines · +339 tokens per session 62453eeabe78
  3. 24d ago Changed · +7 lines · +123 tokens per session 8fead074a449
  4. 1mo ago Changed · +22 tokens per session 6910295ea3dd
  5. 2mo 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 (124 stars, last pushed yesterday), licensed MIT. It adds 3,017 tokens to every session, about $0.0121 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

albucore AGENTS.md compared with instructions from other repositories

albucore AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
albucore AGENTS.mdalbumentations-team/albucoreInstructions file124yesterdayMITA3,017Codex, 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