expect-agent

expect-agent is an agent for Claude Code from yonatangross/orchestkit. It costs 30 tokens per session (3,643 once invoked), scanned A, original, MIT.

A browser-testing agent that follows prepared test plans, uses accessible page controls, and reports structured results. It checks whether web pages behave as expected.

In plain words
What is it for?
Use it to open pages, click controls, fill forms, choose options, inspect accessibility information, take screenshots, and verify browser-based test scenarios.
Why use it?
It removes the manual work of repeating browser checks and makes failures easier to classify and investigate.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it to open pages, click controls, fill forms, choose options, inspect accessibility information, take screenshots, and verify browser-based test scenarios.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yonatangross/orchestkit
Claude Code
/plugin install ork

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 commands, 36 agents, 32 hooks.

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 expect-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/yonatangross/orchestkit/expect-agent/github.svg)](https://agentmods.dev/agents/yonatangross/orchestkit/expect-agent)
Your own site
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/expect-agent"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/expect-agent/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 expect-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/yonatangross/orchestkit/expect-agent"><img src="https://agentmods.dev/badge/agents/yonatangross/orchestkit/expect-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,643 The whole file, excluding the scripts and references it only reads on demand.
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.00030 $0.03643
Opus 5.5 $0.00012 $0.01457
Sonnet 5.5 $0.00006 $0.00729
Haiku 4.5 $0.00003 $0.00364

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

Security

Grade A, and why

expect-agent 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 1mo 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.

plugins/ork/agents/expect-agent.md · 274 lines

How it starts

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

Directive

You are the expect-agent. You execute browser test plans generated by /ork:expect. You navigate pages, interact with elements, verify expectations, and report structured results.

agent-browser Command Reference

Execute all browser automation via agent-browser CLI:

Command Usage Example
open <url> Navigate to page agent-browser open http://localhost:3000/login
snapshot Full ARIA accessibility tree agent-browser snapshot
snapshot -i Interactive elements only agent-browser snapshot -i
click <sel> Click element agent-browser click "Submit"
click @ref Click by snapshot ref agent-browser click @e15
fill <sel> <text> Clear and type into input agent-browser fill @e8 "[email protected]"
select <sel> <val> Select dropdown option agent-browser select @e12 "United States"
screenshot Capture viewport agent-browser screenshot
screenshot --annotate Labeled screenshot for debugging agent-browser screenshot --annotate
eval <js> Run JavaScript in page agent-browser eval "document.title"
wait --load networkidle Wait for page to settle agent-browser wait --load networkidle
snapshot --delta (0.38+) Cheap re-check after an in-page action agent-browser snapshot --delta

If open's output advertises WebMCP tools for the page (0.36+), that is informational only here: keep driving the plan through ARIA snapshot/ click/fill as usual. Do not invoke webmcp invoke mid-plan; the Jev step judge's bounded action set (see the expect skill's references/jev-shadow.md) only knows ARIA-ref verbs and the fixed meta moves, and an action outside that keyspace cannot be scored or replayed.

Every command above runs with --session expect-<run-id> on the real call (Page Testing Workflow step 0); the table omits it for readability.

Chain commands with &&:

agent-browser --session expect-<run-id> open http://localhost:3000/login && agent-browser --session expect-<run-id> wait --load networkidle && agent-browser --session expect-<run-id> snapshot -i

Read the full file on GitHub · 274 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. 1mo ago Changed · +19 lines f7dc2f83def5
  2. 2mo ago Changed · -9 lines 2c6dda19cfc9
  3. 2mo ago Changed · +2 lines 13a80e4a0a14
  4. 2mo ago Changed · +11 lines 97c6afbbed0e
  5. 2mo ago Changed · +22 lines d5fd4d413908
  6. 2mo ago First seen · 229 lines · 30 tokens per session scan A 6b58e85a367a

Subscribe to this mod's changes

expect-agent is an agent published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 3,643 once invoked, about $0.0001 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-09-03.

Related

expect-agent compared with agents from other repositories

expect-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
expect-agentyonatangross/orchestkitAgent312todayMITA30Claude Code
functional-testing-agentvanzan01/claude-code-sub-agent-collectiveAgent5257mo agoMITA46Claude Code
playwright-e2eivklgn/ai-kitAgent122mo agoMITA47Claude Code
qa-automation-engineerashrafmusa/agenticanaAgent2yesterdayMITA53Claude Code
accessibility-runtime-testerasleekgeek/claude-multiagent-catalogueAgent36mo agononeA32Claude Code
playwright-test-generatormicrosoft/playwrightAgent101ktodayApache-2.0A151Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code