Tune prompts for review mode - #4089
Conversation
Soffi AI SummaryThis PR improves the AI workbench's agentic behavior when handling pull request review tasks. The core motivation is to help the orchestrator agent correctly identify and delegate PR review work to the coding subagent using a dedicated "review mode," rather than treating reviews as out-of-scope or routing them through integration tools. Key changes:
ChangesPR review mode for AI workbench agent
Updated: 2026-09-01 00:18 UTC |
Greptile SummaryThe PR tunes workbench prompts and tool metadata so review-enabled jobs consistently direct coding agents to review the pull request’s head branch.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| lib/console/ai/tools/workbench/coding_agent.ex | Selects review-specific tool metadata when enabled while retaining runtime validation for required review inputs. |
| lib/console/ai/tools/workbench/subagents.ex | Makes the coding-subagent description aware of the current job’s review capability. |
| lib/console/ai/workbench/engine.ex | Propagates the job’s review capability into orchestrator prompts and subagent metadata. |
| lib/console/ai/workbench/subagents/coding.ex | Supplies an explicit review flag when rendering the coding-subagent system prompt. |
| priv/prompts/workbench/coding.md.eex | Provides review-specific mode and pull-request input guidance only for review-enabled jobs. |
| priv/prompts/workbench/job.md.eex | Directs review-enabled orchestration toward coding-agent review mode and avoids duplicate review publication. |
| priv/tools/workbench/coding_agent_review.json | Defines the model-facing tool schema for jobs where pull-request review mode is available. |
| priv/pr/agent_review_summary.md.eex | Replaces the file-summary list with a collapsible Markdown table using escaped cell values. |
Reviews (2): Last reviewed commit: "Tune prompts for review mode" | Re-trigger Greptile
|
plural deploy this |
|
GitOps deployment PR: https://github.com/pluralsh/plrl-up-demos/pull/2760 This deploys source PR head |
|
plural review this |
Plural SummaryMedium-depth review found two regressions: the revised review-summary template conflicts with its accompanying assertion and will fail that test, and the runtime currently permits Grade: BConfidence is high for the two reported regressions because they are directly implied by the changed template/test and the reviewed runtime dispatch paths. I did not execute tests under the strict read-only constraint, so runtime/environmental coverage is limited to static inspection. Files changed (24)
|
754bf8c to
4fc03ff
Compare
spurious review due to a bug
|
plural deploy this |
|
Demo deployment pin created for image |
|
plural review this |
This will hopefully help the agent chose appropriately when reviewing prs
4fc03ff to
d517386
Compare
|
plural deploy this |
|
Demo deployment GitOps PR: https://github.com/pluralsh/plrl-up-demos/pull/2762 Pins the console image to |
|
plural review this |
|
plural deploy this |
|
GitOps deployment PR: https://github.com/pluralsh/plrl-up-demos/pull/2763 It pins the demo Console image to |
This will hopefully help the agent chose appropriately when reviewing prs
Test Plan
Test environment: https://console.your-env.onplural.sh/
Checklist
Plural Flow: console