Skip to content

agent-browser-shield

Browser extension that cleans pages and blocks prompt injection for browsing AI agents

Source available · PolyForm-Shield-1.0.0 AI-native

Listed by , founder & editor

65

Health

Active

Overview

Stars

35

Last commit

18 days ago

Nov 2026

Repository age

6 months

since May 2026

Latest version

v2026.9.3.29

Sep 2026

Contributors

–

2 active in 90 days

Releases

25

last 12 months

Language

TypeScript

Agent Browser Shield is a browser extension that sits between an AI agent and the web pages it visits. It cleans each page before the model reads it. The project describes 35 or more rules and labels itself an alpha prototype, so rulesets may change without notice.

It strips page chrome such as footers, cookie banners, chat widgets and sponsored content. It masks PII and credentials, and it suppresses hidden text, HTML comments and user-generated content that could carry prompt injection. It also blocks dark patterns and hides engagement rails that distract the agent.

The authors benchmarked it with gpt-5-mini through Browserbase on 19 scraping tasks, three runs each. Average token use fell about 11%, and task success rose from 81% to 91%. A few pages got worse. A script lets you run the same off-versus-on comparison on your own tasks.

The code is TypeScript under the PolyForm Noncommercial license, which is source-available and not open source. Commercial use is not allowed under that license.

Who it's for

Developers running browser-use agents

It reduces tokens and filters hidden injection text before the model sees a page.

Skip if: Your agent does not use a browser extension environment.

Researchers testing agent safety

The benchmark harness lets you measure token and accuracy changes on your own sites.

Skip if: You need a stable ruleset, since this is an alpha.

Hobbyists building personal web agents

Noncommercial use is permitted, and it masks PII automatically.

Skip if: You plan to use it in a commercial product.

The problem it solves

Browsing agents read everything on a page, including cookie banners, ads and hidden text that can carry injected instructions. That wastes tokens and can steer the agent off task. This extension filters pages before they reach the model.

Strengths

  • Masks PII and credentials before they reach the model
  • Suppresses hidden text and HTML comments that can carry injections
  • Measured about 11% fewer tokens and 81% to 91% task success
  • Benchmark script to test your own sites
  • Frequent releases, with 25 in the last year

Trade-offs

  • PolyForm Noncommercial license bars commercial use
  • Alpha prototype; rulesets may change without notice
  • Some pages regress under the shield
  • Benchmark covers only 19 scraping tasks

Frequently asked questions

Is it open source?

No. It uses the PolyForm Noncommercial 1.0.0 license, which is source-available and does not allow commercial use.

Can I self-host it?

It is a browser extension that runs in your browser, not a server you host.

Does it really save tokens?

In the authors' test on 19 tasks, average usage fell about 11%. Results vary by page, and some pages regress.

Is it stable?

It is labeled an alpha prototype, and rulesets may change without notice.

Similar tools in AI security and guardrails

onequery

AI security and guardrails

16 2 4 months ago Slowing Apache-2.0

leashed

AI security and guardrails

12 9 months ago Dormant MIT

Proxed AI

AI security and guardrails

9 AGPL-3.0