SurfaceFluxes.jl AGENTS.md

SurfaceFluxes.jl AGENTS.md is an instructions file for Codex, OpenCode from CliMA/SurfaceFluxes.jl. It costs 1,330 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for SurfaceFluxes.jl, a Julia library that calculates momentum, heat, and moisture exchange at the Earth's surface. They describe project guidance, architecture, and rules to check before consequential changes.

In plain words
What is it for?
Guiding work on the SurfaceFluxes.jl modules, shared developer guides, architecture, performance, and approval requirements for changes such as pushes or version updates.
Why use it?
They help an agent follow the project's ecosystem conventions and understand constraints such as GPU support, automatic differentiation, and array-based use.

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/clima/surfacefluxes.jl/agents-md
Clone the repo
git clone --depth 1 https://github.com/CliMA/SurfaceFluxes.jl

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 SurfaceFluxes.jl AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/clima/surfacefluxes.jl/agents-md.svg)](https://agentmods.dev/instructions/clima/surfacefluxes.jl/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/clima/surfacefluxes.jl/agents-md"><img src="https://agentmods.dev/badge/instructions/clima/surfacefluxes.jl/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,330 This file is loaded in full into every session.
When invoked 1,330 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.01330 $0.01330
Opus 5 $0.00665 $0.00665
Sonnet 5 $0.00266 $0.00266
Haiku 4.5 $0.00133 $0.00133

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

Security

Grade A, and why

SurfaceFluxes.jl 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 · 60 lines

How it starts

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

SurfaceFluxes.jl Agent Guide

Ecosystem Guidelines

Please refer to the shared CliMA agent index for ecosystem-wide rules regarding architecture, performance, code quality, infrastructure, and workflows:

Shared guides live at docs/dev-guides/ and are vendored from the canonical source: https://github.com/CliMA/DeveloperGuides. Edit shared guides there, not here. They are synced automatically each month by .github/workflows/update_dev_guides.yml.

Before You Act: Agent Autonomy

Before making changes that are externally visible or consequential (git push, version bumps, CI config changes, public API renames), check docs/dev-guides/workflow/agent_autonomy.md. The boundaries listed there require explicit user approval.

Repo-Specific Guidelines

SurfaceFluxes.jl computes turbulent surface fluxes of momentum, heat, and moisture using Monin-Obukhov Similarity Theory (MOST). It is GPU-compatible, AD-compatible (ForwardDiff), and designed to be broadcast over arrays of heterogeneous surfaces.

Architecture

  • Two modules: the top-level SurfaceFluxes module (physics, solver, fluxes) and the nested SurfaceFluxes.UniversalFunctions submodule (stability functions ϕ, ψ, Ψ). SurfaceFluxes.Parameters holds the parameter struct and accessors.
  • Pure, stateless functions: physics functions take a param_set, state, and configuration and return values or a SurfaceFluxConditions struct; they do not mutate global state.
  • GPU/AD compatibility: hot paths use ifelse rather than branches to avoid warp divergence; both branches of an ifelse must be evaluable (guard invalid inputs with min/max so the discarded branch never errors). Avoid keyword-argument constructors in kernels. Do not contaminate the Float32 path with Float64 literals — wrap constants in FT(...). See docs/dev-guides/performance/.
  • Solver design: surface_fluxes dispatches to one of four modes (prescribed coefficients, prescribed fluxes, prescribed heat+drag, or the iterative MOST solve). The iterative solve finds the stability parameter ζ as the root of Ri_b(state) − Ri_b(ζ) via RootSolvers.jl, using a fixed iteration count by default for branch-free GPU execution.

Read the full file on GitHub · 60 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 · 60 lines · 1,330 tokens per session scan A 6433124378d4

Subscribe to this mod's changes

SurfaceFluxes.jl AGENTS.md is an instructions file published in the GitHub repository CliMA/SurfaceFluxes.jl (21 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,330 tokens to every session, about $0.0066 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.