Repository navigation
feat(agent-task): read-only product_site with product_page_view tool - #2643
Merged
Merged
Conversation
This was referenced Dec 5, 2026
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.
Closes #2639.
Agent tasks can now look at a running product site instead of inferring its UI from source. Docs Agent is the first consumer (Automattic/docs-agent#197).
Change
product_siterequest field (blueprint,plugins,start_url, optionallogin_role,wp), exposed on therun-agent-taskreusable workflow. When it's set, the CLI boots that site before the agent turn and tears it down in afinally.product_page_view({ path })tool, declared only whenproduct_siteis set. It returns the page title, bounded visible text, a heading outline and the interactive elements (links, buttons, field labels), and stages a PNG screenshot underproduct-site/screenshotsin the uploaded artifacts.product_site, runs are unchanged.Verification (rebased on v0.36.3)
tests/product-site-page-view.test.tsboots a real WordPress with a fixture plugin: the page view returns the plugin's real text and a screenshot, and a page that auto-submits a form and fires a REST POST leaves the site unchanged. All 4 cases pass.tests/product-site-workflow.test.ts,tests/run-agent-task-reusable-workflow-interface.test.ts,tests/agent-task-reusable-workflow.test.ts,scripts/php-product-site-executor-smoke.phpandnpm run buildall pass.AI disclosure: Claude Opus (Anthropic) wrote this in a Homeboy Cook (all 3 gates green). Franklin (Claude in the Pi coding agent, directed by @chubes4) reviewed it, rebased it after
mainmoved, re-ran the tests and published it.