CLI & Worker Reference¶
CLI (python -m agentsflow.cli)¶
- Required inputs:
--repository(path or git URL) and--issue-url. - Connection flags:
--address(TEMPORAL_ADDRESS),--namespace(TEMPORAL_NAMESPACE),--task-queue(PROCESS_TASK_QUEUE). - Workflow controls:
--reference,--coding-agent-provider {claude,gemini,codex},--branch. - Output:
--json/--no-json(defaults toPROCESS_JSON_OUTPUT); prints theProcessWorkflowOutputpayload on success. - Exit codes:
0success,2clarification required (payload printed),1error,130interrupted. - Workflow IDs are generated automatically as
process-<8 hex>unless you wrap the CLI yourself.
Example run:
uv run python -m agentsflow.cli \
--repository /repos/sample \
--issue-url https://github.com/octo/widgets/issues/99 \
--reference main \
--json
Worker (python -m agentsflow.worker)¶
- Flags mirror the CLI connection options plus
--auto-approve/--require-approval(maps toACP_AUTO_APPROVE). - Registers
AgentsFlowActivities().activities()and theProcessWorkflow, listening on the configured task queue until stopped. - Uses the Temporal Pydantic data converter to keep model serialization consistent with the workflow.
Logging¶
Set AGENTSFLOW_LOG_LEVEL (DEBUG, INFO, etc.) to control verbosity for both CLI and worker entry points.