Borrowing it
Nothing to install: this file belongs to AMDResearch/ai4science-studio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/AMDResearch/ai4science-studio/main/.claude/commands/run-gencast.mdgit clone --depth 1 https://github.com/AMDResearch/ai4science-studioWrote 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/commands/amdresearch/ai4science-studio/run-gencast)<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/run-gencast"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/run-gencast/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.
<a href="https://agentmods.dev/commands/amdresearch/ai4science-studio/run-gencast"><img src="https://agentmods.dev/badge/commands/amdresearch/ai4science-studio/run-gencast.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00000 | $0.00697 |
| Opus 5.5 | $0.00000 | $0.00279 |
| Sonnet 5.5 | $0.00000 | $0.00139 |
| Haiku 4.5 | $0.00000 | $0.00070 |
Grade A, and why
run-gencast 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Run GenCast ensemble forecast on an AMD cluster
Guide the user through running GenCast end-to-end on an AMD cluster.
Step 0 — Cluster config check
Check if .cluster-config.yaml (repo root) or ~/.config/ai4science-studio/cluster.yaml exists. If neither exists, run the /init-cluster flow first. If a config exists, read it and pre-fill container runtime and SLURM partition/account from saved values.
Step 1 — Questionnaire (ask ALL questions before doing anything)
Ask the user the following questions. Do not assume any defaults. Wait for answers to all questions before proceeding.
Q0. CDS credentials Do you have a Copernicus CDS API key? If not, create a free account at cds.climate.copernicus.eu.
Q1. Model variant Which checkpoint?
gencast-0.25— full 0.25° model (default)gencast-0.25-Oper— operational variantgencast-1.0— faster, lower resolutiongencast-1.0-Mini— lightweight
Q2. Forecast start date What date to forecast from? (YYYYMMDD, default: yesterday)
Q3. Lead time How many hours ahead? (default: 240 = 10 days)
Q4. Ensemble members How many ensemble members? (must be a multiple of GPU count, default: 1)
Q5. Container runtime Which container runtime?
- Docker (recommended —
docker_run.shbuilds and launches automatically)
Step 2 — Act on answers
Read earth_science/models/GenCast/model.yaml for full env var details.
Configure credentials
cd earth_science/models/GenCast/examples
cp env_file.template env_file
# Set CDSAPI_KEY in env_file
Launch container
bash docker_run.sh
Builds jaxweather:latest (shared with PanguWeather — skip if already built).
Run forecast (inside container)
MODEL_VARIANT=<variant> \
DATE=<YYYYMMDD> \
LEAD_TIME=<hours> \
NUM_ENSEMBLE_MEMBERS=<n> \
bash /examples/run_inference.sh
Step 3 — Monitor
Output is written to /predictions/<variant>.grib.
# Visualize
python3 /recipe/grib_visualizer.py --input /predictions/gencast-0.25.grib
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.
- 2mo ago First seen · 93 lines · 0 tokens per session scan A a38ab092c44b
run-gencast is a command published in the GitHub repository AMDResearch/ai4science-studio (4 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 697 tokens. 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-31.
run-gencast compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| run-gencastAMDResearch/ai4science-studio | Command | 4 | yesterday | MIT | A | 0 | Claude Code |
| ml-projectmxslr/mlcraft | Command | 8 | 4mo ago | MIT | A | 52 | Claude Code |
| by:approve-lab001TMF/blatant-why | Command | 119 | 22d ago | MIT | A | 21 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |