Skip to content

FAQ

Models and Configuration

How to switch models?

You can temporarily switch models using environment variables:

1
2
3
export OPENAI_MODEL="<model_name>"
export OPENAI_API_KEY="<api_key>"
export OPENAI_API_BASE="https://<provider>/v1"

You can also modify fields such as openai.model_name in the project's config.yaml, or specify a different configuration file using --config <path>. For configuration priority, see Workflow Configuration; for model environment variables, see Parameter Description.

How to use --no-embed-tools?

The current CLI disables embedded/retrieval tools by default. Writing --no-embed-tools bare or passing true both disable the tools; to enable them, use:

--no-embed-tools false

Embedded tools are not a prerequisite for standard file tools or testing tools.

Execution and Recovery

UCAgent exited midway, how to recover?

First, confirm that the old UCAgent and any external Code Agent have exited, then restart with the same workspace, DUT, and configuration. Enter status to confirm the current phase, then enter loop or let the external Agent continue. Do not delete .ucagent/ or output artifacts unless you explicitly intend to start over.

What to do if a Check fails?

First, read the artifact, location, observed, expected, and next_action returned by the Checker. If necessary, use:

tool_invoke StdCheck {"lines":-1}
tool_invoke KillCheck

These tool_invoke calls also use the model-operation slot. If active work causes busy, cancel the relevant operation with Ctrl+C or the HTTP API and wait for it to end. After fixing, re-run the tests, Check, and Complete. Test infrastructure failures should be fixed to Pass first; only reproducible DUT failures with correct assertions should be recorded as Bugs.

Why is config.yaml not found at startup?

config.yaml is a project configuration file, not a file necessarily provided by pip installation. You can:

  • Create your own config.yaml in the workspace and pass --config config.yaml;
  • Use the configuration and Makefile from the source repository;
  • Omit --config to use the layered default configuration.

Why is --no-write not taking effect?

The target must be located within the workspace. Regular files or directories must already exist; wildcard paths can match targets that have not yet been created. This option restricts UCAgent tool writes but does not prevent you from manually modifying files in an external shell.

Tools and Terminology

How to choose text file tools?

The current text file tools are:

  • EditTextFile: Create, overwrite, or append to a complete text file;
  • ReplaceStringInFile: Replace a unique segment of text in an existing file;
  • DeleteTextLines: Delete multiple complete line blocks at once.

First use ReadTextFile to get the current content. For concurrent protection, set include_sha256=true and pass the resulting hash to the editing tool as expected_sha256.

How to distinguish between CK, TC, and Bug?

CK stands for functional check point, and TC stands for test case. Dynamic Bug entries should be associated with accurate FG/FC/CK and the failing TC; test infrastructure failures should not be recorded as DUT Bugs.

How to troubleshoot MCP connection failures?

If no model call started or a task stopped, first use Runtime Troubleshooting to distinguish configuration preflight, backend execution, and business acceptance failures rather than assuming a network disconnection.

Check the following settings when connecting a client manually.

  1. MCP started successfully; UnitTest requires --mcp-server, not --mcp-server-no-file-tools. See MCP Integration for required-tool validation;
  2. The client address is http://<host>:<port>/mcp;
  3. The client port matches --mcp-server-port;
  4. For remote scenarios, --mcp-server-host, firewall, and permissions allow the connection.

Built-in CLI backends start a private MCP endpoint for the session. If endpoint setup or client configuration validation fails, check the backend error for that session.