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.
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.
| Scenario | Scenario Description | Natural Language Prompt Example |
|---|---|---|
| Create a deployment environment, delete an environment, create a host cluster, obtain host cluster details, and query the host cluster list. |
| |
| 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. |
|
Prerequisites
- CodeArts Agent has been installed and you have logged in to it using your account.
- The operations in Purchasing and Authorizing CodeArts Deploy have been performed.
Tokens or credits in your CodeArts Agent account are consumed when this operation invokes tools or runs LLM inference.
Procedure
- Download the CodeArts toolchain plug-in.
- Click install.bat in the plug-in package to install the plug-in and KooCLI.
- Complete KooCLI initialization and store the frequently used access keys (AK/SK) and region information in the configuration file to avoid repeated input.
- 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.
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.
Related Documents
Developing a Travel Assistant Using the CodeArts Toolchain Plug-in
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot