feat: ship pixelbrowse as an opencode plugin - #129
Draft
tauanbinato wants to merge 1 commit into
Draft
Conversation
Adds plugin/opencode/, an npm package (opencode-pixelbrowse) that registers a screenshot custom tool via @opencode-ai/plugin. The tool runs pixelshot with the same visual-readability defaults as the Claude skill (--tile-height 1568, --wait-network-idle for URLs) and returns the tile paths for the agent to read. Closes StarTrail-org#117
|
@tauanbinato is attempting to deploy a commit to the andylizf's projects Team on Vercel. A member of the Team first needs to authorize it. |
tauanbinato
marked this pull request as draft
July 29, 2026 04:52
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.
Summary
Closes #117.
Adds
plugin/opencode/— an npm package (opencode-pixelbrowse) so opencode users can load pixelbrowse under"plugin"inopencode.json:{ "$schema": "https://opencode.ai/config.json", "plugin": ["opencode-pixelbrowse"] }The plugin registers a
screenshotcustom tool (via@opencode-ai/plugin) that:pixelshot <target> --output /tmp/pixelbrowse --tile-height 1568(plus--wait-network-idlefor URLs) — the same visual-readability defaults the Claude Code skill mandatesoutputandviewportWidthargsuv tool install pixelrag/pipx/pip) whenpixelshotis not onPATHAlso adds an opencode note in
plugin/README.mdand the main README's "Give Claude eyes" section.Notes for maintainers
npm publish --access publicfromplugin/opencode/(documented in its README). Happy to adjust the package name if you'd prefer a scoped one (e.g.@startrail/pixelbrowse).node --check,npm pack --dry-run, and an import smoke test (PixelbrowsePluginloads and registers thescreenshottool). Not yet exercised end-to-end inside a live opencode session.Test plan
npm publish --access publicfromplugin/opencode/pixelshoton PATH, add"plugin": ["opencode-pixelbrowse"]toopencode.jsonand run e.g.opencode run "screenshot https://news.ycombinator.com and summarize the top stories"