devhub

A set of rules for using reviewed DevHub information when working with projects and services. DevHub is an operational catalogue used to find, understand, sync, recover, or review them.

In plain words
What is it for?
Finding existing project records, reviewing current workspace evidence, syncing services, recovering project context, and following the required DevHub setup checks.
Why use it?
It keeps project discovery and synchronization tied to reviewed evidence and prevents private operational details from being mixed into shared repositories.

Cursor rule

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.

agentmods
npx agentmods add rules/mruversky/devhub-core/devhub
Clone the repo
git clone --depth 1 https://github.com/MrUversky/devhub-core
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00023 $0.00414
Opus 5 $0.00012 $0.00207
Sonnet 5 $0.00005 $0.00083
Haiku 4.5 $0.00002 $0.00041

Measured today against content hash cc1defd91e52, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

devhub 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 today.

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.

integrations/cursor/devhub.mdc · 18 lines

What it actually says

DevHub workflow

When the user asks to find, understand, register, sync, recover, or review a project or service:

  1. For “set up my DevHub”, “connect everything I can access”, “Build my map”, or “refresh my DevHub”, first require the user-wide devhub doctor --workflow --json contract, then start with devhub setup --json. The rule and MCP do not install this CLI. If it is absent, stop before provider I/O with DevHub needs an update and use only the approved pinned installer/checksum/release-evidence path after the user chooses Help me update DevHub. Never use npm -g, sudo or a checkout symlink. Detection checks only local CLI and config markers; never treat it as authorization, account access, or a catalog fact.
  2. Use the configured read-only DevHub MCP tools to search for an existing project and service before proposing a new record.
  3. Inspect only the current workspace and explicitly reviewed runtime evidence. Do not scan arbitrary ports, accounts, or networks.
  4. Keep project-owned native manifests separate from private DevHub overlays. Never modify a shared or external repository to add private operational metadata.
  5. Treat missing or stale evidence as unknown. Never claim a service is monitored, secure, recoverable, or inexpensive without reviewed evidence.
  6. Never put tokens, passwords, cookies, connection strings, private keys, or credential-bearing URLs in DevHub manifests, prompts, logs, or Git.
  7. MCP is read-only. Connected setup is also read-only. Prepare a minimal catalog diff through the DevHub CLI or registry checkout, validate it, and wait for explicit review before apply, commit, publish, restart, rollback, or any production action.
  8. Finish by explaining what is known, what remains unknown, and the next safe action.
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. today First seen · 18 lines · 23 tokens per session scan A cc1defd91e52

Subscribe to this mod's changes

devhub is a cursor rule published in the GitHub repository MrUversky/devhub-core (1 stars, last pushed 11d ago), licensed Apache-2.0. It adds 23 tokens to every session and 414 once invoked, about $0.0001 per session on Opus 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-31.