pip-web AGENTS.md

Repository instructions for Pip, a local, play-money Texas Hold'em game played against computer opponents. They describe the code layers, project documentation, tools, tests, and design rules.

In plain words
What is it for?
Use them when changing Pip's poker rules, game flow, saved player data, interface, documentation, or tests.
Why use it?
They give coding agents the game context and prevent changes from crossing boundaries or using the wrong package manager, test runner, or design tokens.

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/playpip/pip-web/agents-md
Clone the repo
git clone --depth 1 https://github.com/playpip/pip-web

Made for: Codex, OpenCode.

Per session 558 This file is loaded in full into every session.
When invoked 558 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.00558 $0.00558
Opus 5 $0.00279 $0.00279
Sonnet 5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

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

Security

Grade A, and why

pip-web 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 3d 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 · 42 lines

How it starts

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

AGENTS.md

Guidance for AI agents working in this repo (Pip — a clean single-player Texas Hold'em web app). This mirrors CLAUDE.md; full docs are in docs/. Read the relevant doc before non-trivial work.

Orientation

  • What it is: play-money, local-first, desktop-first Hold'em vs AI. No account needed; there is an optional one for cross-device sync only. GitHub repo: playpip/pip-web.
  • Three layers (don't cross the boundaries):
    1. src/lib/poker/ — pure, deterministic, unit-tested engine (the rules).
    2. src/store/game.ts (pacing/AI/economy), profile.ts (persisted).
    3. src/components/, src/app/ — presentation only.

Where to read

Non-negotiables

  • pnpm for everything; never hand-pin versions.
  • AVA for tests (not Vitest); engine changes ship with tests.
  • Theme tokens only for colour (foreground/<alpha>, bg-primary) — must work in light and dark. Never hardcode white/black.
  • No real-money framing: "chips", never $; no casino textures or pop-ups.
  • Engine is pure & deterministic (seeded Rng; no React/store imports).
  • Persisted-schema changes bump PERSIST_VERSION + add a migration.
  • Obey the set-state-in-effect rule — by convention (see docs/development.md).

Definition of done

pnpm test:all passes — format, types, lint (biome), AVA, knip, audit — (plus pnpm build for structural changes). Verify UI by running pnpm dev. Commit/push only when asked.

Read the full file on GitHub · 42 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. 3d ago First seen · 42 lines · 558 tokens per session scan A 8869429c90b5

Subscribe to this mod's changes

pip-web AGENTS.md is an instructions file published in the GitHub repository playpip/pip-web (10 stars, last pushed 3d ago), licensed MIT. It adds 558 tokens to every session, about $0.0028 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-31.