OpenNOW AGENTS.md

Architecture and engineering rules for OpenNOW, an Electron cloud-gaming client designed to support multiple streaming providers.

In plain words
What is it for?
Use them when adding provider support, changing streaming or reconnect behaviour, editing native code, or working across the app's process boundaries.
Why use it?
They show where desktop, interface, native streaming, and localisation code belongs, and stress reliability and predictable behaviour during failures.

Instructions file for CodexOpenCode

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 instructions/opencloudgaming/opennow/agents-md
Clone the repo
git clone --depth 1 https://github.com/OpenCloudGaming/OpenNOW

Made for: Codex, OpenCode.

Per session 1,528 This file is loaded in full into every session.
When invoked 1,528 The same file — it is already loaded in full.
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.01528 $0.01528
Opus 5 $0.00764 $0.00764
Sonnet 5 $0.00306 $0.00306
Haiku 4.5 $0.00153 $0.00153

Measured 2d ago against content hash 7d137867c399, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

OpenNOW AGENTS.md 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 2d 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.

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.

AGENTS.md · 76 lines

How it starts

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

AGENTS.md

Core Priorities

  1. Performance first.
  2. Reliability first.
  3. Keep behavior predictable under load and during failures (session restarts, reconnects, partial streams).

If a tradeoff is required, choose correctness and robustness over short-term convenience.

Repository Layout

  • opennow-stable/ is the Electron app. Main-process code lives in src/main, preload bridges in src/preload, renderer UI in src/renderer, and cross-process TypeScript contracts in src/shared.
  • native/ contains the native streamer implementation and build outputs used by the Electron app. Keep native build changes isolated from Electron refactors unless the task explicitly spans both.
  • locales/ contains localization sources and generated Crowdin output. See Localization before editing.
  • OpenNOW-Site/ is a separate repository when present; do not modify it from OpenNOW tasks unless explicitly requested.

Platform Layout (multi-provider ready)

Cloud streaming providers live under a platforms/<id>/ folder in each process boundary. GeForce NOW (gfn) is the first provider:

  • Main: opennow-stable/src/main/platforms/gfn/
  • Renderer stream protocol: opennow-stable/src/renderer/src/platforms/gfn/
  • Shared contracts: opennow-stable/src/shared/gfn/ (barrel @shared/gfn)
  • Platform registry/capabilities: opennow-stable/src/shared/platforms/ and opennow-stable/src/main/platforms/

When adding another provider, create platforms/<id>/ mirrors and register it in shared/platforms — do not sprinkle provider protocol details into app shell, IPC wiring, or unrelated UI modules.

Module Boundaries

  • Shared GFN main-process protocol details belong under opennow-stable/src/main/platforms/gfn. Prefer focused modules with one owner per concern (clientHeaders.ts for client identity/header constants, proxyFetch.ts for proxy-aware fetches, proxyUrl.ts for proxy URL normalization, request.ts for common response handling, endpoints helpers via @shared/gfn/endpoints for public URL construction).
  • Shared GFN DTOs/helpers are split by concern under opennow-stable/src/shared/gfn/ (auth, catalog, session, stream, api, …). Import from @shared/gfn for stability, or from a focused submodule when that keeps ownership clearer.
  • Do not duplicate NVIDIA/GFN constants, request headers, platform/device ID mapping, auth header construction, proxy behavior, zone URL construction, or error parsing across feature files. Add to or extract a focused shared module first, then consume it from features.
  • Keep feature files (auth.ts, games.ts, cloudmatch.ts, subscription.ts, etc.) responsible for product flow and payload shape, not for re-declaring shared client identity or transport details.
  • Preserve provider/alliance behavior, stable device IDs, session refresh semantics, and SessionError.fromResponse() handling when refactoring GFN code.

Read the full file on GitHub · 76 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. 2d ago First seen · 76 lines · 1,528 tokens per session scan A 7d137867c399

Subscribe to this mod's changes

OpenNOW AGENTS.md is an instructions file published in the GitHub repository OpenCloudGaming/OpenNOW (2,400 stars, last pushed today), licensed MIT. It adds 1,528 tokens to every session, about $0.0076 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-30.