Core Antigravity plugin providing the autonomous /github-worker skill for agent-ready GitHub issue workflows.
agy-github-worker is a fully autonomous issue worker engine built specifically for Antigravity:
- Autonomous Issue Polling & Scoped Targeting: Scans target repositories for issues opted in via
agent-ready. Supports targeting specific tickets (/github-worker for issue #12), milestones (for the v1.0 milestone), labels (with priority:high label), or baseline branches (/github-worker against develop branch). - Persistent Configuration (
/setup-github-worker): Interactively establishes and records project or global worker policies directly inAGENTS.md. - Workflow State Management: Manages state progression through labels (
status:todo,status:in-progress,status:waiting-on-user,status:in-review,status:done). - Parallel Subagent Dispatch: Spawns isolated
architectsubagents in dedicated git worktrees (.worktrees/issue-<number>), isolating builds and tests. - Dynamic Rebasing & Merge Safety: Automatically rebases cleanly against upstream changes, resolves merge conflicts, and keeps PRs in
status:in-reviewfor human approval by default. - TDD Quality Gate: Enforces Test-Driven Development (Red -> Green -> Refactor) and empirical verification before opening Pull Requests.
- CI / GitHub Actions Gating: Automatically watches PR status checks on repositories with active GitHub Actions workflows, ensuring all CI tests pass before dispatching peer reviewers.
- 3-Axis Peer Code Review: Automatically dispatches parallel read-only review subagents (
spec-reviewer,standards-reviewer,security-reviewer) to evaluate changes against observable predicates.
Looking for the live Kanban auxiliary side pane? Install the standalone companion UI plugin:
👉 rrivera/agy-github-worker-board
The companion board runs as an isolated sidecar webview in Antigravity's auxiliary side pane, providing real-time issue cards and GitHub navigation with zero AI token overhead.
This plugin provides two complementary skills:
/github-worker: The core autonomous execution engine. Pollsagent-readyissues, creates isolated git worktrees, enforces TDD, rebases against the baseline branch, gates on GitHub Actions CI, runs 3-axis peer code reviews (spec,standards,security), and manages PR workflows./setup-github-worker: Interactive configuration wizard. Sets up and persists project or global defaults for baseline branch, merge policy (manualvsauto-merge), and CI gating rules insideAGENTS.md.
Install directly from GitHub via the Antigravity CLI:
# Install the core issue worker skill
agy plugin install https://github.com/rrivera/agy-github-workerAlternatively, you can clone and copy the skills directly into your global skills directory:
git clone https://github.com/rrivera/agy-github-worker /tmp/agy-github-worker
mkdir -p ~/.gemini/config/skills
cp -r /tmp/agy-github-worker/skills/* ~/.gemini/config/skills/Restart Antigravity. The /github-worker and /setup-github-worker slash commands will be available across all your workspaces.
Instead of repeatedly specifying branch targets, merge policies, or CI rules in your prompts, run /setup-github-worker to establish persistent repository or global defaults.
/setup-github-worker
The wizard guides you through three key decisions and codifies your preferences into an isolated, delimited policy block inside your project's AGENTS.md (or globally in ~/.gemini/config/rules/AGENTS.md):
<!-- github-worker:config -->
## GitHub Worker Policy
- **Base Branch**: main
- **Merge Policy**: manual
- **CI Gating**: strict
- **Force Model Tier**: pro # optional manual override: pro | flash | inherit
<!-- /github-worker:config -->| Option | Values | Default | Description |
|---|---|---|---|
| Base Branch | <branch-name> |
Detected default branch (e.g. main) |
The upstream branch that feature worktrees branch from, rebase against, and target in PRs (e.g. main, develop, release/*). Configured via /setup-github-worker. |
| Merge Policy | manual | auto-merge |
manual |
• manual: Safe default. Completes worktrees, passes CI, collects 3 peer reviews, sets status:in-review, and pauses for human approval.• auto-merge: Autonomous completion. Automatically squash-merges the PR, deletes the remote branch, and marks status:done once CI passes and all 3 peer reviews approve. Configured via /setup-github-worker. |
| CI Gating | strict | permissive |
strict |
• strict: Monitors GitHub Actions workflow runs on open PRs and blocks peer review dispatch until all checks succeed.• permissive: Bypasses GitHub Actions status polling, relying strictly on the local test suite executed during development. Configured via /setup-github-worker. |
| Force Model Tier | pro | flash | inherit |
(Unspecified / Role Matrix) | Optional manual setting in AGENTS.md:• Unspecified (Default): The orchestrator automatically passes role-matched tiers to invoke_subagent—architect always uses "pro" (the flagship model, e.g. Argon 4) even inside a Flash session, while reviewers follow the PR complexity matrix and mechanical workers use "flash".• pro: Forces "pro" across all subagents (architect and all reviewers).• flash: Forces "flash" across all subagents.• inherit: Subagents inherit the active orchestrator session model. |
When /github-worker executes, preferences are resolved in the following order:
- Prompt Instructions: Any explicit request in your prompt takes highest priority (e.g.,
/github-worker against develop branch,auto-merge on approval). - Project Policy (
./AGENTS.mdor.agents/rules/AGENTS.md): Checked next for the<!-- github-worker:config -->section. - Global Policy (
~/.gemini/config/rules/AGENTS.md): Used if no project-level policy exists. - Built-in Defaults: Detected repository default branch,
manualmerge policy, andstrictCI gating.
Run the setup wizard to configure or update your repository preferences:
/setup-github-worker
/github-worker
/github-worker against develop branch
/github-worker targeting staging
/github-worker for issue #12
/github-worker resolve issues 12 and 15
/github-worker for the v1.0 milestone
/github-worker with priority:high label
/github-worker for issue #12 against develop branch. Proceed to merge on approval and mark done without my review.
MIT
