PINA AGENTS.md

Repository instructions for PINA, a PyTorch library that uses neural networks to solve differential equations, such as equations describing physical systems. It documents the flow from defining a problem to training a model.

In plain words
What is it for?
Use it when defining physics, time-dependent, parameter, or inverse problems; choosing sampling domains; configuring conditions; or training a neural-network solver.
Why use it?
It gives contributors a consistent way to describe equations, domains, conditions, models, solvers, and training jobs, reducing setup errors.

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/pina-org/pina/agents-md
Clone the repo
git clone --depth 1 https://github.com/PINA-org/PINA

Made for: Codex, OpenCode.

Per session 829 This file is loaded in full into every session.
When invoked 829 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.00829 $0.00829
Opus 5 $0.00415 $0.00415
Sonnet 5 $0.00166 $0.00166
Haiku 4.5 $0.00083 $0.00083

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

Security

Grade A, and why

PINA 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 · 80 lines

How it starts

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

PINA — Physics-Informed Neural Architectures

A PyTorch library for solving differential equations with neural networks (PINNs).

Quick Reference

Workflow: Problem → Model → Solver → Trainer

problem = MyProblem()
problem.discretise_domain(n=256, mode="grid")
model = FeedForward(input_dimensions=2, output_dimensions=1)
solver = PINN(problem=problem, model=model)
trainer = Trainer(solver=solver, max_epochs=1000)
trainer.train()

Problem types

SpatialProblem, TimeDependentProblem, ParametricProblem, InverseProblem. Define output_variables, spatial_domain/temporal_domain, and conditions (dict of Condition).

Condition types

  • Condition(domain=..., equation=...) — physics residual on sampled domain
  • Condition(input=..., equation=...) — physics residual at fixed points
  • Condition(input=..., target=...) — supervised data
  • Condition(input=..., n_windows=..., unroll_length=...) — time series

Domains

CartesianDomain, EllipsoidDomain, SimplexDomain. Set ops: Union, Intersection, Difference, Exclusion. Discretise with problem.discretise_domain(n, mode) where mode is "grid", "random", "lh", "chebyshev".

Solvers

PINN, CausalPINN, SelfAdaptivePINN, CompetitivePINN, GradientPINN, RBAPINN, SupervisedSolver, AutoregressiveSolver. Ensembles via *EnsembleSolver variants.

Models

FeedForward, ResidualFeedForward, PirateNet, DeepONet, MIONet, FNO, KolmogorovArnoldNetwork, GraphNeuralOperator, SINDy, and more.

Equation zoo

PoissonEquation, HelmholtzEquation, BurgersEquation, AdvectionEquation, AllenCahnEquation, AcousticWaveEquation, DiffusionReactionEquation. Boundary: FixedValue, FixedGradient, FixedFlux, FixedLaplacian.

Key utilities

  • LabelTensortorch.Tensor with named columns; index via .extract(["x", "y"])
  • Differential operators: grad, div, laplacian, advection — not cached, compute once
  • Trainer wraps lightning.pytorch.Trainer; handles DataModule, batching, device placement

Read the full file on GitHub · 80 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 First seen · 80 lines · 829 tokens per session scan A 4bb21d0402ae

Subscribe to this mod's changes

PINA AGENTS.md is an instructions file published in the GitHub repository PINA-org/PINA (789 stars, last pushed 15d ago), licensed MIT. It adds 829 tokens to every session, about $0.0041 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.

Related

Other instructions, from other repositories

huggingface_hub AGENTS.md

Instructions for huggingface/huggingface_hub, covering agent guide for huggingfacehub, project overview, setup, key commands and code structure.

huggingface/huggingface_hub · 2,565 tokens

nnsight CLAUDE.md

Instructions for ndif-team/nnsight, covering nnsight — agent guide, how to use this file, by task, "i want multi-token / autoregressive generation" and "i want to run multiple prompts at once".

ndif-team/nnsight · 3,828 tokens

model_guided_research CLAUDE.md

Claude Code instructions for Dicklesworthstone/model_guided_research: RULE NUMBER 1 (NEVER EVER EVER FORGET THIS RULE!!!): YOU ARE NEVER ALLOWED TO DELETE A FILE WITHOUT EXPRESS PERMISSION FROM ME OR A DIRECT COMMAND FROM ME. EVEN A NEW FILE THAT YOU YOURSELF CREATED, SUCH AS A TEST CODE FILE. YOU HAVE A HORRIBLE…

Dicklesworthstone/model_guided_research · 636 tokens

comet-examples AGENTS.md

AGENTS.md instructions for comet-ml/comet-examples, covering agent instructions for comet-examples, repo structure, non-negotiable conventions, credentials — always from environment variables and the comet sdk idiom.

comet-ml/comet-examples · 1,587 tokens

huggingface_hub CLAUDE.md

Instructions for huggingface/huggingface_hub, a project described as: The official CLI and Python client for the Hugging Face Hub.

huggingface/huggingface_hub · 3 tokens

Traintools AGENTS.md

AGENTS.md instructions for AparajeetS/Traintools, covering traintools agent guide, discovery, when to suggest traintools, routing and integration rules.

AparajeetS/Traintools · 698 tokens