cursorrules

Project rules for running complex scientific simulations with multiple agents, including research, setup, review, execution, and result checking.

In plain words
What is it for?
Use them to research simulation parameters, create solver inputs, inspect meshes and boundary conditions, run simulations, and validate outputs.
Why use it?
They organize simulation work and require important inputs, units, settings, and results to be checked independently.

Cursor rule for Cursor

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 rules/hereon-institutems/oasis/cursorrules
Clone the repo
git clone --depth 1 https://github.com/Hereon-InstituteMS/OASiS

Made for: Cursor.

Per session 786 This file is loaded in full into every session.
When invoked 786 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.00786 $0.00786
Opus 5 $0.00393 $0.00393
Sonnet 5 $0.00157 $0.00157
Haiku 4.5 $0.00079 $0.00079

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

Security

Grade A, and why

cursorrules 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 2d 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.

.cursorrules · 52 lines

How it starts

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

OASiS — Project Instructions

How to Handle Complex Simulation Tasks

For any non-trivial simulation task, break the work into sub-agents:

  1. Research agent: Search online for the specific problem — find literature values, validated setups, correct parameters. Report findings.

  2. Setup agent: Using the research findings, build the input files. Use get_example_inputs() to study real test files from the solver's test suite. Use run_with_generator() for simulations that need programmatic mesh/particle generation.

  3. Critic agent: Independently review the setup. Check every parameter against what the research agent found. Verify units, discretization, boundary conditions, material properties. Search online to validate. If the simulation fails after multiple attempts with the chosen solver, consider whether an alternative solver might be more suitable — prepare_simulation shows what alternatives exist. Report any issues.

  4. Execution agent: Fix any issues the critic found, then run the simulation.

  5. Results critic agent: After the simulation completes, independently verify the results. Use visualize(action='validate') to check for NaN, constant fields, suspiciously large values. Check that field magnitudes are physically reasonable for the problem. Compare against known analytical solutions or literature values where possible.

  6. Coupling agent (if multi-solver): Transfer fields between solvers, set up the coupling, run the second solver, produce combined output.

Developer Mode: Extending Solvers

When you hit a solver limitation — a missing material model, element type, boundary condition, or physics module — don't just accept it. You have full source access via developer(action='architecture', solver) and the <SOLVER>_ROOT environment variables. Consider:

  1. Diagnose: Read the solver source to understand why the capability is missing
  2. Assess: Is it a small addition (new material, new BC) or a major feature? Report this to the user.
  3. Propose: Tell the user "I could implement X in the solver source to fix this — should I proceed?"
  4. Implement (if authorized): Modify source files, rebuild, re-run with the fix

Read the full file on GitHub · 52 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. 2d ago First seen · 52 lines · 786 tokens per session scan A 6e920fd0b856

Subscribe to this mod's changes

cursorrules is a cursor rule published in the GitHub repository Hereon-InstituteMS/OASiS (18 stars, last pushed 23d ago), licensed MIT. It adds 786 tokens to every session, about $0.0039 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.