Personal-AI-Router
AGENTS.md1.5k starsChanged 2 months agoApache-2.0View on GitHub
Guidance for agents and contributors working in the NVIDIA Personal AI Router (PAIR) repository. It holds an Electron desktop application and the Go services it runs on, built from one checkout. This file is the short orientation. CONTRIBUTING.md is the contribution policy and Developer Guide is the code tour; both are normative where this file is only a summary. .cursor/rules/ is not advisory. Those files record the boundaries the code is actually held to — process ownership, IPC shape, typing…
- Installs packages
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 AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
- .cursor/rules/absolute-imports.mdcCursor rule
- .cursor/rules/agent-onboarding.mdcCursor rule
- .cursor/rules/architecture.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 AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
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 54
Never launch the same worker from both Electron and the broker, and do not add a fallback path for a missing broker.
- Very specific: line 72
Use npm run typecheck rather than tsc directly, because the project has split Node and web targets.
- Very specific: line 78
Never edit desktop/docs/services-api.md by hand.
- Distinctive: line 86
Prefer the Go source when a README disagrees with it.
- Very specific: line 92
Run go test ./... from a component directory, and from services/tests for cross-process coverage.
- Very specific: line 115
Absolute imports across directories: Use the @/... alias for anything that would otherwise need ../.
- Very specific: line 128
Every file carries a two-line SPDX header: Check the tree with node scripts/spdx-headers.mjs, and insert missing headers with --fix.
- Very specific: line 130
When changing a JSON-RPC method or payload,: update the producing Go service, the broker relay, every consumer, the desktop bridge under …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
<!--
SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
-->AGENTS.md
Guidance for agents and contributors working in the NVIDIA Personal AI Router (PAIR) repository. It holds an Electron desktop application and the Go services it runs on, built from one checkout.
This file is the short orientation. CONTRIBUTING.md is the contribution policy and Developer Guide is the code tour; both are normative where this file is only a summary.
Repository Layout
Personal-AI-Router/
├── desktop/ Electron + React application
├── services/ Go broker, workers, proxies, terminal interface, installers
├── docs/ Product, architecture, and build documentation
├── scripts/ Repository-level helper scripts
├── .cursor/ Architecture and discipline rules, skills, and commit hooks
├── .agents/ Shared agent skills (UI patterns, backend sync, test style)
└── Makefile Wraps the build and check commands (Linux and macOS).cursor/rules/ is not advisory. Those files record the boundaries the code is
actually held to — process ownership, IPC shape, typing discipline, and where
state lives — and a change that violates one will be caught in review. Read the
rules covering the area you are touching before you start, and prefer
services/*/spec.md over a component README where the two disagree.
services/ is the source of truth for runtime behavior and desktop/ is a
client of it. The application relays commands and renders reported state — it
does not reimplement routing, scheduling, discovery, or cryptography in
TypeScript. If you find yourself writing any of those in the desktop tree, the
change belongs in a Go service instead.
How the Pieces Connect
- Electron starts only
nvpair-ui-brokerfromdesktop/cli-bin/. - The broker supervises the other Go workers: discovery, proxies, engines, cluster, settings, manual nodes, workloads, errors, and the scheduler.
- The broker spawns all 10 workers at startup. Only the scanner is required; the rest are optional and non-fatal.
nvpair-tuiis bundled but never supervised. It owns its own broker.- Interprocess communication is newline-delimited JSON-RPC 2.0 over stdio
(optional
--ipc). - The desktop build compiles the Go binaries from the sibling
services/directory withnpm run build:modular-binaries. There is no submodule.
Never launch the same worker from both Electron and the broker, and do not add a fallback path for a missing broker.
Desktop (desktop/)
cd desktop
npm install
npm startnpm start builds the service binaries first, so you do not need to build
services/ separately.
- Checks:
npm run lint,npm run typecheck,npm run test:unit,npm run dead-code:check,npm run service-contracts:check - Contract tooling:
npm run service-contracts/:write/:check
Use npm run typecheck rather than tsc directly, because the project has
split Node and web targets. dead-code:check fails on any exported value or
type that nothing imports, so an export added out of habit breaks it: delete it,
drop the export when it is only used inside its own file, or justify it in
desktop/dead-code-omissions.json.
Never edit desktop/docs/services-api.md by hand. It is generated by
npm run service-contracts:write.
Services (services/)
Twelve Go binaries. Each component is its own module, with its tests beside its
source and a README.md describing its JSON-RPC surface. Shared packages live in
shared/, and tests/ holds cross-process tests that drive real binaries.
Prefer the Go source when a README disagrees with it.
Build from services/ — build.bat on Windows, ./build.sh on Linux and
macOS. Staged binaries land in services/build/bin/. Requires Go 1.25 or newer
and jq.
Run go test ./... from a component directory, and from services/tests for
cross-process coverage. Some tests skip themselves rather than fail; refer to
Testing, and treat a skip as untested rather than
passing. Live engine and multi-node tests can modify real system state, so run
them only when you intend to and only against systems and networks you control.
Checks
On Linux and macOS the repository-root Makefile is the shortest path to a clean
run. Run make on its own to list every target.
make check # SPDX headers, build-script verify, lint, typecheck, contracts, desktop tests
make test # desktop unit tests plus go test in every services modulemake check does not include npm run dead-code:check, so run that as well.
On Windows, run the underlying npm and go test commands directly.
Conventions
- No type casting. No
as Type,as any,as unknown, or: any, and nounknownin signatures. If a cast seems necessary, the types are wrong. - Absolute imports across directories. Use the
@/...alias for anything that would otherwise need../. Within one directory,./siblingis correct. - Static imports only. No
await import(). - No renderer imports from
src/electron/. Shared code belongs insrc/shared/or behind the preload bridge. - Say engine, not backend, in user-facing copy and new code. Existing wire names, payload fields, and Go symbols keep their spelling: they are external contracts.
- No legacy fallbacks. One canonical path. Delete what you replace instead of leaving a compatibility branch behind.
- Never log prompts, messages, response bodies, pairing PINs, or key material. Log operational metadata such as engine, model, job ID, and node ID instead.
- Every file carries a two-line SPDX header. Check the tree with
node scripts/spdx-headers.mjs, and insert missing headers with--fix. - When changing a JSON-RPC method or payload, update the producing Go
service, the broker relay, every consumer, the desktop bridge under
desktop/src/electron/service-bridge/, the tests, and the documentation in the same change. Then runnpm run service-contracts:checkfromdesktop/. - Declare a bump for any service binary whose compiled output you change in
the
pair-release-intent:v1block in your pull request description, and describe any user-facing change there so it reaches the changelog. Do not editservices/versions.jsonorCHANGELOG.mdby hand — automation writes them, and CI rejects a pull request that modifies them. Versioning gives the rules. - Sign off every commit with
git commit -s. The Developer Certificate of Origin trailer has to match the commit author, so a missing or mismatched sign-off means rewriting the commit rather than fixing it in review. - Prefer small, focused commits. Work from a fork on a branch off
develop, and open a pull request; only maintainers merge.
Platform Support
Windows, Linux, and macOS, on x64 and arm64.
Where to Read Next
- Overview — what PAIR does and the vocabulary the other documents assume
- Developer Guide — where the code lives and how a change travels through the layers
- Architecture — process model, discovery, routing, and trust boundaries
- Building and Running — prerequisites, source builds, and running the services without the desktop application
- CONTRIBUTING.md — policy, pull requests, and review
- .cursor/rules/ — the conventions this codebase enforces, and .cursor/skills/pair-github-pr/ for filling in a pull request's release-intent block
- SECURITY.md — what PAIR does and does not defend against
- Services and Desktop — component references, each indexing its own documents
README.md indexes the full documentation set in reading order.
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.

