Skip to content

Add playwright-cli-sessions to Utils#131

Open
gabrielantonyxaviour wants to merge 1 commit into
mxschmitt:mainfrom
gabrielantonyxaviour:add-playwright-cli-sessions
Open

Add playwright-cli-sessions to Utils#131
gabrielantonyxaviour wants to merge 1 commit into
mxschmitt:mainfrom
gabrielantonyxaviour:add-playwright-cli-sessions

Conversation

@gabrielantonyxaviour
Copy link
Copy Markdown

Adding playwright-cli-sessions to the Utils section.

It's a stateless shell CLI on top of Playwright with one optional persistent Chrome that all commands attach to via CDP. The angle that's a little different from existing entries:

  • Stateless per-command, persistent browser — every CLI invocation is its own process; one optional browser start keeps a Chrome alive that all subsequent commands attach to. No long-lived server, no MCP stdio bottleneck, real shell & parallelism.

  • Saved logins as JSON files under ~/.playwright-sessions/. N parallel processes can share the same saved auth without coordination.

  • Agent-aware failure semantics (v0.10.0+) — every error prints a next steps: block, the CLI watches its own usage log and warns on blind-retry loops, and tab/browser-control loss has a dedicated error class. Designed specifically for the way AI coding agents use Playwright.

  • Repo: https://github.com/gabrielantonyxaviour/playwright-cli-sessions

  • npm: https://www.npmjs.com/package/playwright-cli-sessions

  • License: MIT

  • CI green, full scenario test suite

Inserted alphabetically in Utils between Playwright-cleanup and playwright-elements. Happy to adjust the description or placement if it fits a different section better.

Stateless Playwright CLI for AI agents. Optional persistent Chrome via
CDP, saved logins as parallel-safe JSON files, agent-aware failure
semantics (next-steps blocks on every error, blind-retry-loop detector,
dedicated browser-control-lost error class). MIT licensed.

Repo: https://github.com/gabrielantonyxaviour/playwright-cli-sessions
npm:  https://www.npmjs.com/package/playwright-cli-sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant