This document describes all CLI arguments supported by fb infer.
fb infer \
--data-version v1.1 \
--agent gemini_cli \
--model gemini-3-pro-previewfb infer \
--resume runs/2025-12-02__16-06-04In resume mode, most arguments are loaded from run_metadata.json. Only a few
flags can override metadata (see the argument list below).
-
--config-pathPath toconfig.toml. If not provided, usesconfig.tomlin the current working directory. -
--agent, -aAgent to use:claude_code,gemini_cli,openhands,codex,mini_swe_agent. Required unless--resumeis used. -
--model, -mModel name (e.g.,claude-sonnet-4-20250514,gemini-3-pro-preview). Foropenhandsormini_swe_agent, useprovider/modelformat. Required unless--resumeis used. -
--api-keyOverride agent API key (takes precedence over config). Never written torun_metadata.json; resume reads it fromconfig.tomlor this flag. -
--base-urlOverride agent base URL (takes precedence over config). Saved intorun_metadata.json; resume uses metadata unless overridden again. -
--versionOverride agent version (takes precedence over config). Saved intorun_metadata.json; resume uses metadata unless overridden again. -
--datasetHugging Face dataset repo name (e.g.,LiberCoders/FeatureBench). Default:LiberCoders/FeatureBenchin non-resume mode. -
--data-versionHugging Face dataset tag, branch, or commit SHA. Overrides[dataset].revisionfromconfig.toml; default:v1.1. Saved intorun_metadata.json; resume mode keeps the recorded dataset version. This is separate from--version, which controls the agent software version. -
--splitDataset split name (e.g.,lite,full). Default:fullin non-resume mode. In resume mode, uses metadata. -
--levelFilter tasks by level (1or2). Default: all levels. -
--task-id, -tOnly process specified task IDs (space-separated). Default: all tasks. -
--n-attemptsNumber of attempts per task. Default:1. -
--n-concurrentNumber of concurrent tasks. Default:1in non-resume mode. Resume mode: can override metadata if explicitly provided. -
--output-dir, -oOutput directory root. Default:runs. Resume mode: ignored (uses the resume directory). -
--timeoutTimeout per task (seconds). Default:3600. Resume mode: can override metadata if explicitly provided. -
--resumeResume from a previous run directory (e.g.,runs/2025-12-02__16-06-04). Most arguments are loaded fromrun_metadata.json. -
--force-rerunForce rerun specific task IDs even if they were completed. Accepts space-separated task IDs or a.txtfile path (one task_id per line).
-
--proxy-portProxy port for container network (host gateway) (e.g.,--proxy-port 7890). Disabled by default. Resume mode: can override metadata if explicitly provided. -
--runtime-proxyEnable or disableHTTP_PROXY/HTTPS_PROXYat agent runtime. Choices:on,off. Default:onwhen--proxy-portis provided, otherwiseoff. Resume mode: can override metadata if explicitly provided. -
--gpu-idsComma-separated GPU IDs (e.g.,0,1,2,3). Default: all available. Resume mode: can override metadata if explicitly provided. -
--force-timeoutIf a task run times out (infer.logcontains[TIMEOUT after ... seconds]), treat that attempt as successful instead of failed. Default: disabled. Resume mode: can override metadata if explicitly provided.
-
--withoutRemove the## Interface Descriptionssection from the prompt. Resume mode: ignored (uses metadata). -
--whiteEnable white-box mode (expose FAIL_TO_PASS test file path in prompt). Resume mode: ignored (uses metadata).
-
--native-tool-callingForce native tool calling on (LLM_NATIVE_TOOL_CALLING=true). Resume mode: ignored (uses metadata). -
--no-native-tool-callingForce native tool calling off (LLM_NATIVE_TOOL_CALLING=false). Resume mode: ignored (uses metadata). -
--send-reasoning-contentSend prior assistant reasoning back to the model in subsequent OpenHands requests using bothreasoning_contentandreasoningfields. Useful for thinking models whose chat template supports reasoning history. Resume mode: ignored (uses metadata). -
--litellm-extra-bodyPass a JSON object to OpenHandsLLM.litellm_extra_body, for example--litellm-extra-body '{"enable_thinking": true}'. Resume mode: ignored (uses metadata). -
--session-cacheEnable backend KV-cache session reuse for OpenHands by sending a uniqueX-Session-Idheader for each task attempt and releasing it after the run withDELETE /session_release?session_id=.... Resume mode: ignored (uses metadata). -
--max-itersMaximum iterations for OpenHands (OPENHANDS_MAX_ITERATIONS). Default: no override (OpenHands default applies). Resume mode: ignored (uses metadata).
--cost-limitPer-task cost limit in USD, passed to mini-swe-agent. Set to0to disable the limit. If omitted, mini-swe-agent's upstream default applies. Resume mode: ignored (uses metadata).
runs/{timestamp}/
├── output.jsonl # Inference results (one JSON per line)
├── run_metadata.json # Run configuration and metadata
├── run_summary_{timestamp}.json # Run summary of success and failure
└── run_outputs/
└── {task_id}/
└── attempt-{n}/
├── infer.log # Agent execution log
├── run.log # Runtime log
└── patch.diff # Generated patch