neqsim-active-learning-surrogate

neqsim-active-learning-surrogate is a skill for Claude Code, Codex from equinor/neqsim-community-skills. It costs 105 tokens per session (2,838 once invoked), scanned A, original, Apache-2.0.

A faster approximate model of a NeqSim process simulation, built by running the detailed model where the approximation is least certain. It can focus on overall accuracy or on finding where an output crosses a limit.

In plain words
What is it for?
It helps speed up uncertainty studies, sensitivity analysis, capacity checks, and operating-envelope maps for NeqSim flowsheets.
Why use it?
Large Monte Carlo studies and operating maps may require thousands of slow simulation runs. The approximation reduces repeated runs while checking the areas that matter most, including failed simulations.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps speed up uncertainty studies, sensitivity analysis, capacity checks, and operating-envelope maps for NeqSim flowsheets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate
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.

Any agent
npx skills add equinor/neqsim-community-skills --skill neqsim-active-learning-surrogate
Clone the repo
git clone --depth 1 https://github.com/equinor/neqsim-community-skills

Made for: Claude Code, Codex.

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 neqsim-active-learning-surrogate

README.md
[![agentmods](https://agentmods.dev/badge/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate/github.svg)](https://agentmods.dev/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate)
Your own site
<a href="https://agentmods.dev/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate"><img src="https://agentmods.dev/badge/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate/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 neqsim-active-learning-surrogate

Your own site · 80×15
<a href="https://agentmods.dev/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate"><img src="https://agentmods.dev/badge/skills/equinor/neqsim-community-skills/neqsim-active-learning-surrogate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,838 The whole file, excluding the scripts and references it only reads on demand.
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.00105 $0.02838
Opus 5.5 $0.00042 $0.01135
Sonnet 5.5 $0.00021 $0.00568
Haiku 4.5 $0.00011 $0.00284

Measured 8d ago against content hash 1fd38c8e12b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neqsim-active-learning-surrogate 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 8d ago.

The scan reads SKILL.md. This mod also ships 8 executable files (examples/host_compressor_capacity_boundary.py, src/active_learning_surrogate/__init__.py, src/active_learning_surrogate/gp.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/process/neqsim-active-learning-surrogate/SKILL.md · 214 lines

How it starts

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

Active-Learning Surrogate

A NeqSim host model takes about half a second to a minute per run. A Monte Carlo study with 20,000 samples, a sensitivity analysis or an operating-envelope map then costs hours or days. Fitting a surrogate to a fixed design does not solve this well: most of the runs land where the answer is already obvious.

This skill builds the surrogate actively. It starts from a small Latin-hypercube design, fits a Gaussian process per output, and asks NeqSim for one new point at a time where it is least certain about what the study needs:

  • global mode improves accuracy everywhere and stops when every output's leave-one-out Q2 reaches 1 - tolerance;
  • limit_state mode learns only where one output crosses a threshold, for example the compressor driver rating, and stops when the side of the limit is known with at least 97.7 % confidence (U >= 2) at every candidate point.

In the bundled example a three-input host flowsheet needs 21 NeqSim runs to find where the export compressor exceeds its 6.5 MW driver. The surrogate then gives the exceedance probability over 20,000 operating cases in 0.1 s. Its maximum tie-in rate at the worst corner, 28.2 t/h, gives 6,492 kW in a direct NeqSim run, just under the 6,500 kW limit.

When to Use

  • A Monte Carlo, tornado, Sobol or optimisation study wraps a NeqSim flowsheet that is too slow to call thousands of times.
  • The question is a boundary: maximum tie-in rate before a constraint binds, operating window of a separator or compressor, where a product spec fails.
  • An operating-envelope map or a fast proxy for a dashboard is needed.
  • Some flowsheet runs fail to converge and the study must carry on.

Not for: dynamic time series, problems with more than about 10 inputs, or responses with jumps (phase disappearance, discrete logic) unless the jump is the limit being learned.

Inputs

  • model: Python callable dict[input, value] -> mapping[output, value] that runs NeqSim. Raise an exception or return NaN when the run fails.
  • parameters: Parameter(name, low, high, log=False) per input, in engineering units.
  • outputs: output names to learn.
  • mode: "global" or "limit_state"; for limit state also limit_output and threshold (in that output's units).
  • tolerance (global, default 0.01 -> Q2 >= 0.99), u_stop (limit state, default 2.0), initial_samples (default max(2d + 2, 6)), max_evaluations (default 60, failures included), pool_size (candidate points, default 3000), patience (default 2), seed.
  • Parallel runs: batch_size (points per iteration, default 1), n_workers (threads running the model, default 1), or map_fn (any map-like callable, e.g. a process pool or cluster client).

Read the full file on GitHub · 214 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. 8d ago First seen · 214 lines · 105 tokens per session scan A 1fd38c8e12b9

Subscribe to this mod's changes

neqsim-active-learning-surrogate is a skill published in the GitHub repository equinor/neqsim-community-skills (5 stars, last pushed today), licensed Apache-2.0. It adds 105 tokens to every session and 2,838 once invoked, about $0.0004 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-11-22.

Related

neqsim-active-learning-surrogate compared with skills from other repositories

neqsim-active-learning-surrogate next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neqsim-active-learning-surrogateequinor/neqsim-community-skillsSkill5todayApache-2.0A105Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A123Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59ktodayMITA44Claude Code
exploratory-data-analysisK-Dense-AI/scientific-agent-skillsSkill59ktodayMITA83Claude Code
phylogeneticsK-Dense-AI/scientific-agent-skillsSkill59ktodayMITA71Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35ktodayMITA43Claude Code, Codex
mapping-to-snomedmaziyarpanahi/openmedSkill5.9ktodayApache-2.0A205Claude Code