Documentation

Agent Workbench

Describe the goal in the agent workbench. The agent splits the steps, calls tools, and shows progress. Tools include web search, file reads, commands, and writing a result.

Hover over the corresponding conversation entry in the main menu to view its conversation list. Selecting a conversation opens it. Use Runtime Settings at the top right to adjust the current conversation.

Select the page title to rename the current conversation in place. The hover list only switches conversations. To rename or delete from the list, pin the submenu, then select the conversation title or its trash button.

Table of Contents


Prerequisites

Choose a model for the main role, then install the tools your tasks need.

Model Requirements

Configure a model for the Main Role before creating a session or sending a message.

Prefer a model with good instruction-following and tool-calling capabilities. Parameter count alone does not determine whether a task will succeed.

  • Local models: Choose a model and quantization level that fit your RAM and VRAM. Check the results with a simple task first.
  • Long tasks: A 32K context is a starting recommendation. Adjust it within the model’s supported range and your available resources; it is not a universal minimum.
  • Check results: Models can miss steps or give incorrect answers. Review important actions and final results.

Model sources:

  • Local Models: Download and load from the model library (supports LLM / VLM / HF standard models)
  • Online Models: Connect to cloud providers via API Key (supports DeepSeek, OpenRouter, etc.)
  • LAN Models: Connect to model services within the local network

Browser & Web Search Environment

The agent's browser operations and web search features depend on additional Python libraries. To use these tools, install the agent environment dependencies in Settings → System → Environment Configuration.

  • Browser and search tools are unavailable if the related dependencies are not installed.
  • Basic features like file read/write and terminal commands require no additional installation.

Voice Input Environment

Voice input requires a microphone and a loaded STT (Speech-to-Text) model. Load a TTS (Text-to-Speech) model only if you want replies read aloud. See Voice Input.


Quick Start

Step 1: Configure the Main Role Model

  1. Open the Agent Workbench page
  2. Click Runtime Settings (gear icon) at the top right, then expand "Role Parameters" → "Main Role"
  3. Select the connection type (Local / Online / LAN) and specify the model
  4. The agent is ready for use once the model is selected

When no model is configured for the main role, the New Conversation button and Send button are disabled, and the interface prompts "Main role has no model configured; cannot create a new session."

You can also switch the main role’s local, LAN, or online model and its reasoning level from the model button beside auto approval in the composer. The header wrench opens the main role’s tools. Check the backend type before sending; online models receive the content needed for the task.

Step 2: Create a Session

Click New Conversation in the conversation list, or use the plus button at the top of the page. A temporary title (e.g., "New Session-10:30") is automatically generated, and it updates to a formal title after the first task is sent.

Step 3: Describe the Task

Describe your goal in natural language in the input box. For example:

  • "Search the web for the latest AI developments and compile a summary report."
  • "Read the README.md in my workspace, extract the core content, and polish it into an email."
  • "Analyze the data.csv file and generate a statistical report."

Click Send or use the shortcut selected in Settings → General → Editor. Press Shift + Enter for a new line.


Core Concepts

Role System

The agent uses a multi-role collaboration architecture, where each role has distinct responsibilities:

RoleDescriptionRequired
Main RoleHandles primary reasoning, tool orchestration, and final response✅ Required
Evaluate RoleReviews response quality, provides feedback and revision suggestionsEnabled by default, optional
Summary RoleContext compression and auxiliary summarizationOptional
Memory RoleFuzzy memory search via fine-tuned modelOptional
Security RolePre-screening of high-risk content and safety recommendationsOptional
Delegate RoleDelegates subtasks to independently configured rolesOptional

Each role can have its own model and parameters. Summary, Security, Evaluate, and Delegate roles reuse the main model when no model is specified. The Memory role requires a local model. See Role Configuration.

Toolset

The agent can invoke various tools to complete your tasks:

Tool CategoryCapabilities
File OperationsRead, write, move, search files
Load external imageSends an external image to a multimodal model. Without the multimodal projection component, the model handles text only. Images in a read-only external workspace can be read too
Terminal ExecutionRun commands and scripts
Web SearchSearch engine queries, web page content extraction
BrowserLaunch browser, navigate pages, take screenshots, interact
CrawlerBatch scrape website content
Todo PlanningCreate and update task todo lists
DelegateThe main role hands a subtask to another configured role. Call it by role name. This is not a separate multi-agent product
Memory ManagementSearch, read, save long-term memory and runtime reminders
InteractionAsk user questions and make suggestions
ComputerScreen capture
MultimediaImage generation, video generation, speech synthesis

The allowed tools for each role can be selected in the right panel's "Toolset."

Advanced Parameters

Advanced parameters allow fine-tuning of agent behavior, such as tool execution timeout, web search limits, browser timeout, and security policies. See Advanced Settings.


Session Management

New Session

Click New Conversation in the conversation list, or use the plus button at the top of the page. A temporary title is auto-generated, and it updates to a formal title based on the task content after the first message is sent.

Switch Session

Click any session in the left session list to switch. The session's message history and execution progress are restored automatically.

Rename Session

Pin the submenu, select the conversation title, enter a title, then press Enter or click the check mark. You can also click the page title to rename the current conversation.

Delete Session

Pin the submenu, click the trash button beside a conversation, and confirm. Deletion is irreversible.

Archive Session

For sessions you want to keep but don't need to see immediately, use the Archive feature. Archived sessions are hidden from the main list and can be viewed and restored via Archive Management. Single and batch operations are supported.


Sending Messages

Basic Send

Enter your task in the input box, then click Send or use your configured send shortcut. Drag the edge of the input box to adjust its height.

Long pasted text in the input box can be collapsed. Expand it to read the full text.

Send Modes

Choose the default Message Mode under Settings → Agent → Messages:

  • Queue: Send the message after the current turn ends. Use this for the next task.
  • Steer: Add guidance to the current task, to be handled when the agent can accept another message.

During a run, Alt + Enter sends only this message in the opposite mode without changing the default. When no task is running, the message starts a new turn.

Manage Queued Messages

Expand Queued Messages above the input box:

  • Send Now: Submit the selected message.
  • Edit: Change a queued message that has not been sent. Saving keeps it in the queue.
  • Delete: Remove a message you no longer need.

Messages being delivered cannot be edited. If delivery needs review, check the conversation result before sending again. Guidance that the current turn did not use remains available to send or delete.

Message Operations

Edit Message

Sent user messages can be edited:

  1. Click the Edit button on the right side of the message.
  2. Modify the message content.
  3. Save to update.

Delete Message

Two deletion scopes are supported:

  • This Message Only: Deletes only the current message.
  • This and Subsequent: Deletes the current message and all messages after it.

Messages already processed by a running agent cannot be deleted.

Resend Message

Resend asks for a second confirmation. After you confirm, it deletes that message and everything after it, then sends the message again.

Copy Message

Click the Copy button to copy the message content to the clipboard.

Memory Feedback

The following feedback options are available for agent responses:

  • Preferred Memory (👍): Marks the response as satisfactory memory for future reference.
  • Avoid Memory (👎): Marks the response as a pattern to avoid.

Feedback is automatically saved as long-term memory, influencing future agent behavior.


Attachments

When sending a message, you can attach the following content, which the agent will automatically read and analyze:

Attachment TypeDescription
Local AttachmentsImages, audio, video, files
Knowledge Base ConnectionLinks to previously created RAG knowledge bases
Workspace ReferenceReference other workspace directories(Read-only)

For more details, please refer to Attachments & Knowledge Base.

Prompt Optimization

Helps you quickly generate high-quality prompts to enhance the effectiveness of your AI interactions. For more details, see Prompt Optimization.

Voice Input

Supports voice input via microphone, with automatic speech-to-text transcription. Requires STT model loading. For more details, see Voice Input.


Execution Process

Real-time Progress

While the Agent is performing a task, the interface will display real-time updates:

  • Progress Nodes: The status and results of each analysis step and tool call.

  • To-do Panel: A real-time updated checklist of current task items and completion progress.

  • Reasoning Process: Visible when "Thinking Mode" is enabled, displaying the AI's logical reasoning.

  • Notices: The area above the input box shows run notices, errors, file changes, to-dos, and queued messages. Expand or collapse it as needed. Use Restore Notices to show temporarily hidden run notices, file changes, to-dos, and queued messages again.

  • Duration: Total task time and the current status stay on screen for the whole run. They do not disappear when a single step refreshes.

Auto-Approval

When Auto-Approval is enabled, the Agent will automatically proceed with operations that require confirmation (such as executing terminal commands) without manual intervention.

⚠️ Auto-approval should only be used in scenarios where you trust the Agent. When disabled, high-risk operations will pause and wait for your confirmation. For more details, see Auto-Approval & Security.

Pause & Resume

The Agent will pause and wait for your decision in the following scenarios:

  • Executing commands that may modify files or system settings.
  • Security audits detecting risky content.
  • Reaching the maximum number of tool call iterations.
  • AI requesting human selection or decision-making.
  • The model making no effective progress temporarily.

When paused, you can choose to Continue or Stop.

Context Compression

Click the Context Usage ring at the top of the page to view usage. For manual compression, click Compress Context in the popup. This button is unavailable while the agent is running.

In long conversations, the agent compresses older messages and retains key information before continuing. Some details may be lost, so state important requirements in the current task. See Advanced Settings for related controls.

Rollback Operation

For files created or modified by the Agent within the workspace, Rollback functionality is supported to revert to a previous state. Click the Rollback button next to the modification node and confirm to restore.


To search within workspace files, provide the keyword and the folder to check. The agent searches within its allowed scope and can return matching files and line numbers. To save reusable analysis for a repository, use Code Analysis (CODE).

To start data processing or other Studio tasks from a conversation, see Use Studio features from an agent. Open the Inbox for pending approvals and background task updates.

Important Notes

Model Configuration

  • The Primary Role model must be configured first before you can create sessions or send messages.
  • The Primary Role supports three connection methods: Local, Online, and LAN; any one of these is sufficient.
  • For online models, an API Key must first be added in Credential Management.
  • The Memory Role strictly requires a local model and does not support Online or LAN connections.
  • If no model is configured for Summary/Security/Evaluation/Delegation roles, the Primary Role's model will be used by default.

Tool Dependencies

  • Browser and Web Search require Agent environment dependencies (installable via Settings). If not installed, only these specific tools will be unavailable; other functions remain unaffected.
  • TTS (Text-to-Speech) and STT (Speech-to-Text) require the corresponding models to be loaded.
  • Multimedia Tools require their respective models to be loaded; otherwise, effective results cannot be obtained.

Execution Security

  • The Agent can execute terminal commands and modify files; please use it within a trusted workspace.
  • For important file changes and terminal commands, turn off Auto-Approval and review requests before approving them.
  • A Command Blacklist can be configured in Advanced Parameters to prohibit the execution of specific commands.
  • Enabling the Security Role adds an additional layer of security auditing.

Performance Recommendations

  • Choose a model for your task and hardware. See Model Requirements.
  • When a VRAM warning is shown, GPU tasks run one at a time. An idle GPU is not left stopped. When VRAM is critically low, a new GPU task is refused.

Workspace

  • If no workspace directory is specified, the system uses a default workspace within the temporary directory.
  • Agent file operations are performed within the scope of the workspace by default.
  • You can customize the workspace directory in the Session Configuration.
  • File preview, notes shared across sessions, and links to earlier tasks are covered in the Workspace Browser.

More Features

FeatureDescriptionDocumentation
Role ConfigurationIndependent settings for models, parameters, and tools for each roleRole Configuration
MCP External ToolsConnect services and select role toolsMCP External Tools
Advanced ParametersFine-grained control over tool timeouts, search limits, security policies, etc.Advanced Settings
Attachments & KBUsage methods for files, images, knowledge bases, etc.Attachments & KB
Voice InputMicrophone recording and transcription to textVoice Input
Auto-Approval & SecurityAuto-approval toggle, security audit mechanisms, command blacklistAuto-Approval & Security
Instruction SettingsGlobal instruction files and personal preference configurationsInstruction Settings
Preset ManagementSave and load workbench parameter presetsPreset Management
Workspace BrowserPreview files, share notes across sessions, link earlier tasksWorkspace Browser
SD ChatImage and video generation. Open it from the agent submenuSD Chat
Speech SynthesisText-to-speech. Open it from the agent submenu, next to SD ChatTTS