claude-web-test-harness: Instructions file for Claude Code

CLAUDE.md

claude-web-test-harness CLAUDE.md is an instructions file for Claude Code from 569270901/claude-web-test-harness. It costs 1,672 tokens per session, scanned A, original, MIT.

Repository instructions for a Cloudflare Worker that translates between Anthropic's API format and OpenAI-compatible APIs such as NVIDIA NIM. It lists local development, deployment, health-check, and required secret settings.

In plain words
What is it for?
Setting up, running, deploying, and checking the proxy, plus configuring its NVIDIA API key and Anthropic-compatible model endpoint.
Why use it?
They tell an agent how the proxy is structured and configured, so requests can use one API style while reaching a service that speaks another.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

This is 569270901/claude-web-test-harness's own configuration. It tells Claude Code how to work on claude-web-test-harness 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 claude-web-test-harness configures →

Reuse

Borrowing it

Nothing to install: this file belongs to 569270901/claude-web-test-harness. 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/569270901/claude-web-test-harness/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/569270901/claude-web-test-harness

Made for: Claude Code.

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 claude-web-test-harness CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/569270901/claude-web-test-harness/claude-md/github.svg)](https://agentmods.dev/instructions/569270901/claude-web-test-harness/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/569270901/claude-web-test-harness/claude-md"><img src="https://agentmods.dev/badge/instructions/569270901/claude-web-test-harness/claude-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 claude-web-test-harness CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/569270901/claude-web-test-harness/claude-md"><img src="https://agentmods.dev/badge/instructions/569270901/claude-web-test-harness/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,672 This file is loaded in full into every session.
When invoked 1,672 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.01672 $0.01672
Opus 5.5 $0.00669 $0.00669
Sonnet 5.5 $0.00334 $0.00334
Haiku 4.5 $0.00167 $0.00167

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

Security

Grade A, and why

claude-web-test-harness CLAUDE.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 2d 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.

CLAUDE.md · 110 lines

How it starts

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

项目指南(接入方在此声明自己的约定)

这是多 agent UI 测试 harness 的项目约定文件。agent 读它来自适应你的项目, 没有硬编码业务路径。接入你自己的项目时,改下面「项目约定」一节即可。 demo 默认值面向 TesterHome(只读流程)。

你的身份(主对话必读,先于一切)

主对话就是 orchestrator(总调度)。 用户提出任何"测试 / 用例 / 地图 / 审查"类需求时, 先完整读一遍 artifacts/agents/orchestrator.md,按里面的路由规则派发子 agent、维护 artifacts/<task_id>/state.md,到 GATE 就停下等用户。你自己不写业务 artifact、不写测试代码, 这些交给对应子 agent(.claude/agents/*.md)。不熟悉的术语查 artifacts/GLOSSARY.md。

用户常见的三种开口方式(照着说就能触发对应流程):

场景 用户这样说 走的流程
有需求文档(PRD) 「按 PRD 设计 <功能> 的测试用例,PRD 在 <路径>(设计图在 <目录>,可选)」 解构 → GATE 0 → 生成用例 → GATE 1
只有网站,没有需求文档 「没有需求文档,帮我摸清 <站点/页面> 的 <功能> 并设计测试用例」 先探页面(page-map-sync 必跑) → 解构(C 档,来源 = 实测)→ GATE 0 → 生成用例 → GATE 1
要一路做到自动化 「给 <功能> 补完整测试,包括自动化代码」 上面任一种 → test-writing 自跑自修 → review

需求文档、设计图怎么准备,见 README.zh-CN.md 的「输入准备」一节。

必读文件

每次写代码 / 写测试 / 补页面地图前,先读:

  • rule.md — 编码规则与技术避坑(selector 写法、等待时机、组件行为)
  • artifacts/README.md — 多 agent 编排总览(artifact schema、gate、红线、progress.log)
  • 相关的 page_map/*.yaml — 当前页面元素地图

发现新知识主动回写:技术坑 → rule.md;页面元素变化 → 对应 page_map/*.yaml; 业务行为(规则、状态、字段约束)的已确认结论 → specs/<模块>.md。不要等用户提醒,发现即记录。

写完测试代码后跑一次红线静态扫描(秒级,纯标准库):

python3 scripts/check_compliance.py            # 扫全仓
python3 scripts/check_compliance.py --staged   # 只扫本次待提交的文件

error 必须修(不要 noqa 了事),warn 打印不阻断。规则在 configs/compliance-rules.json, 接入自己的项目时按需增删——里面有几条是组件库特有的,文件内 $design_notes 标注了哪些要换。 想让它在 commit 前自动拦截:bash scripts/install_hooks.sh 装 git pre-commit hook。


项目约定(← 接入时改这里)

约定 本项目取值
站点基础 URL https://testerhome.com(见 pytest.ini 的 --base-url)
页面地图目录 page_map/(按 page_map/<模块>/<页面>.yaml 组织)
测试数据目录 data/(YAML)
测试代码目录 tests/(不嵌套模块子目录)
测试运行命令 python -m pytest tests/ -v
登录逻辑 demo 全部只读,无需登录;接入时在 conftest.py 加登录 fixture
失败 DOM 落盘目录 data/debug/(调试用,已 gitignore)
需求文档 / 设计图入档位置 artifacts/<task_id>/input/、artifacts/<task_id>/ui_design/(两者已 gitignore,只留本地)(入档方式见 README「输入准备」)
产品知识库目录 specs/(按模块一个 .md:业务规则、状态流转、字段约束的已确认结论;没有需求文档时,实测结论经 GATE 0 确认后回写这里)

Read the full file on GitHub · 110 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. 2d ago Changed · +31 lines · +791 tokens per session eddd5d1753c3
  2. 1mo ago Changed · +11 lines · +159 tokens per session c40450f01692
  3. 1mo ago First seen · 68 lines · 722 tokens per session scan A 1857960967d6

Subscribe to this mod's changes

claude-web-test-harness CLAUDE.md is an instructions file published in the GitHub repository 569270901/claude-web-test-harness (44 stars, last pushed 2d ago), licensed MIT. It adds 1,672 tokens to every session, about $0.0067 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens