pyHMT2D: Instructions file for Codex

AGENTS.md

pyHMT2D AGENTS.md is an instructions file for Codex, OpenCode from psu-efd/pyHMT2D. It costs 1,462 tokens per session, scanned A, original, MIT.

Development instructions for pyHMT2D, a Python package that runs and processes two-dimensional water-flow simulations from SRH-2D and HEC-RAS 2D.

In plain words
What is it for?
Use it to install the package, run its tests, or convert hydraulic-model meshes and results into VTK files.
Why use it?
It provides installation, test, and conversion commands and explains that the package depends on Windows-only external solvers.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex.

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

Reuse

Borrowing it

Nothing to install: this file belongs to psu-efd/pyHMT2D. 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/psu-efd/pyHMT2D/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/psu-efd/pyHMT2D

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/psu-efd/pyhmt2d/agents-md/github.svg)](https://agentmods.dev/instructions/psu-efd/pyhmt2d/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/psu-efd/pyhmt2d/agents-md"><img src="https://agentmods.dev/badge/instructions/psu-efd/pyhmt2d/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 pyHMT2D AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/psu-efd/pyhmt2d/agents-md"><img src="https://agentmods.dev/badge/instructions/psu-efd/pyhmt2d/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,462 This file is loaded in full into every session.
When invoked 1,462 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.01462 $0.01462
Opus 5.5 $0.00585 $0.00585
Sonnet 5.5 $0.00292 $0.00292
Haiku 4.5 $0.00146 $0.00146

Measured 2mo ago against content hash 0414fd8d84d0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pyHMT2D 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 2mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 116 lines

How it starts

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Commands

# Install in editable mode (development)
pip install -e .

# Run all tests
pytest

# Run a specific test file
pytest tests/01_SRH_2D_Data/01_01_SRH_2D_Data_test.py

# Run tests with verbose output (already enabled via pytest.ini addopts = -s)
pytest -v

CLI tools (available after install):

# Convert HEC-RAS 2D mesh to SRH-2D format
hmt-cli ras_to_srh --args '{"ras_hdf_file": "input.hdf", "terrain_tif_file": "terrain.tif", "srh_case_name": "output"}'

# Convert SRH-2D results to VTK (last time step)
hmt-cli srh_to_vtk --args '{"srhhydro_file": "case.srhhydro", "output_file": "result.h5"}'

# Export SRH-2D mesh only to VTK
hmt-cli srh_to_vtk --args '{"srhhydro_file": "case.srhhydro", "output_file": "mesh.vtk", "mesh_only": true}'

Architecture

pyHMT2D automates and post-processes 2D hydraulic simulations for two external solvers: SRH-2D (USBR) and HEC-RAS 2D (USACE). It is Windows-only due to solver dependencies (SRH-2D via subprocess, HEC-RAS via COM interface).

Package Layout

pyHMT2D/
├── Hydraulic_Models_Data/         # Model-specific data and control
│   ├── Hydraulic_Models_Data_Base/  # Abstract base classes
│   │   ├── HydraulicModel.py        # Base for all model controllers
│   │   └── HydraulicData.py         # Base for all data readers
│   ├── SRH_2D/                      # SRH-2D implementation
│   ├── RAS_2D/                      # HEC-RAS 2D implementation
│   └── Backwater_1D/                # Simple 1D demo model
├── Calibration/                   # Model calibration (scipy-based)
├── Parametric_Study/              # Batch/Monte Carlo parametric studies
├── Misc/                          # Utilities shared across models
│   ├── Terrain.py                   # DEM/raster processing (rasterio)
│   ├── RAS_to_SRH_Converter.py      # Mesh/BC format conversion
│   ├── vtk_utilities.py             # VTK export and manipulation
│   └── tools.py                     # Result sampling and probing
└── __common__.py                  # Global config (verbose flag, etc.)

Read the full file on GitHub · 116 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. 2mo ago First seen · 116 lines · 1,462 tokens per session scan A 0414fd8d84d0

Subscribe to this mod's changes

pyHMT2D AGENTS.md is an instructions file published in the GitHub repository psu-efd/pyHMT2D (134 stars, last pushed 2mo ago), licensed MIT. It adds 1,462 tokens to every session, about $0.0058 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

pyHMT2D AGENTS.md compared with instructions from other repositories

pyHMT2D AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pyHMT2D AGENTS.mdpsu-efd/pyHMT2DInstructions file1342mo agoMITA1,462Codex, OpenCode
runtm copilot-instructions.mdruntm-ai/runtmInstructions file303yesterdaynoneA297GitHub Copilot
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