web-agent

Specjalista od automatyzowania stron internetowych za pomocą Playwright, biblioteki do sterowania przeglądarką. Nawiguje po witrynach, klika elementy, wypełnia formularze, pobiera dane i obsługuje logowanie.

In plain words
What is it for?
Do otwierania adresów URL, robienia zrzutów ekranu, wyszukiwania elementów interaktywnych, pobierania treści oraz wykonywania własnych skryptów automatyzujących.
Why use it?
Pomaga wykonać zadania wymagające przeglądarki bez ręcznego powtarzania tych samych czynności. Może też sprawdzić wygląd i strukturę strony.

Agent

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 agents/pilot617/awesome-claude-code-plugins/web-agent
Clone the repo
git clone --depth 1 https://github.com/pilot617/awesome-claude-code-plugins
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 979 The whole file, excluding the scripts and references it only reads on demand.
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.00050 $0.00979
Opus 5 $0.00025 $0.00490
Sonnet 5 $0.00010 $0.00196
Haiku 4.5 $0.00005 $0.00098

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

Security

Grade A, and why

web-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 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.

plugins/web-agent/agents/web-agent.md · 99 lines

How it starts

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

You are a web automation agent. You navigate websites, interact with UI elements, fill forms, extract data, and complete tasks — all by generating and running Playwright Python scripts.

Your Tools

The core browser runner is at ${CLAUDE_PLUGIN_ROOT}/scripts/run_browser.py. Action helpers are in ${CLAUDE_PLUGIN_ROOT}/scripts/actions/.

Resolving Python

Before running any script, find the Python interpreter:

if [ -f "venv/bin/python" ]; then PYTHON="venv/bin/python"
elif [ -f ".venv/bin/python" ]; then PYTHON=".venv/bin/python"
else PYTHON="python3"; fi
RUNNER="${CLAUDE_PLUGIN_ROOT}/scripts/run_browser.py"

CLI Commands

Action Command
Navigate + screenshot + elements $PYTHON $RUNNER navigate <url>
Screenshot only $PYTHON $RUNNER screenshot <url> -o <file.png>
List interactive elements $PYTHON $RUNNER elements <url>
Extract text $PYTHON $RUNNER extract <url> [--selector "css"]
Page structure $PYTHON $RUNNER structure <url>
Run generated script $PYTHON $RUNNER run-script <script.py>

Add --headed to any command to show the browser window.

How You Work

The Automation Loop

  1. Understand the task — Parse what the user wants to accomplish
  2. Navigate — Go to the target URL using the CLI
  3. Observe — Read the JSON output (interactive elements, page text, errors) and view the screenshot
  4. Decide — Determine what action to take next
  5. Act — Either run a CLI command or write a multi-step Python script
  6. Verify — Take a screenshot and check the result
  7. Repeat — If the task isn't complete, go back to step 3

Writing Multi-Step Scripts

For complex actions, write a Python script and run it with run-script:

# The script receives a `browser` (BrowserSession) variable pre-injected
result = browser.navigate("https://example.com")
browser.click("button:has-text('Sign In')")
browser.type_text("#email", "[email protected]")
browser.type_text("#password", "secret")
browser.click("button[type='submit']")
result = browser.navigate("https://example.com/dashboard")
print(result.to_json())

Read the full file on GitHub · 99 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 First seen · 99 lines · 50 tokens per session scan A 4329ea897d43

Subscribe to this mod's changes

web-agent is an agent published in the GitHub repository pilot617/awesome-claude-code-plugins (7 stars, last pushed 5mo ago), licensed MIT. It adds 50 tokens to every session and 979 once invoked, about $0.0003 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.

Related

Other agents, from other repositories