vibe-replay: Instructions file for Claude Code

AGENTS.md

vibe-replay AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from tuo-lei/vibe-replay. It costs 7,739 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 Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: Claude Code plugin machinery, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is tuo-lei/vibe-replay's own configuration. It tells Claude Code, 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: Claude Code, 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,739 This file is loaded in full into every session.
When invoked 7,739 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.07739 $0.07739
Opus 5 $0.03870 $0.03870
Sonnet 5 $0.01548 $0.01548
Haiku 4.5 $0.00774 $0.00774

Measured 3d ago against content hash a46e3c881aa1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 · 222 lines

How it starts

The opening of the file, as written. The whole thing — 222 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 web replays as self-contained HTML files. Supports Claude Code, Claude Desktop, Claude Cowork, Cursor, Codex, OpenCode, Hermes, and Pi. The editor's AI Studio uses the embedded Pi provider registry and agent loop rather than requiring a separate AI CLI.

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 · 222 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 · +2 lines · +32 tokens per session a46e3c881aa1
  2. 4d ago Changed · +1 lines · +460 tokens per session f500558bd94e
  3. 6d ago Changed · +3 lines · +317 tokens per session b3504c3a3a69
  4. 10d ago First seen · 216 lines · 6,930 tokens per session scan A 2ce07d769438

Subscribe to this mod's changes

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