mod-002c-remove-deprecated-model-from-codebase

mod-002c-remove-deprecated-model-from-codebase is a cursor rule for Cursor from NVIDIA/physicsnemo. It costs 26 tokens per session (439 once invoked), scanned B, original, Apache-2.0.

A code-maintenance rule for removing an old machine-learning model class from PhysicsNeMo. The class must first spend at least one software release marked as deprecated with warnings.

In plain words
What is it for?
Use it when deciding whether a deprecated model is ready to remove and when planning the release timeline for that removal.
Why use it?
It gives users time to move their code before the old model is deleted, reducing unexpected breakage.

Cursor rule for Cursor ✓ vendor

Written for Cursor: installed under .cursor/.

Good fit Use it when deciding whether a deprecated model is ready to remove and when planning the release timeline for that removal.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase
About the project

PhysicsNeMo is an open-source PyTorch framework for creating, training, and fine-tuning machine-learning models for physics, scientific computing, and engineering. Researchers and engineers use its reusable components and training recipes for applications such as aerodynamics, weather forecasting, structural mechanics, geophysics, and thermal design. The catalogue entries provide rules and skills for working with PhysicsNeMo projects.

NVIDIA/physicsnemo · 3,418 stars · on GitHub · developer.nvidia.com

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.

Clone the repo
git clone --depth 1 https://github.com/NVIDIA/physicsnemo

Made for: Cursor.

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 mod-002c-remove-deprecated-model-from-codebase

README.md
[![agentmods](https://agentmods.dev/badge/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase/github.svg)](https://agentmods.dev/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase)
Your own site
<a href="https://agentmods.dev/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase"><img src="https://agentmods.dev/badge/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase/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 mod-002c-remove-deprecated-model-from-codebase

Your own site · 80×15
<a href="https://agentmods.dev/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase"><img src="https://agentmods.dev/badge/rules/nvidia/physicsnemo/mod-002c-remove-deprecated-model-from-codebase.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 439 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00026 $0.00439
Opus 5.5 $0.00010 $0.00176
Sonnet 5.5 $0.00005 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 2mo ago against content hash cb33716ed8da, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

mod-002c-remove-deprecated-model-from-codebase scanned grade B with 1 finding 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

# v0.5.0: Model exists without warnings
.cursor/rules/mod-002c-remove-deprecated-model-from-codebase.mdc · 51 lines

What it actually says

When removing deprecated models, rule MOD-002c must be followed. Explicitly reference "Following rule MOD-002c, which states that a model can only be deleted after at least 1 release cycle in pre-deprecation..." when removing code.

MOD-002c: Remove deprecated model from codebase

Description:

After staying in the pre-deprecation stage (Stage 3) for at least 1 release cycle, the model class is considered deprecated (Stage 4). It can then be deleted from the codebase.

A model class cannot be deleted without first spending at least 1 release cycle in the pre-deprecation stage with proper deprecation warnings (see MOD-002b).

Rationale:

This ensures users have sufficient warning and time to migrate their code to newer alternatives. Premature deletion of models would break user code without adequate notice, violating the framework's commitment to stability.

Example:

# Good: Model spent 1 release cycle in pre-deprecation (v0.5.0 with warnings)
# Now in v0.6.0, can be deleted
# File: physicsnemo/models/old_diffusion.py - DELETED

# Release timeline:
# v0.5.0: Added deprecation warnings (Stage 3)
# v0.6.0: Model can be safely removed (Stage 4)

Anti-pattern:

# WRONG: Deleting model without deprecation period
# v0.5.0: Model exists without warnings
# v0.6.0: Model deleted - BREAKS USER CODE!

# WRONG: Breaking changes in production without deprecation cycle
# File: physicsnemo/models/diffusion.py
class DiffusionModel(Module):
    def __init__(self, new_required_param):  # Breaking change!
        # Changed API without deprecation warning - breaks user code
        pass
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. 2mo ago First seen · 51 lines · 26 tokens per session scan B cb33716ed8da

Subscribe to this mod's changes

mod-002c-remove-deprecated-model-from-codebase is a cursor rule published in the GitHub repository NVIDIA/physicsnemo (3,418 stars, last pushed yesterday), licensed Apache-2.0. It adds 26 tokens to every session and 439 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mod-002c-remove-deprecated-model-from-codebase compared with cursor rules from other repositories

mod-002c-remove-deprecated-model-from-codebase next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mod-002c-remove-deprecated-model-from-codebaseNVIDIA/physicsnemoCursor rule3.4kyesterdayApache-2.0B26Cursor
python_libstreamlit/streamlitCursor rule46kyesterdayApache-2.0A0Cursor
typescriptstreamlit/streamlitCursor rule46kyesterdayApache-2.0A5,351Cursor
specsstreamlit/streamlitCursor rule46kyesterdayApache-2.0A0Cursor
workflowsstreamlit/streamlitCursor rule46kyesterdayApache-2.0A0Cursor
skillsstreamlit/streamlitCursor rule46kyesterdayApache-2.0A0Cursor
python_testsstreamlit/streamlitCursor rule46kyesterdayApache-2.0A0Cursor