Help Center/ CodeArts Deploy/ User Guide/ Intelligent CodeArts Deploy Automation with CodeArts Agent
Updated on 2026-11-25 GMT+08:00

Intelligent CodeArts Deploy Automation with CodeArts Agent

CodeArts Deploy can be integrated with CodeArts Agent through a CodeArts toolchain plug-in. The CodeArts toolchain plug-in can be invoked by flexible prompts or skills to help the agent efficiently complete host deployment tasks.

There is no need to learn console operations. You can just use natural language prompts in the CodeArts Agent chat window to implement cloud-based deployment, configure and manage deployment environments, and orchestrate and execute deployment tasks.

Core Benefits

  • No switching required: You can complete deployment tasks directly in the agent chat window. There is no need to log in to the console or switch back and forth between different pages.
  • Natural language interaction: You can complete operations such as configuring deployment environments, orchestrating deployment tasks, and executing deployment tasks with just prompts.
  • Full scenario coverage: The integration covers environment creation and management, host cluster creation and management, deployment application creation and management, and deployment task execution.
  • End-to-end development process: The integration involves cooperation with services such as CodeArts Pipeline, CodeArts Build, and CodeArts Artifact, enabling a seamless, end-to-end workflow.

Principles

CodeArts Deploy makes its APIs available to CodeArts Agent through the CodeArts toolchain plug-in. After the agent interprets a user's natural language prompts, it calls the CodeArts Deploy API via Koo Command Line Interface (KooCLI), to perform the corresponding operations, and returns results to the chat window.

Figure 1 Interaction process

CodeArts Toolchain Plug-in (CodeArts Deploy)

The CodeArts toolchain plug-in integrates CodeArts R&D services, such as CodeArts Req, CodeArts Repo, CodeArts Check, CodeArts TestPlan, CodeArts Pipeline, CodeArts Build, CodeArts Artifact, and CodeArts Deploy, into CodeArts Agent as skills and sub-agents. After the plug-in is installed, you can trigger service operations directly through natural language prompts in the agent chat window. There is no need to switch to the console. Skills guide interactive operations step by step, while sub-agents handle complex orchestration tasks. Together, they address every scenario, from one-off queries to bulk workflows.

CodeArts Deploy provides two skills and a sub-agent in the CodeArts toolchain plug-in.

Skills (codearts-deploy-env-management and codearts-deploy-orchestration) are experts in interactive deployment execution, including creating deployment environments, deleting environments, creating host clusters, obtaining host cluster details, querying the host cluster list, creating applications, creating applications based on templates, querying the application list, obtaining application details, updating applications, batch deleting applications, and starting application deployment. They can understand your natural language intents and guide operations step by step. For complex tasks requiring batch processing or multi-step orchestration, the skills hand the tasks off to the sub-agent (codearts-deploy-assistant). The sub-agent runs autonomously in an independent context, without consuming primary chat resources. It can automatically complete complex orchestration tasks such as creating a deployment environment and executing a deployment task, and can return a structured result report upon completion. Together, the skill and sub-agent form a two-layer execution architecture, giving the agent the flexibility to handle varying tasks from single queries to batch orchestration.

Application Scenarios

The following CodeArts Deploy scenarios are supported by CodeArts Agent.

Table 1 Intelligent scenarios supported by CodeArts Deploy

Scenario

Scenario Description

Natural Language Prompt Example

Environment and Configuration Management

Create a deployment environment, delete an environment, create a host cluster, obtain host cluster details, and query the host cluster list.

  • Create a deployment environment named my-deploy-environment.
  • Delete a deployment environment named my-deploy-environment.
  • Create a host cluster named my-deploy-HostCluster.
  • Obtain details about the host cluster named my-deploy-HostCluster.
  • Query all host clusters in the group project.

Deployment and Orchestration Execution

Create an application, create an application using a system template, query the application list, obtain application details, update an application, batch delete applications, and start application deployment.

  • Create an application named my-deploy-application.
  • Create an application named my-deploy-application using the Spring Boot application deployment template.
  • Query all applications in the group project.
  • Obtain details about the application named my-deploy-application.
  • Update the name of my-deploy-application to my-deploy-application1.
  • Delete applications whose names contain my-deploy in the group project in batches.
  • Start the deployment task of the application named my-deploy-application.

Prerequisites

Tokens or credits in your CodeArts Agent account are consumed when this operation invokes tools or runs LLM inference.

Procedure

  1. Download the CodeArts toolchain plug-in.
  2. Click install.bat in the plug-in package to install the plug-in and KooCLI.
  3. Complete KooCLI initialization and store the frequently used access keys (AK/SK) and region information in the configuration file to avoid repeated input.
  4. Open the CodeArts Agent chat panel and tell it what you want to do using natural language.

    • The first time you use CodeArts Agent to perform deployment tasks, the analysis process takes longer. As usage increases, the analysis speed gradually improves and response time shortens.
    • The interface style varies across different CodeArts Agent clients; refer to the actual display in the tool you are using for the exact operations.

Scenario 1: Environment and Configuration Management

The following is an example prompt you could use to create a deployment environment:

Creating an Environment
Name: my-deploy-environment
Region: north-x
Application ID: application123
OS: Linux
Retain the default values for other parameters.

The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. After the environment is created, you can view it on the CodeArts Deploy page.

Figure 2 Example result

Scenario 2: Deployment and Orchestration Execution

The following is an example prompt you could use to create a deployment application:

Creating an Application
Name: my-deploy-application
Region: north-x
Project ID: project123
Timeout: 30 minutes
Retain the default values for other parameters.

The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. After the application is created, you can view it on the CodeArts Deploy page.

Figure 3 Example result