vibe-replay: Instructions file for Codex

AGENTS.md

vibe-replay AGENTS.md is an instructions file for Codex, OpenCode from tuo-lei/vibe-replay. It costs 7,486 tokens per session, scanned A, original, MIT.

Repository guidance for vibe-replay, a tool that turns AI coding sessions into interactive animated web replays saved as self-contained HTML files. A pnpm monorepo is one repository containing several related packages managed together.

In plain words
What is it for?
It is for working on the command-line tool, React viewer, shared types, website, and Cloudflare API, including installation, builds, development, unit tests, and end-to-end tests.
Why use it?
It gives coding agents the project's structure, commands, and known issues in one place, reducing guesswork when building or testing the project.

Instructions file for CodexOpenCode

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

This is tuo-lei/vibe-replay's own configuration. It tells Codex and OpenCode how to work on vibe-replay 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 vibe-replay configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/box/agent-data/agent-transcripts.

Reuse

Borrowing it

Nothing to install: this file belongs to tuo-lei/vibe-replay. 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/tuo-lei/vibe-replay/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tuo-lei/vibe-replay

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 vibe-replay AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tuo-lei/vibe-replay/agents-md"><img src="https://agentmods.dev/badge/instructions/tuo-lei/vibe-replay/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,486 This file is loaded in full into every session.
When invoked 7,486 The same file — it is already loaded in full.
Security scan A 0 findings. 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.07486 $0.07486
Opus 5.5 $0.02994 $0.02994
Sonnet 5.5 $0.01497 $0.01497
Haiku 4.5 $0.00749 $0.00749

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

Security

Grade A, and why

vibe-replay 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 · 225 lines

How it starts

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

AGENTS.md — vibe-replay

This is the single source of truth for agent instructions in this repo. Every coding agent reads it, directly or through a shim — see Agent setup at the bottom. Put project knowledge here, not in a tool-specific file.

What is this

vibe-replay turns AI coding sessions into animated, interactive, self-contained HTML replays. Supports Claude (Code/Desktop/Cowork), Cursor, Codex, OpenCode, Hermes, Muse, Pi, and Grok Bot. AI Studio embeds Pi's provider registry and agent loop; no separate AI CLI is required.

pnpm monorepo: packages/cli (npm: vibe-replay), packages/viewer (React → single HTML), packages/types (shared types), website/ (Astro), cloudflare/ (Workers API).

Commands

pnpm install               # Install deps
pnpm build                 # Full build: viewer → cli
pnpm start                 # Build + run interactive picker
pnpm dev                   # Viewer (Vite HMR) + CLI (tsx + Node fs.watch restarts) together
pnpm dev:dashboard         # Dev mode with dashboard flag (-d)
pnpm dev:website           # Website (Astro HMR) + Viewer (Vite HMR) together
pnpm test                  # Run unit tests
pnpm test:cloudflare       # Run Cloudflare worker tests
pnpm test:e2e              # Run E2E tests (requires pnpm build first)
pnpm lint                  # Lint + format (auto-fix)
pnpm lint:check            # Lint check (no fix, for CI)
pnpm typecheck             # Strict TypeScript + website checks
pnpm verify                # Sequential pre-PR gate: lint, types, tests, build

When to use which:

  • pnpm start — validate full user flow (build + run)
  • pnpm dev — daily iteration with full HMR: viewer auto-reloads via Vite, and the CLI auto-restarts through the launcher's Node fs.watch watcher rather than tsx watch (which would intercept interactive stdin)
  • pnpm dev:website — website + viewer iteration: Astro HMR + /view/ redirects to Vite viewer
  • Dev launchers reserve ports for their entire lifetime. If one component's port is explicitly overridden, automatic selection skips that port for the other component as well. Use VIBE_API_PORT/VIBE_VIEWER_PORT for pnpm dev and VIBE_VIEWER_PORT/VIBE_WEBSITE_PORT for pnpm dev:website.

Read the full file on GitHub · 225 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 Changed · +1 lines · -186 tokens per session cf7d074190d7
  2. 13d ago Changed · +21 tokens per session 33f49b13a79f
  3. 26d ago Changed · +32 tokens per session ad3d224ea3ec
  4. 28d ago Changed · +51 tokens per session 1ed36f386977
  5. 1mo ago Changed · +162 tokens per session a3d338f1d16a
  6. 1mo ago Changed · +2 lines · -316 tokens per session 1cf3a8434e2d
  7. 1mo ago Changed · -31 tokens per session 951941288ad7
  8. 1mo ago Changed · +2 tokens per session 0d766d871afd
  9. 1mo ago Changed · -6 tokens per session 0b990be7bb14
  10. 1mo ago First seen · 222 lines · 7,757 tokens per session scan A 2e1b48db4913

Subscribe to this mod's changes

vibe-replay AGENTS.md is an instructions file published in the GitHub repository tuo-lei/vibe-replay (39 stars, last pushed today), licensed MIT. It adds 7,486 tokens to every session, about $0.0299 per session on Opus 5.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.

Related

vibe-replay AGENTS.md compared with instructions from other repositories

vibe-replay AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vibe-replay AGENTS.mdtuo-lei/vibe-replayInstructions file39todayMITA7,486Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot