hyperv

hyperv is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 27 tokens per session (4,306 once invoked), scanned A, original, Apache-2.0.

A set of project rules describing a Hyper-V provider for managing virtual machines. Hyper-V is Microsoft's virtualization system; the rules cover Windows remote management, SMB file storage, drivers, APIs, and Kubernetes resources.

In plain words
What is it for?
Use it when working on Hyper-V VM inventory, disk validation, SMB mounts, REST endpoints, or the provider's Kubernetes resource definitions.
Why use it?
It gives an agent the architecture and constraints needed to make changes consistently in this provider.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when working on Hyper-V VM inventory, disk validation, SMB mounts, REST endpoints, or the provider's Kubernetes resource definitions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/kubev2v/forklift-console-plugin/hyperv
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/kubev2v/forklift-console-plugin

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 hyperv

README.md
[![agentmods](https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/hyperv/github.svg)](https://agentmods.dev/rules/kubev2v/forklift-console-plugin/hyperv)
Your own site
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/hyperv"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/hyperv/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 hyperv

Your own site · 80×15
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/hyperv"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/hyperv.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,306 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.00027 $0.04306
Opus 5.5 $0.00011 $0.01722
Sonnet 5.5 $0.00005 $0.00861
Haiku 4.5 $0.00003 $0.00431

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

Security

Grade A, and why

hyperv 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 29d 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.

.cursor/rules/backend/providers/hyperv.mdc · 412 lines

How it starts

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

Hyper-V Provider

Analyzed from commit: baf9c7bcc on 2026-09-17 Source paths: pkg/controller/provider/container/hyperv/, pkg/controller/provider/model/hyperv/, pkg/controller/provider/web/hyperv/, pkg/controller/hyperv/, pkg/lib/hyperv/

Package Purpose

The Hyper-V provider collects VM inventory from Windows Hyper-V hosts (standalone or Failover Cluster) via WinRM (PowerShell remoting over HTTPS). Disk files are accessed through an SMB share mounted in a sidecar pod (HyperVProviderServer) via the SMB CSI driver. Inventory is stored in the file-backed DB and exposed through the inventory REST API at /providers/hyperv/….

┌──────────────────────┐
│  Hyper-V Host/Cluster│
│  - WinRM :5986       │
│  - SMB share         │
└──────────┬───────────┘
           │ WinRM/HTTPS (PowerShell)
           ▼
┌─────────────────────────┐
│  Inventory Collector    │  (forklift-controller)
│  - WinRM driver         │
│  - libmodel DB          │
│  - OPA VM validation    │
└────────────┬────────────┘
             │ HTTP POST /validate-disks
             ▼
┌─────────────────────────┐
│  HyperV Provider Server │  (Deployment + SMB CSI mount)
│  - Mounts SMB at /hyperv│
│  - /validate-disks      │
│  - /healthz             │
└────────────┬────────────┘
             │
             ▼
┌─────────────────────────┐
│  Inventory REST API     │
│  /providers/hyperv/…    │
└─────────────────────────┘

Key Source Locations

Component Path (under pkg/)
Collector + adapters controller/provider/container/hyperv/
Data model controller/provider/model/hyperv/
Wire types controller/provider/model/hyperv/types/
REST API handlers controller/provider/web/hyperv/
HyperVProviderServer controller controller/hyperv/
WinRM driver lib/hyperv/driver/
PowerShell scripts lib/hyperv/powershell/scripts.go

Provider Configuration

Secret Fields

Field Required Description
username Yes Hyper-V host admin username
password Yes Hyper-V host password
smbUrl Yes SMB share URL (e.g., //192.168.1.100/VMShare)
smbUser No Dedicated SMB username (falls back to username)
smbPassword No Dedicated SMB password (falls back to password)

Read the full file on GitHub · 412 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. 29d ago Changed · +36 lines 293cb951a7c5
  2. 1mo ago First seen · 376 lines · 27 tokens per session scan A 5bfe038d6d1e

Subscribe to this mod's changes

hyperv is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed today), licensed Apache-2.0. It adds 27 tokens to every session and 4,306 once invoked, about $0.0001 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-08-30.