Repository navigation
Add OpenCode subagent configuration support - #73
cplegendre wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (10)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 SummarySummary by CodeRabbit
WalkthroughThe change adds an optional OpenCode reviewer subagent for CLI runs and queued jobs. It validates reviewer settings and endpoints, configures reviewer permissions and network access, and handles reviewer endpoints during job launch and resume. ChangesOpenCode reviewer configuration
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant QueueClient
participant API
participant HarborCommandBuilder
participant Worker
participant OpenshiftJob
QueueClient->>API: Submit job with reviewer configuration
API->>API: Validate reviewer endpoint and build command
API->>HarborCommandBuilder: Pass reviewer configuration
Worker->>Worker: Revalidate explicit reviewer URL before launch
Worker->>OpenshiftJob: Create job specification
OpenshiftJob->>OpenshiftJob: Enable OpenRouter key when reviewer uses OpenRouter
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change adds an optional OpenCode reviewer subagent. When the option is omitted, behavior is unchanged, and reviewer endpoints are validated before use. No concrete merge-blocking issue was identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 25.53% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 47 functions across 8 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@taagarwa-rh |
|
Hi @cplegendre, this is a great start! My immediate feedback would be to make this more general, so that we can configure subagents in multiple ways. To do this, consider the following:
{
"<agent-name>": {
"description": <description>,
"prompt": <prompt>,
"model": <model>,
...
}
}
|
Summary
Adds OpenCode-only subagent configuration support for benchmark experiments.
Features
Security hardening
Validation
uv run pytestRuff on modified Python files: passed
git diff --check: passed