UCAgent Execution Modes Overview¶
Distinguish execution organization, task management, interfaces, and backends; these are not mutually exclusive modes. The workflow determines stages and accepted artifacts.
| Dimension | Choices | Meaning |
|---|---|---|
| Execution organization | --agent-mode single / --agent-mode multi | One Agent executes, or Global→Super→Sub cooperate |
| Task management | Ordinary launch / Master | Master provides task creation, launch, and monitoring; it is not another name for multi |
| Interfaces | Console / TUI / HTTP / MCP | Local interaction, visualization, or network access; MCP is a tool protocol, not an execution role |
| Execution backend | --backend | Select LangChain or a command-line backend without changing Checker requirements |
- For a known workspace and DUT, start with normal mode below; the default is
single. - For natural-language workflow orchestration and delegation, read Global Agent and Multi-Agent.
- For browser-based task management, read Master Mode. Managing several tasks does not imply that those tasks execute in multi mode.
These dimensions do not imply that every combination is supported: the public multi entry cannot currently be combined with Master.
Normal Mode¶
In normal mode, one UCAgent process drives a verification task. After preparing RTL, specifications, and the workspace as shown in Normal Mode, select ToffeeUT explicitly:
Backend Selection (--backend)¶
Normal mode uses --backend=<name> to select the large language model backend that drives the verification. The backend list is defined in the backend: section of ucagent/setting.yaml. Currently built-in options include:
langchainconnects directly to the model and binds in-process tools.opencode(default),codex,claude,copilot,qwen, andkilouse private MCP endpoints. The backend entries inucagent/setting.yamlselect their client configurations.- For currently unsupported backends, you can add them yourself in
ucagent/setting.yamlby referring to the same format.
Command-line backends start a private MCP endpoint for each session. --mcp-server also starts a listener for standalone clients. See MCP Integration.
In the interactive launches above, --loop (-l) submits the automatic execution loop during initialization. Without it or another startup task command, the instance waits for manual loop input. See Runtime Control for defaults when launching services without a local interface.
See MCP Integration for the complete steps (installation, LLM API configuration, startup) using opencode as an example; the method of manually starting the MCP Server and connecting from another terminal is also covered in that chapter. See Direct Usage for model configuration for direct LangChain connection.
TUI Terminal¶
Add the --tui parameter (or enter the tui command in the Console after startup) to enter the terminal interactive interface: the left side contains the task/stage/tool panel, the right side contains the message panel, and the bottom contains the command input box. Task commands are shared with Console; exit and display actions depend on the current interface. See Normal Mode for complete onboarding (including DUT preparation and model configuration), and TUI for interface operations.
Web Interface¶
Normal mode can complete interaction without relying on the terminal. There are three Web entry points:
- Agent Dashboard: Use the startup parameter
--export-cmd-api, or executecmd_api_startin the Console/TUI console after startup, then openhttp://127.0.0.1:8765in the browser. You can view stage progress, task and tool status, toggle human review switches for stage HM/Skip, manage workspace files, and directly chat with the configured large model via Chat mode. This entry point does not require entering TUI first. --web-console: Hosts a complete command-line/TUI session in the browser (defaultlocalhost:8000).--web-terminal: Uses a Web terminal in parallel with the local terminal (default127.0.0.1:8818).
See Parameter Description for details on each parameter.
Master Mode¶
Master is used to manage multiple verification tasks; the browser panel (default http://127.0.0.1:8800) is responsible for workspace management, RTL compilation, task dispatch, and execution monitoring. Sub-Agents are launched by Master according to the Launch Mode (process, docker, docker_swarm, or k8s) and register back via --master.
Start Master from the source repository:
The expanded full command is:
When installed via pip, use the native CLI:
Notes:
--as-masteris required to enter Master mode;--as-master-persistonly specifies the persistent workspace directory (default/tmp/ucagent_master) and must be used in combination with--as-master.make as_masteruses a temporary workspace, whilemake as_master_persistretains the Master workspace.- See Web Master User Guide for Launch backend, model configuration, and console command descriptions.
See Master Mode for hands-on practice, and Web Master User Guide for detailed feature explanations.