Skip to content

feat(ci): add OpenCode PR review workflow and manual docs deploy trigger - #316

Closed
Million-mo wants to merge 1 commit into
wolf1069b:mainfrom
Million-mo:feat/docs-nav-icons-zensical
Closed

feat(ci): add OpenCode PR review workflow and manual docs deploy trigger#316
Million-mo wants to merge 1 commit into
wolf1069b:mainfrom
Million-mo:feat/docs-nav-icons-zensical

Conversation

@Million-mo

Copy link
Copy Markdown
Collaborator

What This PR Adds

1. Automated PR Review Workflow ()

A non-blocking PR review system using OpenCode with a three-agent architecture powered by DeepSeek:

Agent Role What It Checks
Orchestrator Analyzes diff, delegates to specialists, synthesizes findings
Code specialist Type safety, testing, telemetry, architecture consistency
Docs specialist Doc placement, archival detection, AGENTS.md consistency, link integrity, nav consistency

How it works:

  • Triggers on , , ,
  • Skips draft PRs
  • Posts a structured review comment (LGTM / NEEDS CHANGES / DISCUSS)
  • Uses secret (configurable — any OpenCode-supported model works)

2. Manual Docs Deploy Trigger ()

Adds to the existing documentation workflow, allowing manual rebuilds without pushing to main.

3. OpenCode Agent Definitions ()

Three agent definition files that configure the review behavior:

  • — Primary agent, delegates to subagents
  • — Code review rules (type safety, testing, telemetry)
  • — Enhanced docs review with 9 check categories including document placement validation and archival detection

Setup

To use this in your fork:

  1. Add (or any supported model API key) to repo secrets
  2. The workflow runs automatically on PRs
  3. Review comments appear as GitHub PR comments

Tested

This workflow has been validated on the Million-mo/agentpool fork with a test PR containing intentional issues. The review-docs agent successfully detected:

  • Documents placed in wrong directories
  • Stale references to non-existent files
  • Missing AGENTS.md for new subsystems
  • Missing mkdocs.yml nav entries

Example review output: Million-mo#11

- Add .github/workflows/opencode-review.yml: automated PR review using
  OpenCode with DeepSeek model. Three-agent architecture:
  - review-lead: orchestrator that delegates to specialists
  - review-code: type safety, testing, telemetry, architecture
  - review-docs: doc placement, archival detection, AGENTS.md consistency,
    link integrity, navigation consistency
- Add workflow_dispatch to documentation.yml for manual build triggers
- Add .opencode/agents/ with review-lead, review-code, review-docs agents
@Million-mo Million-mo closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant