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

Intelligent CodeArts Build Automation with CodeArts Agent

CodeArts Build 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 build tasks.

There is no need to learn console operations. You just use natural language prompts in the CodeArts Agent chat window and let the agent intelligently and efficiently handle routine build operations such as build task management, task execution and recording, and template management.

Core Benefits

  • No switching required: You can complete build 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 task creation, build triggering, and record query with just prompts.
  • Full scenario coverage: The integration covers six major scenarios: task management, build execution, template management, log management, task group management, and Keystore management.
  • End-to-end development process: The integration involves cooperation with services such as CodeArts Req, CodeArts Pipeline, CodeArts Repo, and CodeArts Artifact, enabling a seamless, end-to-end workflow.

Principles

CodeArts Build makes its API capabilities available to CodeArts Agent through the CodeArts toolchain plug-in. After the agent interprets a user's natural language prompts, it calls the CodeArts Build 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

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, users can trigger service operations directly through natural language prompts in the agent chat window. There is no need to switch to the console. After the primary agent receives a user prompt, it obtains execution specifications and routing strategies via skills. Skills guide interactive operations step by step, while sub-agents handle complex orchestration tasks, executing them autonomously in an isolated context and returning results. For details about the skills and sub-agents included in the CodeArts toolchain plug-in, see All CodeArts Sub-agents and Skills.

CodeArts Build provides a skill and a sub-agent in the CodeArts toolchain plug-in.

The skill (codearts-build-expert) is expert in interactive execution of all-scenario build tasks, such as creating build tasks, updating build tasks, querying custom templates, creating templates, and downloading all logs. It understands the user's intent and guides operations step by step. When an operation is highly complex, involves batch processing, or requires multi-step orchestration, the skill hands the task off to a sub-agent (codearts-build-assistant) for execution. The sub-agent runs autonomously in an independent context, without consuming primary chat resources. It can automatically complete complex orchestration tasks such as build task execution, task list query by project, running status query, and build details query, and 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 Build scenarios are supported by CodeArts Agent.

Scenario

Scenario Description

Natural Language Prompt Example

Task management

Create, update, delete, favorite, unfavorite, disable, and enable build tasks; query resource specifications and task details.

  • Create a build task named "my-build-task" using the Maven template.
  • Update build task "my-build-task" to change the build timeout to 30 minutes.
  • Show me the available build resources and specifications.

Task execution and recording

Trigger and stop builds; view the global task list; and query project build records, build counts, build records by task, build success rate, build duration, run statuses, build details, build record details, stage/step statuses, and the task list by project.

  • Show me all build tasks.
  • Show me the build success rate of build task "my-build-task."
  • Show me the execution status of each stage and step of build record #123.
  • Show me the list of build tasks under project "my-project."

Template management

Query official templates, query custom templates, create templates, query template details, and delete templates.

  • Create a build template named "my-template" based on Maven.
  • Show me the details of build template "my-template."

Log management

Download all logs and step logs.

Download the step 2 logs of build record #123.

Task group management

View the group tree, create groups, modify groups, delete groups, and move tasks to a group.

  • Create a task group named "Group."
  • Move build task "my-build-task" to group "Group."

Keystore management

View the credential list, upload credentials, and download credentials.

  • Upload a Keystore credential with the alias "my-release-key."
  • Show me Keystore credentials.

Prerequisites

No.

Item

Description

1

CodeArts Agent has been installed and you have logged in to it using your account.

CodeArts Build's intelligent capabilities are implemented through CodeArts Agent.

2

The operations in Purchasing CodeArts Build have been performed.

To use CodeArts Build functions through CodeArts Agent, you must have purchased CodeArts Build.

3

The operations in Configuring Project-Level Role Permissions have been performed.

To use CodeArts Build functions through CodeArts Agent, you must have relevant permissions assigned.

4

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 to store your permanent AK/SK and region information in the configuration file, so there is no need to repeatedly enter this information when performing operations.
  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 build-related operations, 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: Task Management

The following is an example prompt you could use to create a build task:

Create a build task named "my-build-task." The task information is as follows:
Project: project
Group: group
Code source: Repo
Code repository branch: master
Timeout: 60 minutes

The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. Once the creation is complete, you can view the created task in the build task list.

Example result

Scenario 2: Task Execution and Recording

The following is an example prompt you could use to stop a build task:

Stop the running build task "my-build-task."

The agent begins analyzing and executing the task.

Example result

Scenario 3: Template Management

The following is an example prompt you could use to query custom build templates:

Show me all custom build templates in the current project.

The agent begins analyzing and executing the task.

Example result

Scenario 4: Log Management

The following is an example prompt you could use to obtain all logs:

Show me all run logs of build task "my-build-task."

The agent begins analyzing and executing the task. CodeArts Agent saves all logs to a local path so you can view them at any time.

Example result

Scenario 5: Task Group Management

The following is an example prompt you could use to modify group information:

Change the group name from "5678" to "Group2."

The agent begins analyzing and executing the task.

Example result

Scenario 6: Keystore Management

The following is an example prompt you could use to download a Keystore file:

Download the Keystore file.

The agent begins analyzing and executing the task. CodeArts Agent saves the Keystore file to a local path so you can view it at any time.

Example result

Tips

  • Be as specific as possible: Include key details in your prompts, such as the task name, project name, and build record ID, to help the agent carry out the task more accurately.
  • Break tasks into steps: For complex tasks, it is advised to proceed step by step (e.g., first check the task list, then trigger the build), so you can confirm results as you go.
  • Make good use of context: Referencing sources such as a currently open file or Git branch in your prompts can improve the agent's understanding.
  • Review execution: For critical operations (such as deleting a task or deleting a template), carefully review the results returned by the agent before confirming.