vibedgames: Instructions file for Codex

AGENTS.md

vibedgames AGENTS.md is an instructions file for Codex, OpenCode from kyh/vibedgames. It costs 3,563 tokens per session, scanned A, original, MIT.

A runnable setup and testing guide for Vibedgames, a platform for deploying, hosting, and adding multiplayer features to browser games. The project uses a pnpm/Turborepo monorepo, meaning several related packages share one repository.

In plain words
What is it for?
Starting the local web app, creating the local database, testing authenticated sessions, and checking browser-based features.
Why use it?
It gives coding agents exact startup steps, local credentials, environment setup, and browser-checking instructions, including a required first run for the local database.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

This is kyh/vibedgames's own configuration. It tells Codex and OpenCode how to work on vibedgames itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vibedgames configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kyh/vibedgames. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kyh/vibedgames/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/kyh/vibedgames

Made for: Codex, OpenCode.

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 vibedgames AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kyh/vibedgames/agents-md/github.svg)](https://agentmods.dev/instructions/kyh/vibedgames/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kyh/vibedgames/agents-md"><img src="https://agentmods.dev/badge/instructions/kyh/vibedgames/agents-md/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 vibedgames AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kyh/vibedgames/agents-md"><img src="https://agentmods.dev/badge/instructions/kyh/vibedgames/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,563 This file is loaded in full into every session.
When invoked 3,563 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03563 $0.03563
Opus 5.5 $0.01425 $0.01425
Sonnet 5.5 $0.00713 $0.00713
Haiku 4.5 $0.00356 $0.00356

Measured 14d ago against content hash 0026632560fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vibedgames AGENTS.md scanned grade A 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 14d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Liveness: `curl -s -o /dev/null -w '%{http_code}' localhost:5173/auth/login` → `200`. (`/` answers `307` — it redirects to a featured game — so don't use it as a health check.)
AGENTS.md · 169 lines

How it starts

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

AGENTS.md

vibedgames is an infrastructure platform for deploying, hosting and adding multiplayer to browser games: build a game locally, vg deploy it, and it is served at {slug}.vibedgames.com. The stack is a pnpm/Turborepo monorepo — TanStack Start (React 19 + Vite SSR) on Cloudflare Workers, oRPC + Drizzle on D1, better-auth, PartyServer on Durable Objects, R2 for game bundles.

This is the tool-agnostic guide for coding agents, and it is meant to be run, not just read. Claude also reads CLAUDE.md (product context, architectural decisions, conventions); both point back here.

Quickstart (headless)

pnpm install
cp .env.example .env  # every credential, CLI and Worker alike (see Environment)
pnpm dev:web          # ← run once, then stop it
pnpm db:local         # db:push + seed dev identities
pnpm dev:web          # http://localhost:5173

The double dev:web is not a typo. packages/db/drizzle.config.local.ts resolves the Miniflare SQLite file out of apps/web/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/, and that directory only exists after the dev Worker has booted once. Skip the first run and pnpm db:local dies with Local D1 not found. Run 'pnpm dev:web' once to initialize it.

Liveness: curl -s -o /dev/null -w '%{http_code}' localhost:5173/auth/login → 200. (/ answers 307 — it redirects to a featured game — so don't use it as a health check.)

There is no bootstrap script; the five commands above are the provisioning steps. pnpm db:local is idempotent — re-run it any time, and after every schema change.

Environment

One file, two consumers. Everything lives in the repo-root .env; template is .env.example.

Consumer Reaches it via Holds
drizzle-kit, the cf CLI process.env, loaded by each package's with-env (dotenv-cli) CLOUDFLARE_ACCOUNT_ID / _DATABASE_ID / _D1_TOKEN / _API_TOKEN
the dev Worker, via the Cloudflare env binding bindings.secret() in apps/web/cloudflare.config.ts BETTER_AUTH_SECRET, R2_*, FAL_API_KEY, TYPESAFE_API_KEY, STRIPE_*

Read the full file on GitHub · 169 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. 14d ago Changed · +6 lines · +107 tokens per session 0026632560fc
  2. 25d ago Changed · -4 tokens per session 114b9a83dfb4
  3. 28d ago Changed · +26 tokens per session de12bab6b01b
  4. 1mo ago Changed · +51 tokens per session 3fb56dcd35bc
  5. 1mo ago Changed · +11 tokens per session a4560679daa4
  6. 1mo ago Changed · +89 tokens per session 23c6a9952f18
  7. 1mo ago Changed · +4 lines · +77 tokens per session 91aef77966e9
  8. 1mo ago Changed · +12 tokens per session ce06484fcc02
  9. 1mo ago Changed · +2 lines · +99 tokens per session 204401581c11
  10. 1mo ago First seen · 157 lines · 3,095 tokens per session scan A 6afa2474e8d2

Subscribe to this mod's changes

vibedgames AGENTS.md is an instructions file published in the GitHub repository kyh/vibedgames (61 stars, last pushed 2d ago), licensed MIT. It adds 3,563 tokens to every session, about $0.0143 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

vibedgames AGENTS.md compared with instructions from other repositories

vibedgames AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vibedgames AGENTS.mdkyh/vibedgamesInstructions file612d agoMITA3,563Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode