local-machine-registry

A machine-wide configuration rule for the rad tool. It defines one shared location outside repositories for settings and live links to workspace rules, prompts, skills, and utilities.

In plain words
What is it for?
Use it when installing, locating, or maintaining rad's machine-wide settings, links, skills, rules, prompts, or workspace registration.
Why use it?
It prevents duplicated configuration and keeps shared references connected to their real workspace files, so updates remain consistent.

Cursor rule for Cursor

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/secondlifes/code-intel/local-machine-registry
Clone the repo
git clone --depth 1 https://github.com/SecondLifes/code-intel

Made for: Cursor.

Per session 2,135 This file is loaded in full into every session.
When invoked 2,135 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02135 $0.02135
Opus 5 $0.01068 $0.01068
Sonnet 5 $0.00427 $0.00427
Haiku 4.5 $0.00214 $0.00214

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

Security

Grade C, and why

local-machine-registry scanned grade C 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 yesterday.

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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

1. **Never `rm -rf` anything under the hub root.** Removing links is
.cursor/rules/local-machine-registry.mdc · 184 lines

How it starts

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

The .rad Hub — Single Machine-Wide Root, One JSON File, Live Reference

One root, %ProgramData%\rad (Windows) / /usr/local/share/rad. Outside every repo, never committed, never published. Holds a single settings.json, skills\ (the categorized link farm), and a handful of convenience links (rad.ps1, workspace, tools, rules, prompts, analysis, spec-kits\) — every one of them a live link, never a copy, into the registered workspace's own files. Nothing under the hub root is a primary source; the workspace is.

One JSON file, not two. An earlier design split machine-wide facts (which workspace, which kits) and personal settings into registry.json + settings.json. There was no real reason for the split — settings.json alone now holds both.

Live reference, not publish-and-copy. rules\, prompts\ and analysis\ under the hub root are not populated by copying files — they are single links straight into the workspace's own share\rules\, share\prompts\ and share\analysis\. Reading through the hub link and reading the workspace's share\ folder directly are the same files. If the workspace's real path is ever unreachable, the correct response is "workspace unreachable, cannot resolve" — never a guess and never a silently stale fallback copy from some earlier "publish" step, because there is no publish step anymore.

Built and maintained by tools/rad.ps1 in the AI-Spec-Kits-Maker workspace. Idempotent, needs no elevation.

A missing hub root is never fatal. It means cross-kit references and shared rules are unavailable on this machine — say so plainly and point at pwsh tools/rad.ps1 -Action Install; never guess the content that would have been there.

settings.json — the shared source of truth

{
  "schema_version": 3,
  "updated": "2026-07-31 08:16",
  "updated_by": "user@MACHINE",
  "root": "E:\\...\\AI-Spec-Kits-Maker",
  "last_bootstrap": { "date": "...", "machine": "..." },
  "kits": {
    "erp-muhasebe-temel": {
      "path": "E:\\...\\spec-kits\\erp-muhasebe-temel",
      "registered_at": "...", "registered_by": "...", "machine": "..."
    }
  }
}

Read the full file on GitHub · 184 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. yesterday First seen · 184 lines · 2,135 tokens per session scan C 4b619574ed19

Subscribe to this mod's changes

local-machine-registry is a cursor rule published in the GitHub repository SecondLifes/code-intel (2 stars, last pushed 21d ago), licensed Apache-2.0. It adds 2,135 tokens to every session, about $0.0107 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.