host-controller

host-controller is a cursor rule for Cursor from kubev2v/forklift-console-plugin. It costs 13 tokens per session (1,689 once invoked), scanned A, original, Apache-2.0.

A set of rules for Forklift’s host controller, which manages ESXi hosts used during vSphere migrations. ESXi is VMware’s server software, and vSphere is VMware’s management platform.

In plain words
What is it for?
Use it when changing host validation, ESXi connectivity checks, credential watches, provider references, or migration inventory handling.
Why use it?
It clarifies how host settings, credentials, providers, and inventory changes are checked, including which provider types are supported.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when changing host validation, ESXi connectivity checks, credential watches, provider references, or migration inventory handling.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/kubev2v/forklift-console-plugin/host-controller"><img src="https://agentmods.dev/badge/rules/kubev2v/forklift-console-plugin/host-controller.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,689 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.00013 $0.01689
Opus 5.5 $0.00005 $0.00676
Sonnet 5.5 $0.00003 $0.00338
Haiku 4.5 $0.00001 $0.00169

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

Security

Grade A, and why

host-controller 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/infrastructure/host-controller.mdc · 181 lines

How it starts

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

Host Controller

Analyzed from commit: baf9c7bcc307ed9358ad59886a5536366a050012 on 2026-09-17 Source paths: pkg/controller/host/

Package Purpose

The Host CRD represents an ESXi host used for direct disk transfer during vSphere migrations. The controller validates the host configuration (provider, inventory ref, IP, credentials) and tests connectivity to the ESXi SDK endpoint. Only vSphere providers are supported for host operations — all other provider types set a TypeNotValid blocker condition. Non-vSphere inventory handlers are no-ops.


Key Types and Structs

HostSpec (pkg/apis/forklift/v1beta1/host.go)

type HostSpec struct {
    ref.Ref `json:",inline"`              // inventory host ref (id/name)
    Provider core.ObjectReference         // vSphere Provider ref
    IpAddress string                      // ESXi IP for disk transfer
    Secret core.ObjectReference           // credentials Secret
}

Reconciler (pkg/controller/host/controller.go)

type Reconciler struct {
    base.Reconciler
}

Runtime fields populated during validation: host.Provider.Source (Provider CR), host.Secret (Secret CR).

Handler factory (pkg/controller/host/handler/doc.go)

Provider-type dispatch for inventory watches:

Provider type Handler Behavior
vSphere handler/vsphere Watches vsphere.Host inventory model
oVirt, OpenStack, Ova, HyperV, OpenShift per-provider handlers No-op Watch()
EC2, Azure NoOpHostHandler No host-level operations
Nutanix handler/nutanix No-op (no ESXi-style hosts)

Interfaces and Implementations

type Handler interface {
    Watch(m *handler.WatchManager) error
}
  • vSphere handler (handler/vsphere/handler.go): implements inventory event callbacks (Created, Updated, Deleted) and enqueues reconcile events for matching Host CRs.
  • ProviderPredicate (predicate.go): embeds handler.WatchManager; calls handler.New() and Watch() when a Provider becomes Ready.

Read the full file on GitHub · 181 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 · +87 lines ccd81f27bdb6
  2. 1mo ago First seen · 94 lines · 13 tokens per session scan A 9a296e9d57b8

Subscribe to this mod's changes

host-controller is a cursor rule published in the GitHub repository kubev2v/forklift-console-plugin (11 stars, last pushed today), licensed Apache-2.0. It adds 13 tokens to every session and 1,689 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.