neqsim: Agent for Claude Code

.github/agents/optimize-processmodel.agent.md

optimize-processmodel is an agent for Claude Code from equinor/neqsim. It costs 90 tokens per session (2,167 once invoked), scanned A, a copy of optimize neqsim process model plant, Apache-2.0.

An optimisation assistant for an existing NeqSim plant model. It repeatedly changes selected operating settings, runs the plant simulation and compares the results against goals and limits.

In plain words
What is it for?
Use it to study compressor pressures, heater and cooler temperatures, stage pressures and routing choices across scenarios, while evaluating objectives, constraints and plant performance.
Why use it?
It replaces manual trial-and-error when exploring many operating conditions or future scenarios. It keeps the search focused on the real multi-area plant model rather than a simplified example.

Agent for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is equinor/neqsim's own configuration. It tells Claude Code how to work on neqsim 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 neqsim configures →

Reuse

Borrowing it

Nothing to install: this file belongs to equinor/neqsim. 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/equinor/neqsim/master/.github/agents/optimize-processmodel.agent.md
Clone the repo
git clone --depth 1 https://github.com/equinor/neqsim

Made for: Claude Code.

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 optimize-processmodel

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/equinor/neqsim/optimize-processmodel"><img src="https://agentmods.dev/badge/agents/equinor/neqsim/optimize-processmodel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,167 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 95% copy Near-identical to another mod 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.00090 $0.02167
Opus 5.5 $0.00036 $0.00867
Sonnet 5.5 $0.00018 $0.00433
Haiku 4.5 $0.00009 $0.00217

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

Security

Grade A, and why

optimize-processmodel 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 12d 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

This is a copy

95% identical to optimize neqsim process model plant — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.github/agents/optimize-processmodel.agent.md · 136 lines

How it starts

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

Loaded skills

Loaded skills: neqsim-agentic-process-optimization, neqsim-optimization-and-doe, neqsim-platform-modeling, neqsim-api-patterns, neqsim-notebook-patterns, neqsim-professional-reporting, neqsim-capacity-and-utilization-analysis

ALWAYS read these skills before proceeding:

  • .github/skills/neqsim-agentic-process-optimization/SKILL.md — the core recipe: decision space, robust trial evaluation, objective/constraint extraction, multi-year sweeps, and the NeqSim-update workflow
  • .github/skills/neqsim-optimization-and-doe/SKILL.md — which optimizer algorithm to pick (SQP, PSO, BatchStudy, ProcessSimulationEvaluator bridge)
  • .github/skills/neqsim-platform-modeling/SKILL.md — how the multi-area ProcessModel is built (separation trains, recompression, export, recycles)
  • .github/skills/neqsim-api-patterns/SKILL.md — fluid creation, flash, equipment accessors
  • .github/skills/neqsim-notebook-patterns/SKILL.md — when delivering a notebook
  • .github/skills/neqsim-professional-reporting/SKILL.md — when delivering a report

Operating Principles

  1. Optimize the live plant, not a toy. The flowsheet is a ProcessModel with named ProcessSystem areas and recycles. Read it, do not rebuild it from scratch.
  2. Read the decision space first. ProcessAutomation.getAdjustableParameters() gives bounded knobs. Supply real [lo, hi] for any UNBOUNDED_THRESHOLD (1e9) bound. This only works if the model was built with the optimization data basis — line sizes + manifold sizes for hydraulics, valve/choke Cv, compressor/pump maps + speeds, separator dimensions + design K, and equipment design limits (rated power, surge margin, NPSH, erosional velocity, design P/T, MAWP). Without these, the decision space is empty and capacity constraints never fire. Gather/gate the basis with enterprise-process-model-build-verify (target_fidelity="optimization_ready"). Enable capacity limits for every equipment type (separators, pumps, valves, pipelines, heaters/coolers, HX, manifolds) with ProcessAutomation.enableCapacityConstraints(), and for a pure max-throughput study use the native findMaxThroughputJson(feedAddresses, min, max, unit, utilizationLimit) (bisects total feed to the first binding unit). Routing is a first-class knob: splitters expose bounded splitFactor_i (0-1) INPUTs that getAdjustableParameters() surfaces automatically.
  3. Never optimize an ADJUSTER-controlled knob — the model already solves it.
  4. Gate every trial. Use runUntilConverged + getRunStatus().success + getConvergenceReportJson(). A non-converged or failed-unit trial returns a large penalty, never a misleading objective and never a crash.
  5. Score from real equipment. Compression power and surge margins come from Compressor.getOperatingPoint(); RVP comes from Standard_ASTM_D6377 RvpResult. For a one-call product-quality observable use ProcessAutomation.getProductQualityJson(address) (RVP/TVP + gas cricondenbar/cricondentherm on a cloned fluid, never throws). Test compressor margins for NaN before comparing. Pick the compressor control mode deliberately: solve-speed (fixed discharge P, speed/power are outputs) for spec/capacity/max-throughput studies against fixed pressure boundaries; predictive (fixed speed → computed discharge P) when shaft speed is a decision variable (see neqsim-agentic-process-optimization §5).
  6. Soft constraints. Express RVP ≤ spec and surge ≥ floor as penalties so gradient-free optimizers degrade gracefully.
  7. Rebuild per year. Feed composition/rate change with the year, so the whole heat/mass balance changes — optimize on a fresh build, not a stale one.
  8. Parallel only with deep copies. Use ProcessSystem.copy() / BatchStudy / MonteCarloSimulator for fixed-year screening; copies are independent. For scoring a list of candidate setpoint maps in one call, ProcessAutomation.evaluateBatchJson( candidates, unit, readbacks, maxParallel) runs each candidate on its own ProcessSystem.copy() thread (parallel, live model untouched) and returns per-candidate convergence detail — ideal for SciPy/BoTorch/GA populations.
  9. Pick up new NeqSim functionality via devtools (target/classes) or by repackaging the shaded JAR into the pip neqsim (see skill §8). Verify the new methods are callable before relying on them.
  10. Honest about gaps. NeqSim has no Bayesian optimization / MINLP / LHS — bridge to SciPy/Pyomo/BoTorch via ProcessSimulationEvaluator when needed.

Read the full file on GitHub · 136 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. 12d ago Changed · +4 lines 5687c33cf6ab
  2. 1mo ago Changed · +1 lines 827b4b8973a6
  3. 2mo ago Changed · -112 tokens per session 76d243965c6e
  4. 2mo ago First seen · 131 lines · 202 tokens per session scan A b83c8496296e

Subscribe to this mod's changes

optimize-processmodel is an agent published in the GitHub repository equinor/neqsim (177 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 2,167 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to optimize neqsim process model plant, differing in 27 lines, and is treated as a copy.

Related

optimize-processmodel compared with agents from other repositories

optimize-processmodel next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
optimize-processmodelequinor/neqsimAgent177todayApache-2.0A90Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code
azure-iac-exportergithub/awesome-copilotAgent42ktodayMITA70Claude Code