From c548f3217872d5b89531ae8d991240fcadab4be9 Mon Sep 17 00:00:00 2001 From: Yunfan Yang Date: Tue, 1 Dec 2026 16:35:17 -0500 Subject: [PATCH] Add media skills for reported screenshots to the orchestration plugin Oz cloud agents can now publish a screenshot with the computer-use report_screenshot tool. Give Codex runs the rules that go with it: - oz-report-pr: also covers the managed artifacts block in the pull request description, printed by `harness-support pr-media-markdown`. - oz-media-links (new): shareable links for reported screenshots and recordings, for destinations other than a pull request description. - oz-upload-file: no longer suggests itself for screenshots when the report_screenshot tool is available. Also fixes a typo in its description. Every rule applies only when the tool or command is present, and a failed command means carrying on without it, so the skills are safe with an older Warp client or server. Release orchestration 0.4.3. Co-Authored-By: Warp --- .agents/plugins/marketplace.json | 2 +- .../orchestration/.codex-plugin/plugin.json | 2 +- .../skills/oz-media-links/SKILL.md | 18 +++++++++++++++++ .../skills/oz-report-pr/SKILL.md | 20 ++++++++++++++++++- .../skills/oz-upload-file/SKILL.md | 8 +++++--- 5 files changed, 44 insertions(+), 6 deletions(-) create mode 100644 plugins/orchestration/skills/oz-media-links/SKILL.md diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json index 3293d15..5673ec0 100644 --- a/.agents/plugins/marketplace.json +++ b/.agents/plugins/marketplace.json @@ -26,7 +26,7 @@ "installation": "AVAILABLE", "authentication": "ON_INSTALL" }, - "version": "0.4.2", + "version": "0.4.3", "category": "productivity", "tags": ["terminal", "warp", "oz"] } diff --git a/plugins/orchestration/.codex-plugin/plugin.json b/plugins/orchestration/.codex-plugin/plugin.json index 2552e62..7c993f3 100644 --- a/plugins/orchestration/.codex-plugin/plugin.json +++ b/plugins/orchestration/.codex-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "orchestration", "description": "Warp integration for Codex in Oz cloud agent environments, including parent-message delivery hooks and skills", - "version": "0.4.2", + "version": "0.4.3", "author": { "name": "Warp", "url": "https://warp.dev" diff --git a/plugins/orchestration/skills/oz-media-links/SKILL.md b/plugins/orchestration/skills/oz-media-links/SKILL.md new file mode 100644 index 0000000..2e6dc74 --- /dev/null +++ b/plugins/orchestration/skills/oz-media-links/SKILL.md @@ -0,0 +1,18 @@ +--- +name: oz-media-links +description: Get shareable links for the screenshots and video recordings this Oz run reported, for posting verification evidence anywhere other than a pull request description (e.g. a Slack message, an issue or PR comment, a Linear comment, or a chat reply). +--- +Screenshots and video recordings reported during this run can be shared outside of pull request descriptions. When posting verification evidence to any other destination (e.g. a Slack message, an issue or PR comment, a Linear comment, or a chat reply), get shareable links for the current run's captures by running: + +```sh +"$OZ_CLI" harness-support media-artifact-links +``` + +Each entry has a `kind` (`IMAGE` for a screenshot, `VIDEO` for a video recording), a `description`, and a `view_link`. Add `--output-format json` to get the same entries as JSON. + +- Only media reported in this run is returned: screenshots reported with the `report_screenshot` tool and recordings published by `stop_recording`. Captures made by child agents are not included; to share a child agent's media, ask that agent to run this command in its own run and message the links back to you. +- A `view_link` is permission-checked when opened, so it is safe to post externally. +- Pick only the entries relevant to your message — you do not need to post all of them — and format them per the destination's conventions. +- Only add `--include-embeddable-urls` when the destination renders markdown images and you intend to embed content inline; embedded artifacts are made publicly accessible to anyone with the link. Entries then also carry an `embed_url`, and videos a `thumbnail_url`, but only when the team's artifact attachment policy allows embedding. When an entry has no `embed_url`, post its `view_link` instead. +- Do NOT use this for pull request descriptions; use the `oz-report-pr` skill for those. +- If the command fails for any reason, for example because this version of the Oz CLI does not have it, the server reports that media links are not available, or the team's policy disables sharing them, post your message without the links and carry on. Do not publish the media some other way to work around it. diff --git a/plugins/orchestration/skills/oz-report-pr/SKILL.md b/plugins/orchestration/skills/oz-report-pr/SKILL.md index 1f0a616..f67fad0 100644 --- a/plugins/orchestration/skills/oz-report-pr/SKILL.md +++ b/plugins/orchestration/skills/oz-report-pr/SKILL.md @@ -1,7 +1,9 @@ --- name: oz-report-pr -description: Report a pull request back to the Oz platform after creating one. +description: Report a pull request back to the Oz platform after creating one, and get the managed artifacts block (screenshots, video recordings, plans) that belongs in its description when creating the pull request or refreshing its artifacts. --- +## Report the pull request + After creating a pull request, report it to Oz by running: ```sh @@ -9,3 +11,19 @@ After creating a pull request, report it to Oz by running: ``` Replace `` with the full pull request URL and `` with the branch name. + +## Artifacts block in the pull request description + +The pull request description carries one managed artifacts block holding the video recordings, screenshots and plans this run produced. When creating a pull request or refreshing its managed artifacts (for example after reporting more screenshots or recordings), run: + +```sh +"$OZ_CLI" harness-support pr-media-markdown +``` + +- It prints the complete block, from `` to ``, with its contents already in the required order: video recordings, then screenshots, then plans. Put what it prints at the end of the pull request description, verbatim, after the body you write. Do not edit or reorder it, and do not wrap it in another pair of markers. +- Any attribution line your instructions ask for (for example a "This PR was created by Warp" line) is part of the body you write: put it at the end of that body, above the block, never below it. +- Always include the block, even when it is empty. If the pull request already exists and its description has no block yet, edit the description to add it at the end. +- Anything printed after the end marker is regression context. Keep it where it is printed: after the block, outside it, with nothing but blank lines between the end marker and it. It must be the very last content of the description. Add nothing after its last line, not even a blank line. +- When refreshing, fetch the current pull request description and replace only the complete block, start marker through end marker, with the newly printed block, preserving every byte outside it. Keep at most one block. +- The block only contains media that was published to this run: screenshots reported with the `report_screenshot` tool and recordings published by `stop_recording`. An image a tool merely showed you, or a file uploaded as a plain artifact, does not appear in it. +- If the command fails for any reason, for example because this version of the Oz CLI does not have it or this Warp server does not support it, write the description without the block and carry on. Do not write the markers or the media markdown by hand. diff --git a/plugins/orchestration/skills/oz-upload-file/SKILL.md b/plugins/orchestration/skills/oz-upload-file/SKILL.md index 4314123..da3257e 100644 --- a/plugins/orchestration/skills/oz-upload-file/SKILL.md +++ b/plugins/orchestration/skills/oz-upload-file/SKILL.md @@ -1,15 +1,17 @@ --- name: oz-upload-file -description: Upload a local file to the Oz platfom as a conversation artifact. +description: Upload a local file to the Oz platform as a conversation artifact. --- -Use this for supplemental files that should be attached to the task but should NOT be committed to the repo or included in the PR — e.g. screenshots, logs, generated reports, or other large or derived outputs. +Use this for supplemental files that should be attached to the task but should NOT be committed to the repo or included in the PR — e.g. logs, generated reports, or other large or derived outputs. Do NOT use this for source code, tests, docs, or any change that should be reviewed and merged through a PR. Those belong in a commit, not as an artifact. +Do NOT use this for a screenshot of the screen when your tool list has the `report_screenshot` tool: report the screenshot with that tool instead. A file uploaded here is a plain file artifact, so it is left out of the pull request description's artifacts block and of media links. Only when `report_screenshot` is not in your tool list is uploading the image file here the way to attach it. + Only call this after the file already exists on disk. ```sh "$OZ_CLI" artifact upload '' --run-id "$OZ_RUN_ID" --description '' ``` -Replace `` with the absolute path to the file. Include a `--description` when it adds useful context about what the file is or why it is attached (e.g. "screenshot of failing login page", "profiler output for slow query"). Omit when the file name alone is self-explanatory. +Replace `` with the absolute path to the file. Include a `--description` when it adds useful context about what the file is or why it is attached (e.g. "server log from the failing request", "profiler output for slow query"). Omit when the file name alone is self-explanatory.