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.
npx agentmods add instructions/clima/surfacefluxes.jl/agents-mdgit clone --depth 1 https://github.com/CliMA/SurfaceFluxes.jlWrote 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.
[](https://agentmods.dev/instructions/clima/surfacefluxes.jl/agents-md)<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>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.
| Model | Per session | Once 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 |
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.
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:
- docs/dev-guides/AGENTS.md — Shared CliMA agent guidelines.
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
SurfaceFluxesmodule (physics, solver, fluxes) and the nestedSurfaceFluxes.UniversalFunctionssubmodule (stability functions ϕ, ψ, Ψ).SurfaceFluxes.Parametersholds the parameter struct and accessors. - Pure, stateless functions: physics functions take a
param_set, state, and configuration and return values or aSurfaceFluxConditionsstruct; they do not mutate global state. - GPU/AD compatibility: hot paths use
ifelserather than branches to avoid warp divergence; both branches of anifelsemust be evaluable (guard invalid inputs withmin/maxso the discarded branch never errors). Avoid keyword-argument constructors in kernels. Do not contaminate theFloat32path withFloat64literals — wrap constants inFT(...). See docs/dev-guides/performance/. - Solver design:
surface_fluxesdispatches 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 ofRi_b(state) − Ri_b(ζ)via RootSolvers.jl, using a fixed iteration count by default for branch-free GPU execution.
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.
- 4d ago First seen · 60 lines · 1,330 tokens per session scan A 6433124378d4
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.
Other instructions, from other repositories
ClimaCore.jl AGENTS.md
AGENTS.md instructions for CliMA/ClimaCore.jl, covering agents.md, before you act: agent autonomy, shared guides (via developerguides subtree), formatting and pre-commit hooks and repo-specific guide.
CloudMicrophysics.jl AGENTS.md
AGENTS.md instructions for CliMA/CloudMicrophysics.jl, covering cloudmicrophysics agent guide, ecosystem guidelines, before you act: agent autonomy, repo-specific guidelines and source layout.
DeepSpeed AGENTS.md
AGENTS.md instructions for deepspeedai/DeepSpeed, covering deepspeed project rules, commit & ci requirements, code change discipline, tool caveats and edit tool auto-formatter.
skypilot AGENTS.md
AGENTS.md instructions for skypilot-org/skypilot, covering claude.md - skypilot development guide, project overview, repository structure, development setup and environment setup.
pygraphistry AGENTS.md
AGENTS.md instructions for graphistry/pygraphistry, covering agents.md, skill locations, platform path conventions, canonical -> tool-expected path and claude path to shared skills.
pytorch CLAUDE.md
Claude Code instructions for pytorch/pytorch, covering ai policy — mandatory, scratch space, pr review, environment and ci docker images.