assay README

项目的 README,来自 github.com/awss1i/assay。合并为一个 markdown 文件:README.md。

assay

English · 简体中文 · 日本語 · 한국어 · Русский

python licence listed in agentic-awesome-skills listed in awesome-testing listed in awesome-opencode

Install · Getting started · Benchmarks · Docs · Contributing · Licence


An agent-native QA CLI for web pages. Deterministic, no tests to write, no LLM.

A terminal running assay on a list
you reorder by dragging. 7 checks planned from the page, 1 passed and 6
failed. The first failure says nothing on the page changed at all, and the
other five say they are the same finding.

Checking a drag-to-reorder list with a bug in it.


assay opens your page in Chromium, finds every control on it, uses all of them, and reports what went wrong.

assay doesn't know what your page is for, so it reports the places where the page contradicts itself, such as a count that shows 1 when the list is empty, or an Undo that does nothing on the first press and works on the second. A page that runs but does the wrong thing, like a total that adds wrongly, usually passes.


Install

pip install assay-ui

assay also installs with uv and pipx, and its skill and plugin install in fifteen coding agent harnesses.

All install options


Getting started

Point assay at the folder that holds your page.

assay ./my-app                    # check index.html in this folder
assay ./my-app --report out.html  # also write an HTML report with screenshots
assay ./my-app --one-line         # short summary, for scripts and agents

The exit code is non-zero if anything failed. Apart from the Chromium download on the first run, nothing is written to disk unless you ask.

In a coding agent, the plugin runs the check at the end of each turn that changed a page, and the agent reports what assay found. In Claude Code, these two commands install it.

/plugin marketplace add awss1i/assay
/plugin install assay@assay

Getting started


Benchmarks

assay is scored on two sets of pages in this repository, and the scoring scripts write the table below.

Set Pages Bugs found Working pages flagged
Pages written by AI 225 15 of 20 0 of 205
Pages with planted bugs 20 12 of 50 0 of 10

On the pages written by AI, the median page took 14 seconds to check, and 221 of the 225 finished inside a minute.

The pages written by AI are small web apps an AI wrote from a list of prompts, which a person then opened and tried. The pages with planted bugs are working apps and a copy of each, in which a separate agent, never told assay exists, planted bugs of its own choosing. assay's rules were developed with the planted pages in view, so that score is in-sample.

All benchmarks


Docs

Doc What it covers
Usage Every option, what assay prints, the exit codes, the HTML report and the Python API
How it works How a run goes, every check and the exact message it prints, and what assay can't check
Harnesses Install steps for each of the fifteen supported coding agent harnesses
The Skill & Plugin What the skill tells the agent to do, and what the plugin's hook does after each turn
Development How the code is laid out, changing a rule, the tests, and adding a harness

Contributing

Bugs and problems in the docs go in issues, questions and ideas go in Discussions, and fixes and features come as pull requests. A title starts with the area it touches, such as cli: what changed.

Contributing


Licence

MIT.

assay (awss1i/assay)

正在搜索数据库…

这是什么?「assay」是一个工具,它在真实的 Chromium 浏览器中打开你的网页,自动按下它找到的每一个按钮、填写每一个输入框并使用每一个控件,然后报告页面中自相矛盾的地方——无需编写测试,也不涉及 LLM。
它和 Playwright 或 Cypress 是同一类东西吗?不是——Playwright 和 Cypress 运行人工编写的测试,而 assay 通过发现页面上的控件来自动构建自己的检查,所以你不需要编写任何脚本。
怎么安装和运行它?用 'pip install assay-ui' 安装(如果找不到 pip 就用 'python3 -m pip install assay-ui');首次运行时如果缺少 Chromium 会自动下载,然后你把它指向一个提供你页面的文件夹。
使用它需要 API 密钥或 LLM 吗?不需要——assay 不用 LLM、不需要 API 密钥、没有使用成本,而且对同一页面的每次运行结果都相同。
它能抓住我页面上的每一个 bug 吗?不能——它无法判断意图,所以运行正常但计算结果错误的页面(比如合计加错了)通常能通过;而且它一次只检查一个本地提供的页面,不支持登录、真实网络调用或构建步骤。
assay 抓取真实 bug 的准确率如何?在 225 个 AI 编写的迷你应用上,它在 20 个有问题的页面中找出了 15 个真实 bug,且在 205 个正常页面上零误报;在故意加入 bug 的应用上,它在 50 个被加入的 bug 中找出了 12 个,且对原始版本零误报。
它能与 Claude Code 这类编程代理自动配合工作吗?可以——一个 skill 让它在 15 种受支持的运行框架(Claude Code、DeepSeek Harness、opencode、Codex、Cursor、Gemini CLI 等)中的任意一种写完页面后运行,还有一个面向 Claude Code 和 DeepSeek Harness 的插件,会在每个改动了页面的回合之后自动执行检查。
它实际上会标记什么问题?它寻找页面自相矛盾的地方:抛出的错误、点了没反应后来又突然好用的撤销按钮、列表为空却显示数量为 1、总数只增不减、游离的 NaN 值,或整个页面毫无响应。
为什么不干脆让 LLM 来审查代码?读代码只能告诉你它应该做什么,而不能告诉你它实际运行时做了什么;assay 则是真正把页面跑起来,在真实浏览器中与它交互,并在不使用模型、不产生 API 成本的情况下报告观察到的不一致。
作者
awss1i
大小
1.7 MB
星标
110
时长
2个月
提交 · 90 天