local-machine-registry

local-machine-registry is a cursor rule for Cursor from SecondLifes/code-intel. It costs 2,135 tokens per session, scanned C, a copy of local-machine-registry, Apache-2.0.

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

Written for Cursor: installed under .cursor/.

Good fit Use it when installing, locating, or maintaining rad's machine-wide settings, links, skills, rules, prompts, or workspace registration.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/secondlifes/code-intel/local-machine-registry
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/SecondLifes/code-intel

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 local-machine-registry

README.md
[![agentmods](https://agentmods.dev/badge/rules/secondlifes/code-intel/local-machine-registry/github.svg)](https://agentmods.dev/rules/secondlifes/code-intel/local-machine-registry)
Your own site
<a href="https://agentmods.dev/rules/secondlifes/code-intel/local-machine-registry"><img src="https://agentmods.dev/badge/rules/secondlifes/code-intel/local-machine-registry/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 local-machine-registry

Your own site · 80×15
<a href="https://agentmods.dev/rules/secondlifes/code-intel/local-machine-registry"><img src="https://agentmods.dev/badge/rules/secondlifes/code-intel/local-machine-registry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.02135 $0.02135
Opus 5.5 $0.00854 $0.00854
Sonnet 5.5 $0.00427 $0.00427
Haiku 4.5 $0.00214 $0.00214

Measured 1mo ago against content hash 4b619574ed19, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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.

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
Origin

This is a copy

100% identical to local-machine-registry — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.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. 1mo ago 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 1mo ago), licensed Apache-2.0. It adds 2,135 tokens to every session, about $0.0085 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). It is 100% identical to local-machine-registry, differing in 0 lines, and is treated as a copy.