Skip to content

feat(cli): center the skill and briefing on cuttle pw, drop host driver routing - #75

Merged
tenequm merged 4 commits into
mainfrom
docs/skill-pw-first
Sep 18, 2026
Merged

tenequm merged 4 commits into
mainfrom
docs/skill-pw-first

Conversation

@tenequm

@tenequm tenequm commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Centers the agent-facing surface on the one driver the image ships - cuttle pw (Microsoft's playwright-cli, run in the container, pre-attached) - and stops routing agents to host-side drivers the image never carried.

What changed

  • cli/SKILL.md rewrite (16357 -> 12753 bytes, budget 16384). New cuttle pw section (verbs, refs, driver state, files, --name/--context before pw, the lease and --takeover, the go-back dead-ref and re-attach traps). New cuttle jev-browse section marked EXPERIMENTAL, with the exit-code table and the read-only-task weakness. Every agent-browser / browser-use line is gone, including the frontmatter description; allowed-tools drops Bash(just:*), Bash(playwright-cli:*), Bash(agent-browser:*), Bash(browser-use:*). Fixes: no --humanize=false advice (humanize stays on), the user agent is described version-agnostically (Chrome/<major>.0.0.0; the engine is 151 per versions.env, the old text said 148), the secret example is cuttle pw fill. All ten load-bearing phrases in skill_test.go are kept. Claims checked against the code: a cut-off fill surfaces as a timeout (not a character count), cuttle logs names a click target only when another element took the point, only blocked/out-of-budget jev endings print the handoff in text mode, --extract skips error endings and must not meet a secret --text.
  • Host driver detection removed. drivers.go is gone - the executable name and the bundled version pin move into playwright.go; detectDrivers, the registry, the rank and formatAttach go. The up/open/status briefing no longer prints install hints or a routing paragraph: it names the bundled driver, <cuttle> pw <command> (pointing at pw --help), and the jev-browse loop marked EXPERIMENTAL. The dialog hint says <cuttle> pw dialog-accept.
  • cuttle pw --help prints the wrapper help and then the bundled driver's own playwright-cli --help (the full verb list), execed in the container. The driver half is best-effort: with no running instance, or an image that predates the bundled driver, it prints the wrapper help plus a note naming why and still exits 0. The wrapper help steers navigation to goto (re-running open/attach restarts the driver session), and the --cdp-port/--vnc-port help lists every verb that auto-discovers them. cuttle pw --help <verb> now passes through to the driver's per-verb help instead of repeating the wrapper's.
  • jev-browse handoff hint now carries the instance selection: the stop brief and the JSON next field print cuttle --name x pw snapshot on a named instance (previously a bare cuttle pw snapshot, which reaches the default container). The invocation playwrightExecer already computed is threaded through jev.Options.Cuttle.
  • cuttle jev-browse --help is marked experimental in Short and Long, says --url is required on a fresh session, warns that read-only tasks may not self-terminate, and notes --extract runs on every ending and is refused with --mock. Examples are now navigation-shaped.
  • cuttle secret --help example uses cuttle pw fill f1e17, drops the agent-browser mention and the redundant --cdp-port (cuttle --name staging secret ls).
  • Knowledge bundle: decisions/playwright-cli-is-the-driver-interface.md records the host-driver drop (why, and that the CDP endpoint still accepts any client), rewords "agent-browser repos" to "browser-agent repos", and bumps generated; its index line follows the new description.
  • Root kasetto.yaml and kasetto.lock deleted - an all-commented template and its orphaned lock; nothing (lefthook, .githooks, CI) references them.

Tests

  • briefing_test.go: briefing names only the bundled driver, marks the loop experimental, and never mentions agent-browser / browser-use / install hints; named-instance commands include pw --help and pw dialog-accept.
  • playwright_test.go: driver help execs playwright-cli --help with the run-as-cuttle pw header; --help with no instance still prints the wrapper help plus the note.
  • jev/loop_test.go: the handoff in the brief and the JSON next carries --context/--name.
  • jevbrowse_test.go: help is marked experimental and documents --url.
  • Live check against a throwaway cuttle:local container (--name docs2probe, since removed): briefing output, pw --help (wrapper + driver help), pw --help click, and a jev-browse --mock stop printing cuttle --name docs2probe pw snapshot in prose and JSON.

Notes

Release notes

cuttle up now points only at the bundled cuttle pw driver - no host driver detection or install hints. cuttle pw --help also lists the driver's own verbs. jev-browse is marked experimental, and its handoff command keeps your --name/--context.

…er routing

Rewrite the embedded SKILL.md around the bundled driver and an experimental jev-browse section, drop agent-browser/browser-use and host playwright-cli detection from the briefing, print the driver's own help from cuttle pw --help, hand jev-browse runs off to the instance they drove, and remove the unused root kasetto.yaml.
…s.go

pw --help no longer exits 127 on an image without the bundled driver; the
wrapper help steers navigation to goto; the port flag help lists every verb
that auto-discovers; drivers.go folds into playwright.go and the orphaned
kasetto.lock goes with kasetto.yaml.
…nd extract

A cut-off fill surfaces as a timeout, not a character count; only a shifted click is logged; only blocked and budget endings print the handoff in text mode; --extract skips error endings; a secret --text must not meet --extract; a password with a held secret is not a handoff.
@tenequm
tenequm force-pushed the docs/skill-pw-first branch from 5472da7 to 5a4db7d Compare September 18, 2026 21:14
@tenequm
tenequm marked this pull request as ready for review September 18, 2026 21:18
@tenequm
tenequm merged commit 33eca16 into main Sep 18, 2026
9 of 10 checks passed
@tenequm
tenequm deleted the docs/skill-pw-first branch September 18, 2026 21:18
tenequm added a commit that referenced this pull request Sep 19, 2026
#75 deleted `kasetto.yaml` and `kasetto.lock`, describing them as an
all-commented template with nothing referencing them. The yaml is live
config: it declares the `go-dev` skill from `tenequm/skills` for
claude-code and codex at project scope, so a fresh clone or worktree
running `kst sync` stopped getting it.

This restores both files byte-for-byte from before #75 (`33eca16^`). No
code changes.
tenequm added a commit that referenced this pull request Sep 21, 2026
🤖 I have created a release *beep* *boop*
---


## [0.15.0](v0.14.2...v0.15.0)
(2026-09-21)


### Features

* bundle playwright-cli into the image with a cuttle pw passthrough
([#67](#67))
([28d9846](28d9846))
* **cli:** center the skill and briefing on cuttle pw, drop host driver
routing ([#75](#75))
([33eca16](33eca16))
* **cli:** colored jev-browse output
([#70](#70))
([cf6f109](cf6f109))
* **cli:** cuttle jev-browse - autonomous browsing loop on the bundled
driver ([#66](#66))
([0496957](0496957))
* **cli:** deliver pw action snapshots as a host file, secrets masked
([#103](#103))
([78adbbb](78adbbb))
* **cli:** make --context/--name global so pw and jev-browse reach any
instance ([#74](#74))
([9df5c33](9df5c33))
* **cli:** zero-ceremony cuttle pw - auto-attach on demand, allow open
([a7e6491](a7e6491))
* **jev:** withhold write actions and halve jev-browse run time
([#102](#102))
([9ca9386](9ca9386))
* **serve:** mask password field values in /snapshot
([#109](#109))
([2a352b5](2a352b5))
* **serve:** session lease - one driver at a time, with takeover
([#69](#69))
([87724c8](87724c8))


### Bug Fixes

* **backend:** keep profile cleanup and remote argv from reaching past
their own ([#92](#92))
([f52cfd3](f52cfd3))
* **cli:** close the gaps a review of the lifecycle fixes found
([#90](#90))
([c46aa5e](c46aa5e))
* **cli:** close the lifecycle gaps a stress run left open
([#88](#88))
([899a535](899a535))
* **cli:** discarding the profile removes the instance's host snapshot
dir ([#113](#113))
([57cd07a](57cd07a))
* **cli:** downloads --wait accepts a finished download, logs drops
D-Bus spam ([#111](#111))
([dcc2f46](dcc2f46))
* **cli:** name the in-page dialog behind a pw click timeout
([#99](#99))
([11beeeb](11beeeb))
* **cli:** never fall back to another instance when the selected one is
stopped ([#78](#78))
([a1df361](a1df361))
* **cli:** re-attach the driver after a restart leaves a stale session
([#77](#77))
([bbeb0f0](bbeb0f0))
* **cli:** run --extract on every ending, not only done
([#71](#71))
([4954195](4954195))
* **jev:** judge done on the page that landed, and end done on a none
above even odds ([#108](#108))
([a9cb5a8](a9cb5a8))
* **jev:** offer filter-apply controls the write gate withheld
([#114](#114))
([bdf440a](bdf440a))
* **jev:** read quoted snapshot lines and keep field values out of
--extract ([#89](#89))
([09111a2](09111a2))
* **pw:** compact find output, downloads into a directory, quieter logs
([#116](#116))
([62f2ca8](62f2ca8))
* **pw:** snapshot links a host file like an action, and the console log
line names its verb
([#110](#110))
([c902c58](c902c58))
* **serve:** dismiss a native dialog the driver leaves open
([#87](#87))
([14f24cb](14f24cb))
* **serve:** keep the default seed's downloads across browser relaunch
([aac8e40](aac8e40))
* **serve:** keep the dialog watch alive through a signal shutdown
([#94](#94))
([4f4f1d0](4f4f1d0))
* **serve:** pool-mode reaping, capture tab, hung tabs and launch bursts
([#86](#86))
([3b42ea2](3b42ea2))
* **serve:** skip an idle reap whose timer a launch has since re-armed
([#93](#93))
([c667868](c667868))
* **smoke:** never exec into a container the run was not pointed at
([#79](#79))
([9075244](9075244))
* **viewer:** keep websocket inside proxy prefix
([#62](#62))
([3b10ba7](3b10ba7))


### Performance Improvements

* **cli:** run a pw verb in one docker exec, lease check included
([#100](#100))
([a9c3c90](a9c3c90))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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