Intelligent CodeArts Check Automation with CodeArts Agent
CodeArts Check 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 code check 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 perform routine check operations such as creating and executing code check tasks and viewing check results.
Core Benefits
- No switching required: You can complete code check 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, execution, and query with just prompts.
- Full scenario coverage:Three major scenarios: check task management, check result query, and access control policy setting.
- End-to-end development process: The integration involves cooperation with services such as CodeArts Pipeline and CodeArts Repo, enabling a seamless, end-to-end workflow.
Principles
CodeArts Check 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 Check API via Koo Command Line Interface (KooCLI), to perform the corresponding operations, and returns results to the chat window.
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 Check provides a skill and a sub-agent in the CodeArts toolchain plug-in.
The skill (codearts-check-expert) is expert in interactive execution of full-scenario code check tasks, including creating and executing check tasks, querying check results, managing defects, managing rule sets, and configuring access control policies. 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-check-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 executing check tasks, querying defect statistics, providing rectification suggestions, and generating check reports, 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 Check scenarios are supported by CodeArts Agent.
| Scenario | Scenario Description | Natural Language Prompt Example |
|---|---|---|
| Check task management | Create and run check tasks, switch a task's rule set, and configure build parameters. | Run check task "my-check-task." |
| Check result query | Query code check metrics and issue lists, and provide rectification suggestions. | Show me the issues of check task "my-check-task." |
| Access control policy setting | Configure the quality gate for an individual task. | Update the quality gate for task "my-check-task" to 1 critical issue and 2 major issues. |
Prerequisites
| No. | Item | Description |
|---|---|---|
| 1 | CodeArts Agent has been installed and you have logged in to it using your account. | CodeArts Check's intelligent capabilities are implemented through CodeArts Agent. |
| 2 | The operations in Purchasing CodeArts Check have been performed. | To use CodeArts Check functions through CodeArts Agent, you must have purchased CodeArts Check. |
| 3 | The operations in Configuring Project-level Role Permissions have been performed. | To use CodeArts Check functions through CodeArts Agent, you must have relevant permissions assigned. |
Tokens or credits in your CodeArts Agent account are consumed when this operation invokes tools or runs LLM inference.
Procedure
- Click to download the CodeArts toolchain plug-in.
- Click install.bat in the plug-in package to install the plug-in and KooCLI.
- 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.
- 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 code check-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: Check Task Management
The following is an example prompt you could use to execute a code check task:
Run check task "Maven-ai-20260902094804."
The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. Once the task is complete, you can view the executed task in the task list.
Example result

Scenario 2: Check Result Query
The following is an example prompt you could use to query defect statistics by level:
Show me major issues in task "hgf_sonar_AzureResourceManager_Check Directory."
The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. Once the task is complete, you can see that the results match what are shown on the console.
Example result

Scenario 3: Access Control Policy Setting
The following is an example prompt you could use to update a quality gate:
Update the quality gate for task "JavaDemo-20260108173702" to 0 fatal issues and 0 major issues.
The agent begins analyzing and executing the task, with the entire process displayed in real time within the chat. Once the task is complete, you can see that the quality gate values for the task are updated.
Example result

Related Documents
For more use cases of the CodeArts toolchain plug-in, see 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