https://github.com/SawyerHood/dev-browser
A Claude Skill to give your agent the ability to use a web browser
https://github.com/SawyerHood/dev-browser
claude-code playwright skills
Last synced: 1 day ago
JSON representation
A Claude Skill to give your agent the ability to use a web browser
- Host: GitHub
- URL: https://github.com/SawyerHood/dev-browser
- Owner: SawyerHood
- License: mit
- Created: 2025-12-02T19:20:20.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-12-23T17:42:28.000Z (29 days ago)
- Last Synced: 2025-12-26T23:57:29.246Z (26 days ago)
- Topics: claude-code, playwright, skills
- Language: TypeScript
- Homepage:
- Size: 531 KB
- Stars: 1,497
- Watchers: 7
- Forks: 96
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-agent-skills - Dev Browser
README
A browser automation plugin for [Claude Code](https://docs.anthropic.com/en/docs/claude-code) that lets Claude control your browser to test and verify your work as you develop.
**Key features:**
- **Persistent pages** - Navigate once, interact across multiple scripts
- **Flexible execution** - Full scripts when possible, step-by-step when exploring
- **LLM-friendly DOM snapshots** - Structured page inspection optimized for AI
## Prerequisites
- [Claude Code](https://docs.anthropic.com/en/docs/claude-code) CLI installed
- [Node.js](https://nodejs.org) (v18 or later) with npm
## Installation
### Claude Code
```
/plugin marketplace add sawyerhood/dev-browser
/plugin install dev-browser@sawyerhood/dev-browser
```
Restart Claude Code after installation.
### Amp / Codex
Copy the skill to your skills directory:
```bash
# For Amp: ~/.claude/skills | For Codex: ~/.codex/skills
SKILLS_DIR=~/.claude/skills # or ~/.codex/skills
mkdir -p $SKILLS_DIR
git clone https://github.com/sawyerhood/dev-browser /tmp/dev-browser-skill
cp -r /tmp/dev-browser-skill/skills/dev-browser $SKILLS_DIR/dev-browser
rm -rf /tmp/dev-browser-skill
```
**Amp only:** Start the server manually before use:
```bash
cd ~/.claude/skills/dev-browser && npm install && npm run start-server
```
### Chrome Extension (Optional)
The Chrome extension allows Dev Browser to control your existing Chrome browser instead of launching a separate Chromium instance. This gives you access to your logged-in sessions, bookmarks, and extensions.
**Installation:**
1. Download `extension.zip` from the [latest release](https://github.com/sawyerhood/dev-browser/releases/latest)
2. Unzip the file to a permanent location (e.g., `~/.dev-browser-extension`)
3. Open Chrome and go to `chrome://extensions`
4. Enable "Developer mode" (toggle in top right)
5. Click "Load unpacked" and select the unzipped extension folder
**Using the extension:**
1. Click the Dev Browser extension icon in Chrome's toolbar
2. Toggle it to "Active" - this enables browser control
3. Ask Claude to connect to your browser (e.g., "connect to my Chrome" or "use the extension")
When active, Claude can control your existing Chrome tabs with all your logged-in sessions, cookies, and extensions intact.
## Permissions
To skip permission prompts, add to `~/.claude/settings.json`:
```json
{
"permissions": {
"allow": ["Skill(dev-browser:dev-browser)", "Bash(npx tsx:*)"]
}
}
```
Or run with `claude --dangerously-skip-permissions` (skips all prompts).
## Usage
Just ask Claude to interact with your browser:
> "Open localhost:3000 and verify the signup flow works"
> "Go to the settings page and figure out why the save button isn't working"
## Benchmarks
| Method | Time | Cost | Turns | Success |
| ----------------------- | ------- | ----- | ----- | ------- |
| **Dev Browser** | 3m 53s | $0.88 | 29 | 100% |
| Playwright MCP | 4m 31s | $1.45 | 51 | 100% |
| Playwright Skill | 8m 07s | $1.45 | 38 | 67% |
| Claude Chrome Extension | 12m 54s | $2.81 | 80 | 100% |
_See [dev-browser-eval](https://github.com/SawyerHood/dev-browser-eval) for methodology._
### How It's Different
| Approach | How It Works | Tradeoff |
| ---------------------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------------ |
| [Playwright MCP](https://github.com/microsoft/playwright-mcp) | Observe-think-act loop with individual tool calls | Simple but slow; each action is a separate round-trip |
| [Playwright Skill](https://github.com/lackeyjb/playwright-skill) | Full scripts that run end-to-end | Fast but fragile; scripts start fresh every time |
| **Dev Browser** | Stateful server + agentic script execution | Best of both: persistent state with flexible execution |
## License
MIT
## Author
[Sawyer Hood](https://github.com/sawyerhood)