Skip to content

Conversation

@gerigk
Copy link
Contributor

@gerigk gerigk commented Jan 23, 2026

Summary

Add support for Factory's Droid CLI as a code review agent, enabling roborev users who use Droid to get automatic code reviews.

Changes

  • internal/agent/droid.go - DroidAgent implementation using droid exec for headless execution
  • internal/agent/droid_test.go - Comprehensive tests (9 test cases)
  • internal/agent/agent.go - Add "droid" to fallback order
  • README.md - Add Droid to supported agents table

Implementation Details

  • Uses droid exec with --auto low for read-only review mode
  • Uses --auto medium for agentic mode (refine)
  • Supports --reasoning-effort for thorough/fast reasoning levels
  • Output captured via temp file (same pattern as codex agent)
  • All existing tests pass

Test Plan

  • go build ./... passes
  • go test ./... passes (all 50 agent tests, including 9 new droid tests)

@gerigk
Copy link
Contributor Author

gerigk commented Jan 23, 2026

Inspired by your blog post I just tried if I can add support without knowing Go :)

Arthur Gerigk and others added 6 commits January 23, 2026 06:56
Add support for Factory's Droid CLI (https://factory.ai) as a code review agent.

- Add DroidAgent implementation using `droid exec` for headless execution
- Support --auto low (review mode) and --auto medium (agentic/refine mode)
- Support --reasoning-effort for thorough/fast modes
- Add comprehensive tests for all functionality
- Update README with Droid in supported agents table

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Prevents prompts starting with "-" from being parsed as flags by
the droid CLI. For example, a prompt like "-o /tmp/x" would
otherwise be interpreted as command-line flags.

Added unit test to verify prompts with leading dashes are passed
as data.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Avoids piping remote code to sh in documentation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Droid CLI doesn't support -C for setting working directory.
The working directory is already set via cmd.Dir in Review().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Droid CLI uses -o for --output-format, not output file.
Changed to capture stdout directly like the real droid CLI.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wesm
Copy link
Collaborator

wesm commented Jan 23, 2026

Thanks. This didn't work for me out of the box but I am fixing it now

@wesm wesm force-pushed the add-factory-droid-support branch from 976365d to 9b794fe Compare January 23, 2026 13:27
@wesm wesm merged commit 06b2ce3 into roborev-dev:main Jan 23, 2026
7 checks passed
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.

2 participants