Skip to content

Prima: browser start/stop/clear, per-directory profile, workflow-ordered help - #316

Merged
DavertMik merged 9 commits into
mainfrom
prima-browser-start-stop
Nov 20, 2026
Merged

DavertMik merged 9 commits into
mainfrom
prima-browser-start-stop

Conversation

@DavertMik

Copy link
Copy Markdown
Contributor

What

  • prima browser start [url] / prima browser stop — open and close the browser through playwright-cli. A bare prima browser still behaves as start.
  • prima browser start keeps one browser profile per directory (~/.explorbot/profiles, one per directory and --pw-session), so a login survives browser stop. --incognito opens a clean profile.
  • prima browser clear closes the session and removes the profile kept for this directory.
  • prima browser start prints the AI model in use on an ai: line.
  • prima with no arguments prints its version, and lists commands in the order of a regular check: browser start, go, do, check, ux, video, browser stop, then state, verify, ask, research, pw. It names --purpose and --video. prima --help follows the same order.

Breaking

  • The assert alias of prima verify is removed.
  • The --session option of prima is removed; it never took effect on a playwright-cli browser.

Notes

  • A cookie set a few seconds before browser stop can be lost: Chrome writes cookies to disk on a delay. Plain playwright-cli open --persistent behaves the same.
  • playwright-cli session names are not per directory. With the default session already open from another directory, browser start attaches to it, and browser clear closes it.

Testing

  • bun test boat/prima/tests — 182 pass.
  • bun test tests/unit — 1805 pass; the one failure (ApibotConfigParser ... LANGFUSE_* env vars) is local only, caused by real LANGFUSE_* keys exported on the machine.
  • Checked against a real browser from two directories: storage is separate per directory, survives stop/start, and is gone after browser clear and with --incognito.

🤖 Generated with Claude Code

DavertMik and others added 9 commits November 18, 2026 03:01
Add 'prima state', which takes a fresh capture of the open page and
prints its url, title, state hash, the open overlay (or none) and the
paths to the aria, html and screenshot files. It calls no AI model.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merge the prima state branch so state can be listed. Bare prima and
--help list commands in the order of a regular check. browser start
prints the AI model in use. Drop the assert alias of verify.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@DavertMik
DavertMik merged commit 3526954 into main Nov 20, 2026
2 checks passed
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