testivai-oss AGENTS.md

testivai-oss AGENTS.md is an instructions file for Codex, OpenCode from testivai/testivai-oss. It costs 2,176 tokens per session, scanned A, original, MIT.

A repository instruction file for AI coding assistants working on TestivAI, an open-source toolkit for checking whether a website’s appearance has changed. It documents the project, its folder layout, required commands, and rules such as using pnpm.

In plain words
What is it for?
Use it to guide work on the TestivAI codebase, including package management, visual and document comparison terminology, API changes, and rebuilding the committed GitHub Action output.
Why use it?
It gives coding agents the project-specific context and constraints they need before editing files, reducing incorrect commands and changes that would fail the project’s checks.

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/testivai/testivai-oss/agents-md
Clone the repo
git clone --depth 1 https://github.com/testivai/testivai-oss

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 testivai-oss AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/testivai/testivai-oss/agents-md.svg)](https://agentmods.dev/instructions/testivai/testivai-oss/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/testivai/testivai-oss/agents-md"><img src="https://agentmods.dev/badge/instructions/testivai/testivai-oss/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,176 This file is loaded in full into every session.
When invoked 2,176 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02176 $0.02176
Opus 5 $0.01088 $0.01088
Sonnet 5 $0.00435 $0.00435
Haiku 4.5 $0.00218 $0.00218

Measured 4d ago against content hash eeb8a9cf5ec4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testivai-oss 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 4d 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 · 243 lines

How it starts

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

testivai-oss — Agent Guide

Universal guide for AI coding assistants (Claude Code, Cursor, GitHub Copilot, Gemini, etc.) working inside this repository.

For Claude Code specifically, see CLAUDE.md. For task recipes, see SKILLS.md.


What this repo is

The public open-source home for the TestivAI visual regression SDKs. Everything here runs fully locally — no account, no API key, no server.


Hard rules — never violate these

  1. pnpm only. Never run npm install or yarn in the workspace root or any package. The only exception is inside action/ (the GitHub Action), which uses plain npm.

  2. Local-first, OSS-only. There is no hosted service. Never reference a cloud product, dashboard, account, or API key in docs or code. AI explanation is bring-your-own-model via @testivai/mcp (explain_snapshot). Core vocabulary: pixel diff, DOM diff, noise hint, layered analysis, baselines, threshold.

  3. action/dist/index.js must always be committed. After any change to action/src/, rebuild with cd action && npm run build and commit the updated dist/index.js. CI enforces this.

  4. Every public API change needs a changeset. Run pnpm changeset and commit the generated .changeset/*.md file with your PR.

  5. Do not push tags manually without understanding the action versioning scheme. Semver tags (v1.x.y) roll the v1 major tag automatically via CI. See the "Action versioning" section below.


Repo layout

packages/
  witness/      @testivai/witness           core SDK: CLI, diff engine, baselines, HTML report
  playwright/   @testivai/witness-playwright Playwright reporter + capture adapter
  webdriverio/  @testivai/witness-webdriverio WebdriverIO service + capture
  selenium/     @testivai/witness-selenium   Selenium adapter
  mcp/          @testivai/mcp                MCP server: results + diff images for AI agents

action/         testivai/testivai-oss@v1     GitHub Action: post PR comment + commit status
approve/        testivai/testivai-oss/approve@v1  GitHub Action: /testivai approve command handler

examples/       minimal working examples per framework
docs/           public Markdown documentation
e2e/            OSS smoke E2E test suite

Read the full file on GitHub · 243 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. 4d ago First seen · 243 lines · 2,176 tokens per session scan A eeb8a9cf5ec4

Subscribe to this mod's changes

testivai-oss AGENTS.md is an instructions file published in the GitHub repository testivai/testivai-oss (3 stars, last pushed 5d ago), licensed MIT. It adds 2,176 tokens to every session, about $0.0109 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-31.