English · 한국어
An Agent Skill for Claude Code and GitHub Copilot CLI.
Microsoft-Decision-1.1 picks every click, dropdown option, scroll and back step in a real browser.
Your agent's LLM only types text and checks the result.
Install ·
How it works ·
Providers ·
Benchmarks ·
Options
Why
| Agent drives Playwright itself | decision-playwright |
|---|
| Who picks each click | The big LLM, one turn per step (2–3 s) | Decision-1.1, one call per step (0.15 s at the server) |
| What the agent writes | Selectors and Playwright scripts, then fixes them | Only the text for a field, e.g. "Jane Doe" |
| Output tokens (test-page tasks) | 968 | 389 (−60%) |
| Long pages, forms, logins | The agent reads the page and decides | Built in: element ranking, submit before done, retries |
How it works
sequenceDiagram
autonumber
participant A as Host agent<br/>(Claude Code / Copilot CLI)
participant D as dpw daemon<br/>(Playwright)
participant M as Microsoft-Decision-1.1
participant B as Browser
A->>D: dpw run "goal" --url ...
loop until it needs text or is done
D->>B: read page (elements, text)
D->>M: which operation? which element?
M-->>D: CLICK e7 (p=0.99)
D->>B: click / select / scroll / back
end
D-->>A: NEEDS_TYPING {ref: e3, label: "Email"}
A->>D: dpw type e3 "[email protected]"
A->>D: dpw resume
D-->>A: NEEDS_VERIFICATION {url, title}
A->>D: dpw snapshot (the agent checks the result)
| Status | What the agent does |
|---|
NEEDS_TYPING | Decide the text from the goal → dpw type <ref> "<text>" → dpw resume |
NEEDS_VERIFICATION | Check the page with dpw snapshot. Decision output is never proof |
BLOCKED / STEP_LIMIT | dpw snapshot, do the one stuck step (type, open, press), then dpw resume |
Install
Requirements: Node.js 18+ and Chrome or Edge. If neither is found, Chromium is downloaded once.
The first command installs playwright-core into ~/.decision-playwright/runtime, so there is
no npm install step.
Any agent with the skills CLI (finds Claude Code, Copilot CLI and 40+ other agents):
npx skills add cheolmin/decision-playwright -g
GitHub CLI v2.90+:
gh skill install cheolmin/decision-playwright decision-playwright --scope user --agent github-copilot
gh skill install cheolmin/decision-playwright decision-playwright --scope user --agent claude-code
Claude Code plugin (update later with /plugin update):
/plugin marketplace add cheolmin/decision-playwright
/plugin install decision-playwright@cheolmin
Check the install. This installs the runtime, starts a browser and shows the provider:
node ~/.claude/skills/decision-playwright/scripts/dpw.mjs setup # or ~/.agents/skills/... / ~/.copilot/skills/...
Manual install
git clone https://github.com/cheolmin/decision-playwright.git
cp -r decision-playwright/skills/decision-playwright ~/.claude/skills/ # or ~/.copilot/skills/
For one project only, copy to <project>/.claude/skills/ or <project>/.github/skills/.
Tip: allow the command so approval prompts do not stop the loop, for example
copilot --allow-tool 'shell(node)', or add Bash(node:*) to the Claude Code permissions.
Quick start
export DECISION_PROVIDER=aigateway # see "Configure a provider"
export AIGATEWAY_URL=my-gw.eastus2-01.ai.gateway.azure.com
export AIGATEWAY_API_KEY=...
export DECISION_MODEL=my-foundry/decision-1-1
Then ask your agent: "Use decision-playwright to log in to saucedemo.com as standard_user and buy a backpack."
Or drive it by hand:
DPW="node ~/.claude/skills/decision-playwright/scripts/dpw.mjs"
$DPW run "Search for red shoes sorted by price" --url https://shop.example.com
# {"status":"NEEDS_TYPING","target":{"ref":"e3","label":"Query"},"timing":{...}}
$DPW type e3 "red shoes"
$DPW resume
# {"status":"NEEDS_VERIFICATION","page":{"url":".../results?q=red+shoes&sort=price"}}
$DPW stop
If the goal already has the text, pass it with --fill and Decision will not stop for those fields:
$DPW run "Log in and check out" --url https://www.saucedemo.com/ \
--fill '{"Username":"standard_user","Password":"secret_sauce","First Name":"Jane","Last Name":"Doe","Postal Code":"12345"}'
Configure a provider