Oz for OSS contains a set of workflows to help manage the overhead of maintaining an open-source project. It consists of workflows that trigger Oz agents to triage issues, generate product and tech specs, create implementation PRs, and review pull requests.
The automation is organized as GitHub Actions workflows under .github/workflows/ that invoke Python entrypoints in .github/scripts/ (with shared helpers in .github/scripts/oz_workflows/), backed by triage label definitions in .github/issue-triage/, a CODEOWNERS-style stakeholder map in .github/STAKEHOLDERS, and committed spec artifacts under specs/GH{number}/product.md and specs/GH{number}/tech.md. Together these cover issue triage, product and tech spec creation, issue implementation scaffolding, PR issue-state enforcement, PR review orchestration, and unready-assignment guidance for Oz.
To use the oz-for-oss reusable workflows in another repository, you need a GitHub App installation, a set of GitHub Actions secrets and variables, and local adapter workflows that call the reusable layer.
The workflows authenticate through a GitHub App rather than a personal access token. Create an app under your organization (or personal account) with these permissions:
Repository permissions
- Contents — Read & Write (checkout code, push branches)
- Issues — Read & Write (apply labels, post comments, manage assignees)
- Pull requests — Read & Write (open PRs, post reviews)
Organization permissions
- None required.
After creating the app, install it on every repository that will use the workflows. Note the App ID and generate a private key — both are needed in the next step.
Add the following secrets to each target repository (or at the organization level):
| Secret | Description |
|---|---|
OZ_MGMT_GHA_APP_ID |
The numeric App ID of the GitHub App created above. |
OZ_MGMT_GHA_PRIVATE_KEY |
The PEM-encoded private key for that App. |
WARP_API_KEY |
Your Warp API key, used to invoke Oz agents. |
Set the following repository variable (not a secret) for reusable workflows that invoke Oz cloud agents directly:
| Variable | Description |
|---|---|
WARP_ENVIRONMENT_ID |
Required for workflows that call the Oz API to run cloud agents (for example, spec creation, implementation, PR review, and PR/issue comment response workflows). Set this to the Oz cloud environment UID the agent should run in. You can find the UID with oz environment list or on the environment details page in the Oz web app. |
Optionally, set the following additional repository variables (not secrets) to customize agent behavior:
| Variable | Description |
|---|---|
WARP_AGENT_MODEL |
Override the default Oz model (e.g. a specific model identifier). |
The reusable workflows in this repository are invoked via workflow_call. Your target repository needs thin local adapter workflows that map GitHub events to the reusable workflows.
Use the *-local.yml files in this repository as reference adapters. Copy them into .github/workflows/ in your target repository and change each uses: ref from ./.github/workflows/<workflow>.yml to warpdotdev/oz-for-oss/.github/workflows/<workflow>.yml@main.
The reusable workflows delegate their shared helper logic through composite actions in warpdotdev/oz-for-oss/.github/actions/ rather than doing a second checkout of this repository into the caller workspace.
- Issue triage —
triage-new-issues-local.yml - Spec creation —
create-spec-from-issue-local.yml - Implementation —
create-implementation-from-issue-local.yml - PR review and enforcement —
pr-hooks.yml(orchestratesenforce-pr-issue-state.yml,run-tests.yml, andreview-pull-request.ymltogether) - Respond to PR comments —
respond-to-pr-comment-local.yml - PR verification via slash command —
verify-pr-comment-local.yml(runs when a trusted PR comment contains/oz-verify) - Respond to triaged-issue comments —
respond-to-triaged-issue-comment-local.yml - Unready-assignment guard —
comment-on-unready-assigned-issue-local.yml - Review skill updates —
update-pr-review-local.yml(scheduled weekly)
Each adapter is deliberately thin — it defines the GitHub event triggers and conditions, then delegates to the reusable workflow.
Repositories can commit .github/oz/config.yml to make workflow-level defaults visible and reviewable in source control. Oz resolves that file from the consuming repository first; if it is absent there, the workflows fall back to the bundled .github/oz/config.yml shipped with oz-for-oss. Discovery stops at the first existing file — the two locations are not merged.
The initial supported settings live under self_improvement:
version: 1
self_improvement:
reviewers:
- octocat
- repo-maintainer
base_branch: auto
triage:
prior_triage_labels:
- triagedself_improvement.reviewers— optional list of GitHub 7B94 handles. Set[]to disable automatic reviewer requests.self_improvement.base_branch— optional branch name, orautoto detect the repository default branch from git metadata.triage.prior_triage_labels— optional list of labels that should count as evidence that Oz has already triaged an issue. Defaults to["triaged"].SELF_IMPROVEMENT_REVIEWERSandSELF_IMPROVEMENT_BASE_BRANCHremain high-precedence overrides for one-off runs.- Provide reviewer handles without the
@prefix in both.github/oz/config.ymlandSELF_IMPROVEMENT_REVIEWERS.
The bundled fallback config is intentionally neutral: it does not ship a Warp-specific reviewer list and defaults the base branch to auto.
If you want the triage agent to apply area and status labels, run the bootstrap-issue-config skill on your target repository. The skill fetches existing labels and classifies them into area, feature, and status categories; analyzes recent issues and issue templates to discover additional labels; generates or updates .github/issue-triage/config.json with label definitions (colors and descriptions); generates or updates .github/STAKEHOLDERS by inspecting CODEOWNERS, recent git contributors, and existing stakeholder information; and creates any missing labels on the repository via the GitHub API.
The skill is idempotent — re-running it merges new discoveries with existing configuration rather than overwriting it. The config.json file contains only label definitions; stakeholder ownership is managed separately in .github/STAKEHOLDERS, which uses the same glob-based syntax as GitHub CODEOWNERS files.
python3 -m venv .venv
source .venv/bin/activate.fish
python -m pip install --upgrade pip
python -m pip install -r .github/scripts/requirements.txtenv PYTHONPATH=.github/scripts python -m unittest discover -s .github/scripts/testsThe scripts under .github/scripts/ are designed to run inside GitHub Actions, so they expect the same event payload and environment variables that the workflows provide. For local debugging, point PYTHONPATH at .github/scripts/, provide the relevant GitHub Actions environment variables, and execute the entrypoint you want to inspect.
Common entrypoints include:
.github/scripts/triage_new_issues.py.github/scripts/create_spec_from_issue.py.github/scripts/create_implementation_from_issue.py.github/scripts/enforce_pr_issue_state.py.github/scripts/review_pr.py