test-proxy-recorder AGENTS.md

test-proxy-recorder AGENTS.md is an instructions file for Codex, OpenCode from asmyshlyaev177/test-proxy-recorder. It costs 3,377 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

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/asmyshlyaev177/test-proxy-recorder/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,377 This file is loaded in full into every session.
When invoked 3,377 The same file — it is already loaded in full.
Security scan C 1 finding. 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.03377 $0.03377
Opus 5 $0.01688 $0.01688
Sonnet 5 $0.00675 $0.00675
Haiku 4.5 $0.00338 $0.00338

Measured today against content hash 9df9ac3de260, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 today.

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.

rebuild reads as "the fix didn't work". `rm -rf .astro node_modules/.astro dist`
AGENTS.md · 244 lines

How it starts

The opening of the file, as written. The whole thing — 244 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 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 · 244 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. today Changed · +10 lines · +163 tokens per session 9df9ac3de260
  2. 5d 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 (111 stars, last pushed today), licensed MIT. It adds 3,377 tokens to every session, about $0.0169 per session on Opus 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.