[Feature]:Add CLI commands for PR and review action routes
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
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.
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.