Add playwright-cli-sessions to Utils#131
Open
gabrielantonyxaviour wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding
playwright-cli-sessionsto 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 startkeeps a Chrome alive that all subsequent commands attach to. No long-lived server, no MCP stdio bottleneck, real shell¶llelism.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-cleanupandplaywright-elements. Happy to adjust the description or placement if it fits a different section better.