test-proxy-recorder: Instructions file for Codex

AGENTS.md

test-proxy-recorder AGENTS.md is an instructions file for Codex, OpenCode from asmyshlyaev177/test-proxy-recorder. It costs 3,289 tokens per session, scanned C, original, MIT.

Repository guidance for a pnpm monorepo that records and replays HTTP and WebSocket traffic for repeatable end-to-end tests. A monorepo stores several related packages in one repository.

In plain words
What is it for?
Use it when changing the proxy, HTTP or WebSocket recording, replay sessions, redaction, CLI, Playwright integration, or server-rendering helpers for Next.js and TanStack Start.
Why use it?
Recording real network exchanges lets tests replay the same responses instead of depending on changing external services, making failures easier to reproduce.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is asmyshlyaev177/test-proxy-recorder's own configuration. It tells Codex and OpenCode how to work on test-proxy-recorder 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 test-proxy-recorder configures →

Reuse

Borrowing it

Nothing to install: this file belongs to asmyshlyaev177/test-proxy-recorder. 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/asmyshlyaev177/test-proxy-recorder/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/asmyshlyaev177/test-proxy-recorder

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 test-proxy-recorder AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/asmyshlyaev177/test-proxy-recorder/agents-md"><img src="https://agentmods.dev/badge/instructions/asmyshlyaev177/test-proxy-recorder/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,289 This file is loaded in full into every session.
When invoked 3,289 The same file — it is already loaded in full.
Security scan C 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.03289 $0.03289
Opus 5.5 $0.01316 $0.01316
Sonnet 5.5 $0.00658 $0.00658
Haiku 4.5 $0.00329 $0.00329

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

Security

Grade C, and why

test-proxy-recorder AGENTS.md scanned grade C 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 22d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

⚠ **Expressive-code output is cached in `.astro/`.** A change to the EC config or to either plugin leaves already-rendered pages untouched, so a partial rebuild reads as "the fix didn't work". `rm -rf .astro node_modules
AGENTS.md · 134 lines

How it starts

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

AGENTS — structure cheatsheet

Record/replay HTTP+WebSocket proxy for deterministic e2e tests. pnpm monorepo.

Layout

packages/
  test-proxy-recorder/   # the library + CLI (the product)
    src/
      ProxyServer.ts      # core: record / replay / transparent modes
      httpRecorder.ts     # capture & persist HTTP exchanges
      websocketHandlers.ts# WS record/replay
      replaySessions.ts   # per-test session keying (x-test-rcrd-id)
      cli.ts proxy-cli.ts proxy.ts  # `test-proxy-recorder` CLI entry
      init.ts             # `init` — auto-wire into a project
      config*.ts          # config load/merge
      reset.ts            # reset proxy mode
      nextjs/             # SSR helpers: registerProxyFetch / registerProxyAxios
                          #   / setNextProxyHeaders (middleware) / createHeadersWithRecordingId
      tanstack-start/     # TanStack Start SSR helpers: registerProxyFetch /
                          #   getRecordingId / createHeadersWithRecordingId
      recorderEnabled.ts  # shared isRecorderEnabled() gate for the adapters
      playwright/         # playwrightProxy fixture (before()/teardown())
      utils/              # redact, recordingId, cors, fileUtils, httpHelpers
    skills/               # AI agent skills (intent-managed; 500-line SKILL.md cap,
                          #   bulk in references/). Validate: npx intent validate <dir>
  landing/               # Astro Starlight docs site (the documentation site)
    src/content/docs/docs/  # English source of truth; other locales are translations
apps/                    # runnable examples + e2e suites (the proof the lib works)
  example-nextjs16, example-nextjs-edge, example-tanstack-start,
  example-websocket, example-auth-*, example-extension, example-init

Package exports: . (Playwright/core), ./playwright, ./nextjs, ./tanstack-start. CLI bin: test-proxy-recorder.

Commands (run from repo root)

pnpm build         # core library
pnpm lint
pnpm typecheck
pnpm test
pnpm test:browser  # the library tests that drive Chromium (src/**/*.browser.test.ts); CI runs them with the e2e job
pnpm example:test:e2e:ci                      # nextjs16 example — record then replay
pnpm example-edge:test:e2e:ci                 # edge example
pnpm example-tanstack:test:e2e:ci             # TanStack Start example
pnpm landing:dev
pnpm landing:build                            # docs site
pnpm landing:audits                           # accessibility + Lighthouse on the built docs site

Read the full file on GitHub · 134 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. 22d ago Changed · +1 lines · +30 tokens per session 32ed1aeb9e6e
  2. 28d ago Changed · -111 lines · -118 tokens per session 7749dbbc3b51
  3. 2mo ago Changed · +10 lines · +163 tokens per session 9df9ac3de260
  4. 2mo ago First seen · 234 lines · 3,214 tokens per session scan C 19bc4b02314c

Subscribe to this mod's changes

test-proxy-recorder AGENTS.md is an instructions file published in the GitHub repository asmyshlyaev177/test-proxy-recorder (73 stars, last pushed 10d ago), licensed MIT. It adds 3,289 tokens to every session, about $0.0132 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

test-proxy-recorder AGENTS.md compared with instructions from other repositories

test-proxy-recorder AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-proxy-recorder AGENTS.mdasmyshlyaev177/test-proxy-recorderInstructions file7310d agoMITC3,289Codex, OpenCode
qmax-mcp copilot-instructions.mdQuality-Max/qmax-mcpInstructions file45d agoMITA451GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot