agent-orchestrator icon indicating copy to clipboard operation
agent-orchestrator copied to clipboard

[Feature]:Add CLI commands for PR and review action routes

Open DS123-ally opened this issue 4 months ago • 2 comments

Problem

Users and contributors cannot trigger these actions consistently from the CLI. This makes the CLI less complete than the daemon/frontend surface and limits headless or terminal-first workflows.

Proposed direction

Add thin Cobra commands that call the existing daemon HTTP routes rather than implementing PR/review logic inside the CLI.

Proposed command mapping:

Command Route
ao pr merge <pr-number> POST /api/v1/prs/{id}/merge
ao pr resolve-comments <pr-number> [comment-id...] POST /api/v1/prs/{id}/resolve-comments
ao review ls <worker-session-id> GET /api/v1/sessions/{id}/reviews
ao review trigger <worker-session-id> POST /api/v1/sessions/{id}/reviews/trigger
ao review execute <worker-session-id> alias for ao review trigger
ao review cancel <worker-session-id> POST /api/v1/sessions/{id}/reviews/cancel

The CLI should keep mirrored DTOs locally, matching existing CLI patterns, and should not import HTTP controller packages directly.

Alternatives considered

No response

Before submitting

  • [x] I am willing to help implement this if maintainers agree on scope
  • [x] I searched existing issues / discussions for something similar

DS123-ally avatar Jul 22 '26 17:07 DS123-ally

Hi, I’d like to work on this. I noticed ao review stop and ao review restart already call the cancel and trigger routes, so I’ll reuse that behavior and add the missing PR commands, review listing, and requested aliases. Please let me know if that scope looks right and assign it to me.

Hardik180704 avatar Jul 23 '26 06:07 Hardik180704

Thanks for contributing to Agent Orchestrator.

This issue is being picked up by the current external contributor on-call pair:

  • @illegalcall
  • @pulkit7070

If someone is already working on this, please continue as usual. The on-call pair is added for visibility, tracking, and support, not to take over the work. If you need help with review, direction, reproduction, or next steps, please tag @illegalcall and @pulkit7070 here.

For faster context or live questions, you can also join the AO Discord.

Join the session here: https://discord.gg/H6ZDcUXmq

Come by if you want to see what is being built, ask questions, or just hang around with the community.

somewherelostt avatar Jul 23 '26 15:07 somewherelostt