Add GitHub PR comment trigger workflow for self-hosted k8s workers (REMOTE-2003)#89
Draft
seemeroland wants to merge 1 commit into
Draft
Add GitHub PR comment trigger workflow for self-hosted k8s workers (REMOTE-2003)#89seemeroland wants to merge 1 commit into
seemeroland wants to merge 1 commit into
Conversation
Adds consumer-workflows/gh-pr-comment.yml — a GitHub Actions workflow template that enables the @oz-agent comment trigger pattern for teams running self-hosted Kubernetes workers. Unlike oz-agent-action's respond-to-comment.yml (which runs oz on GitHub-hosted runners using Warp cloud agents), this workflow calls the Warp REST API directly with config.worker_host targeting the customer's self-hosted worker ID. The Oz agent then runs inside the customer's k8s cluster, checks out the PR branch, makes the requested changes, commits, and replies to the original comment. Key properties: - No oz CLI installation required on the GitHub runner (curl only) - Works on GitHub-hosted runners OR self-hosted runners (any Linux) - Worker routing via config.worker_host in the Warp API request - GitHub credentials injected into task pods via kubernetesBackend.podTemplate Also adds a 'GitHub PR Integration' section to README.md documenting: - How the trigger flow works end-to-end - K8s worker GitHub credential setup (GITHUB_TOKEN or SSH key) - Comparison table vs. oz-agent-action approach - Customization guidance for prompts and skills Resolves REMOTE-2003. Co-Authored-By: Oz <oz-agent@warp.dev>
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
Adds a GitHub PR comment trigger workflow for self-hosted Kubernetes workers (REMOTE-2003).
Problem: Enterprise customers running self-hosted Oz workers on Kubernetes (e.g. via the Helm chart) had no documented path to trigger Oz from GitHub PR comments (
@oz-agentmentions). The existingrespond-to-comment.ymlinoz-agent-actionroutes tasks to Warp cloud agents, not to customer-managed k8s workers.Solution: A new consumer workflow template that calls the Warp REST API directly with
config.worker_hosttargeting the customer's k8s worker ID, so PR-comment-triggered tasks run entirely within the customer's cluster.Changes
consumer-workflows/gh-pr-comment.yml(new)GitHub Actions workflow template that customers copy into
.github/workflows/. When a PR comment containing@oz-agentis detected:POST https://app.warp.dev/api/v1/agent/runswithconfig.worker_hostset to the customer'sOZ_WORKER_IDvariableThe workflow runs on GitHub-hosted runners; no oz CLI is needed on the runner — only
curl,jq, and theghCLI. The Oz agent runs inside the customer's k8s cluster, checks out the PR branch, makes changes, commits, pushes, and replies.README.mdNew GitHub PR Integration section covering:
oz-agent-action respond-to-comment.ymlDesign decisions
dpkg -i.oz-agent-actionapproach, the workflow dispatches the run and returns. Oz handles pushing commits and posting the summary reply as part of the task.config.worker_hostrouting: Uses the Warp API'sworker_hostfield in the task config to route to the specific self-hosted worker, rather than requiring a Warp environment to be configured.kubernetesBackend.podTemplate.containers[task].env[GITHUB_TOKEN]or SSH key volume mounts.Conversation: https://staging.warp.dev/conversation/325ab22d-8473-4aef-8ce4-221340cf2d05
Run: https://oz.staging.warp.dev/runs/019ef64d-601d-7ad8-91e0-717fde30252f
This PR was generated with Oz.