Personal-AI-Router / rules
Cursor rule1.5k starsChanged 2 months agoApache-2.0View on GitHub
Core PAIR boundaries for naming, communication, backend ownership, and reactive state
Trending
Quiet since September.thin dataabout the whole repository
Who's talking about NVIDIA/Personal-AI-Router
- A Hacker News story“Nvidia Personal-AI-Router”Hacker News · Sep 10, 2026 · 3 points
- A Hacker News story“Nvidia Personal AI Router (Pair)”Hacker News · Sep 6, 2026 · 2 points
- @mint-echosphere.bsky.social“「遊んでるPCがデータセンターに」——そこ、ちょっと看板が先に走ります🌿 NVIDIA PAIR。家の中のマシンへ、独立した推論リクエストを振り分ける仮想ルーターです。 …”Bluesky · Sep 10, 2026 · 1 likes
- turnstonelabs/turnstone“Investigate NVIDIA PAIR and NeMo Switchyard as OpenAI-compatible backends”GitHub · Sep 26, 2026
- @camilleroux.com“PAIR (NVIDIA) : router qui distribue l'inférence entre les machines du réseau local, détecte les nœuds …”Bluesky · Sep 16, 2026
The biggest 5 of 10 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 10
Talked about on GitHub, Hacker News and Bluesky (10 times).
On GitHub · 6
- Sep 26, 2026Investigate NVIDIA PAIR and NeMo Switchyard as OpenAI-compatible backends — turnstonelabs/turnstone0 reactions · 1 comment
- Sep 15, 2026feat(AGENT-634): NVIDIA PAIR FORMAT fleet router + S25 node — IgorGanapolsky/trading0 reactions · 5 comments
- Sep 7, 2026[Package Request]: NVIDIA PAIR — pl4nty/winget-extras0 reactions
- Sep 6, 2026[Investigate] NVIDIA Pair support — appatalks/eva-agent0 reactions
- Sep 5, 2026Technology Radar — 2026-09-05 — carlosasantoss73-tech/AUREA0 reactions
1 more on GitHub
- Sep 5, 2026README and docs still link to the upstream NVIDIA repository — waynehoggett/Personal-AI-Router0 reactions · 1 comment
On Hacker News · 2
- Sep 10, 2026Nvidia Personal-AI-Router3 points
- Sep 6, 2026Nvidia Personal AI Router (Pair)2 points
On Bluesky · 2
- Sep 10, 2026「遊んでるPCがデータセンターに」——そこ、ちょっと看板が先に走ります🌿 NVIDIA PAIR。家の中のマシンへ、独立した推論リクエストを振り分ける仮想ルーターです。 https://x.com/so_sthbryan/status/2098000027977449906… — @mint-echosphere.bsky.social1 likes and repost · 1 reply
- Sep 16, 2026PAIR (NVIDIA) : router qui distribue l'inférence entre les machines du réseau local, détecte les nœuds disponibles, gère Ollama et LM… — @camilleroux.com0 likes and reposts · 1 reply
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/absolute-imports.mdcCursor rule
- .cursor/rules/agent-onboarding.mdcCursor rule
- .cursor/rules/backend-constants.mdcCursor rule
- .cursor/rules/build-and-typecheck.mdcCursor rule
- .cursor/rules/commit-sign-off.mdcCursor rule
- .cursor/rules/communication-layers.mdcCursor rule
- .cursor/rules/engines-vs-backends-naming.mdcCursor rule
- .cursor/rules/file-editing.mdcCursor rule
- .cursor/rules/imports-discipline.mdcCursor rule
- .cursor/rules/ipc-patterns.mdcCursor rule
- .cursor/rules/model-registry.mdcCursor rule
- .cursor/rules/no-legacy-fallbacks.mdcCursor rule
- .cursor/rules/no-push-to-main.mdcCursor rule
- .cursor/rules/platform-helpers.mdcCursor rule
- .cursor/rules/proxy-inference-routing.mdcCursor rule
- .cursor/rules/readme-ownership.mdcCursor rule
- .cursor/rules/renderer-stores.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- .cursor/rules/service-contracts.mdcCursor rule
- .cursor/rules/services-agent-onboarding.mdcCursor rule
- .cursor/rules/services-change-propagation.mdcCursor rule
- .cursor/rules/state-and-auto-start.mdcCursor rule
- .cursor/rules/system-architecture.mdcCursor rule
- .cursor/rules/test-type-discipline.mdcCursor rule
- .cursor/rules/type-discipline.mdcCursor rule
- .cursor/rules/type-safety.mdcCursor rule
- kaizen-uiSkill
- pair-test-styleSkill
- sync-backendSkill
- pair-github-prSkill
The file
We split this architecture.mdc into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 27
Never run a worker from both Electron and the broker.
- Distinctive: line 28
Never add a broker-absent fallback.
- Distinctive: line 60
Verify meaningful payload fields, not only method names.
- Very specific: line 61
Keep backend-coupled defaults in src/shared/constants/modular-runtime.ts.
- Distinctive: line 63
Prefer live backend-reported values over constants.
- Very specific: line 71
Call engine:prepare-shutdown before broker teardown.
- Distinctive: line 94
Do not add UI or TypeScript code based on cluster secrets, auth proofs, certificates, or a TypeScript-managed CA.
- Very specific: line 101
Every ipcMain.handle uses safeHandle().
- Distinctive: line 106
When channels, push events, security flows, runtime processes, or ports change, update:
- Distinctive: line 115
Document only the current architecture.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: Core PAIR boundaries for naming, communication, backend ownership, and reactive state alwaysApply: true --- <!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: Apache-2.0 --> # PAIR Architecture Rules ## Naming - User-facing copy and all new code use **engine**, never **backend**. - Existing wire types such as `BackendInfo` may retain their contract name. - `EngineType` is a closed union. Narrow external strings with `isEngineType()`. - PAIR has no plugin or custom-engine concept. ## Runtime ownership The sibling `services/` tree is the backend source of truth. - Electron starts only `nvpair-ui-broker`. - The broker supervises all runtime workers. - PAIR must not reimplement backend services in TypeScript. - Never run a worker from both Electron and the broker. - Never add a broker-absent fallback. The binary inventory and launch ownership live in `src/shared/constants/modular-binaries.ts`. ## Communication layers - Renderer service data uses `window.pairApi`. - Electron-native operations use `window.windowApi`. - Preload transports service calls through `service-bridge:*` IPC. - Electron main talks to the broker over stdio JSON-RPC. - The `nvpair` terminal command launches the bundled Go `nvpair-tui`, which owns its own broker. PAIR has no Electron-backed console client. - Renderer code (`src/ui/`) must not import from `src/electron/`. The only direct service-data HTTP polling in Electron is `/v1/node-info`. Inference HTTP endpoints are for local client-compatible traffic. ## Reactive state - The service is authoritative. - Commands do not return replacement state. - Renderer stores fetch snapshots and then consume push events. - Components do not create local loading state for engine/model operations. - `src/ui/stores/pending-actions.store.ts` is the single optimistic exception. - Pending actions always yield to engine state, progress, or error pushes. ## Backend integration - Backend methods and notifications are implementation details behind `WsInvokeChannelMap` and `WsPushChannelMap`. - Handle every PAIR-relevant backend notification. - Verify meaningful payload fields, not only method names. - Keep backend-coupled defaults in `src/shared/constants/modular-runtime.ts`. - Prefer live backend-reported values over constants. ## Engines and routing `nvpair-engine-manager` owns lifecycle and model operations. - Engine server ports and proxy ports are persisted by their backend owners. - Desired engine state is restored by the backend. - Call `engine:prepare-shutdown` before broker teardown. - Hide operations the backend cannot perform. Routing is owned by the proxies, broker, and `nvpair-job-scheduler`. The backend combines pending work, compact scanner/manual GPU telemetry, and the proxy process's burst reservations, which every engine facade shares. PAIR must not pin routes, derive policy from renderer metrics, or implement a TypeScript scheduling policy. For model-bearing inference, each proxy admits only nodes whose per-engine inventory advertises the requested model. Manual selection, scheduler priority, reservations, and retryable failover operate inside that owner set. Empty or non-matching inventory is excluded, and no owner produces a local `502`. ## Security `nvpair-cluster-manager` owns identity, pairing, trust, and membership. PAIR implements **no** security or cryptography. - PAIR relays cluster commands and renders cluster events. - PAIR does not implement cluster cryptography, transport security, or key management. - Pairing uses a six-digit convenience PIN, not a strong authenticator. - Do not add UI or TypeScript code based on cluster secrets, auth proofs, certificates, or a TypeScript-managed CA. ## IPC - `IpcChannelMap` is for Electron-native operations and the service bridge envelope. - Every `ipcMain.handle` uses `safeHandle()`. - Handlers return the typed `IpcResult<T>` envelope and never throw across IPC. ## Documentation When channels, push events, security flows, runtime processes, or ports change, update: - `docs/architecture.md`; - `docs/frontend-api.md`; - `docs/services-backend.md`; - `docs/services-parity.md`; - `system-architecture.mdc`. Document only the current architecture. Git history records prior designs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

