Factory Droid Agent
Run Factory Droid CLI (droid) as an autonomous agent in Ralph TUI.
Factory Droid Agent
The Factory Droid agent plugin integrates with the droid CLI so Ralph TUI can execute tasks with Factory Droid alongside Claude Code and OpenCode.
Factory Droid supports tracing of tool calls, costs, and execution events. Subagent tracing is not currently supported.
Prerequisites
Install the Factory Droid CLI and authenticate:
Set FACTORY_API_KEY in your environment (or run droid auth).
Basic Usage
Run with Factory Droid
Use the --agent droid flag:
Configuration
Shorthand Config
Basic configuration:
Full Config
For advanced control:
Options Reference
| Option | Type | Default | Description |
|---|---|---|---|
model | string | - | Model name passed to the droid CLI via --model |
reasoningEffort | low | medium | high | - | Reasoning effort level passed via --reasoning-effort |
enableTracing | boolean | true | Enables JSONL stream output (--output-format stream-json) |
Models and Reasoning Effort
Factory Droid supports passing a model name and reasoning effort level. Configure via agentOptions and refer to the official list of available models:
Output Tracing
When enableTracing = true, Ralph TUI requests JSONL stream output and parses:
- Tool calls and arguments
- Assistant messages and result events
- Error/status events
- Cost metrics (tokens, cache stats, USD)
Toggle tracing in the TUI:
- Press
tto cycle tracing detail levels - Press
uto show/hide the output panel
Autonomous Operation
Ralph TUI runs Factory Droid in fully autonomous mode with --skip-permissions-unsafe. This is required because ralph-tui cannot relay interactive prompts back to droid.
Factory Droid will execute tool actions without asking for confirmation. Review tasks carefully before starting execution.
How It Works
Ralph TUI builds a command similar to:
Key behaviors:
- Non-interactive mode: Uses
droid execsubcommand with prompt as argument - Tracing:
--output-format stream-jsonwhen tracing is enabled - Working directory:
--cwdset to the current task workspace
Troubleshooting
"droid CLI not found"
Ensure droid is installed and in your PATH:
"Authentication failed"
Set FACTORY_API_KEY or run droid auth.
"Tracing not showing"
- Ensure
enableTracing = true - Ensure
subagentTracingDetailis not"off" - Press
uto show the tracing panel
Next Steps
- Claude Code Agent - Anthropic-specific agent with tracing
- OpenCode Agent - Multi-provider agent
- Configuration - Full options reference