Updated on 2026-07-30 GMT+08:00

Agent Settings

You can manage agents, skills, rules, knowledge bases, and repository indexes on the CodeArts Agent console. After these resources are created, they can be used on the CodeArts Agent client.

Agents

You can manage your custom agents on the Agents page, such as creating, editing, enabling, and deleting the agents. The agents can be synchronized and used on the CodeArts Agent client.

CodeArts Agent supports two types of agents: client-side agents (created on the client) and cloud-side agents (created on the console). When a user logs in to the CodeArts Agent client, the system will locally cache the cloud-side agents which are available to the user. Then, the client will update the cache every 24 hours to keep the agents in sync with the cloud.

Table 1 Classification of custom agents

Creation Method

Scope of Application

Description

Local

Project

Effective only for the current project, distributed along with the repository, and stored locally.

Storage directory: ./ .codeartsdoer/agents in the root directory of the project

User

Effective for all projects of the current user, and stored locally

Local storage directory: %USERPROFILE%/.codeartsdoer/agents/

Cloud

Enterprise

Available to all enterprise users, created by enterprise administrators, and stored in the cloud. When a user logs in to the CodeArts Agent client, the system automatically caches the cloud agents accessible to the user to the local directory: %USERPROFILE%/.codeartsdoer/cache/enterprise/agents/.

Team

Restricted to designated teams, created by enterprise or team administrators, and stored in the cloud. When a user logs in to the CodeArts Agent client, the system automatically caches the cloud agents accessible to the user to the local directory: %USERPROFILE%/.codeartsdoer/cache/team/agents/.

User

Available only to the creator and stored in the cloud. When a user logs in to the CodeArts Agent client, the system automatically caches the cloud agents accessible to the user to the local directory: %USERPROFILE%/.codeartsdoer/cache/user/agents/.

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Agents.
  3. Click Create Agent.
  4. Set agent parameters and click Create and Enable.

    Table 2 Parameters for creating an agent

    Parameter

    Description

    Agent icon

    The system provides various preset icons for agents. Click on the icon to select a preferred style.

    Agent name

    Name of the custom agent to be created.

    Naming convention: 2 to 20 characters, consisting of letters, digits, underscores, and hyphens (-), and must start with a letter.

    Agent type

    Working mode of the agent, which affects its behavior logic and capability boundary.

    • Primary/Sub-agent: It can be used as a sub-agent to be called by a primary agent or as a primary agent to call a sub-agent.
    • Primary agent: It runs independently to process user requests and cannot be called by other agents.
    • Sub-agent: It can be called by primary agents to perform specific tasks.

    Description

    A brief explanation of what the agent does to help users understand its functionality, with a maximum of 5,000 characters.

    Applied to

    Application scope of the custom agent, which cannot be modified after creation.

    • Individual: Only the creator can use it.
    • Team: It is available only to specified teams and can be created by enterprise administrators or team administrators.
    • Enterprise: It is available to all enterprise members and can be created only by enterprise administrators.

    Available team space

    This parameter is displayed only when Applied To is set to Team.

    It specifies the teams that can use the agent.

    Enterprise administrators can view all teams but can select only one, while team administrators can only view and select the team they belong to.

    Prompt

    System instructions that define the role, tone, workflow, and rules/specifications of the agent.

    Built-in tools

    Built-in, out-of-the-box tools provided by the agent.

    • Read: used to retrieve and view files.
    • Edit: used to add, modify, or delete files.
    • Terminal: used to run system commands in the command line environment.
    • Preview: used to preview the generated frontend page in real time.
    • Webfetch: used to capture and read web page content.

    Skills

    Skills associated with the agent to enable it to perform certain specialized tasks.

    NOTE:

    CodeArts Agent has no hard limit on the number of associated skills, but it is recommended that the number not exceed 20 to ensure optimal user experience.

  5. View the created agent.

    • Return to the Agent Management page. You can view the created agent in the agent list.
      Figure 1 Viewing the target agent on the Agents page
    • On CodeArts IDE, open the settings page and click Agents. Then click to manually refresh the page. After the refresh is complete, open the target tab (for example, User) to view the target agent.
      Figure 2 Viewing the target agent on the settings page
    • In the input box on the chat page, click Agent. Verify that the target agent is displayed in the custom agent list.

      If you create a sub-agent, it will not be displayed in the custom agent list.

Table 3 shows the operation permissions of different roles on managing cloud custom agents.

Table 3 Operation permissions of different roles on cloud custom agents

Role

Enterprise Agent

Team Agent

User Agent (Operations Except Editing)

User Agent (Editing)

Enterprise administrators

All operations on all agents.

All operations on all agents.

All operations except editing on all agents.

Editing on agents created by themselves.

Team administrators

No operation permissions.

All operations on agents created by members of their own team.

All operations except editing on agents created by members of their own team.

Editing on agents created by themselves.

Members (of an enterprise or a team)

No operation permissions.

No operation permissions.

All operations except editing on agents created by themselves.

Editing on agents created by themselves.

Table 4 Managing cloud custom agents

Operation

Procedure

Enabling or disabling a cloud custom agent

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Agents.
  3. In the agent list, click / next to an agent to enable or disable it.

Editing a cloud custom agent

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Agents.
  3. In the agent list, click Edit in the Operation column of the target agent to edit it.

Copying a cloud custom agent

When you need to reuse mature configurations, iterate multiple versions in parallel, share team templates, or isolate tasks, you can achieve this by copying agents.

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Agents.
  1. In the agent list, click Copy in the Operation column of the target agent.

    System built-in agents cannot be copied.

  2. Adjust the configuration as required (or retain the default settings) and click Create and Enable to quickly generate a new agent.

Deleting a cloud custom agent

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Agents.
  3. Check the status of the target agent.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to delete the agent.
  4. Click Delete in the Operation column of the target agent. The Delete Agent dialog box is displayed.
  5. Enter DELETE or click Autofill, and then click OK to delete the agent.

    Deleted agents cannot be restored. Ensure that the agent is no longer needed before performing this operation.

Skills & Rules

You can manage your skills and rules on the Skills & Rules page, such as creating, editing, enabling, and deleting skills and rules. The skills and rules can be synchronized and used on the CodeArts Agent client.

  • There are two types of skills: client-side skills (created on the client) and cloud-side skills (created on the console). Meanwhile, these skills are classified into enterprise-level, team-level, project-level, and user-level skills.
    Table 5 Classification of custom skills

    Creation Method

    Scope of Application

    Description

    Local

    Project

    Applied to the current project and stored in a local path

    Storage directory: ./.codeartsdoer/skills/ in the root directory of the project

    User

    Effective for all projects of the current user, and stored locally

    Local storage directory: %USERPROFILE%/.codeartsdoer/skills

    Cloud

    Enterprise

    Skills unified across the enterprise, available to all members, created by the enterprise administrator, and stored in the cloud.

    Team

    Skills unified across the team, available to specific teams, created by the enterprise administrator or team administrator, and stored in the cloud.

    User

    Available only to the user and stored in the cloud.

    If skills with the same name exist, the skill invocation priority is as follows: cloud enterprise skills > cloud team skills > local project skills > local user skills > cloud user skills > built-in system skills.

  • There are two types of rules: client-side rules (created on the client) and cloud-side rules (created on the console). Meanwhile, these rules are classified into enterprise-level, team-level, project-level, and user-level rules. To create client-side user-level rules, see Creating Cloud-Side Rules in IDE.
    Table 6 Rule types

    Creation Method

    Scope of Application

    Description

    Local

    Project

    Effective only for the current project, distributed along with the repository, and stored locally.

    Rule file storage directory: ./.codeartsdoer/rule in the root directory of the project.

    User

    Effective for all projects of the current user, formulated based on personal habits or preferences, and stored locally.

    Local storage directory: %USERPROFILE%/.codeartsdoer/rule

    Cloud

    Enterprise

    Rules unified across the enterprise, available to all members, created by the enterprise administrator, and stored in the cloud.

    Team

    Rules unified across the team, available to specific teams, created by the enterprise administrator or team administrator, and stored in the cloud.

    User

    Rules formulated based on personal habits or preferences, available only to the members themselves, and stored in the cloud.

    If rules with the same name exist, the rule invocation priority is as follows: cloud enterprise rules > cloud team rules > local project rules > local user rules > cloud user rules.

To create an enterprise skill, a team skill, or user skill on the cloud, perform the following steps: Before creating a cloud skill, ensure that you have purchased CodeArts Agent basic or professional edition.

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Skills and Rules. The skill and rule lists are displayed.
  3. On the Skills tab, click Add Skill in the upper right corner. The Add Skill dialog box is displayed.
  4. Right-click in the blue box area and upload the target skill ZIP file from the local. Alternatively, drag and drop the local skill ZIP file to the blue box area and click OK.

    • The skill ZIP file must conform to the required directory structure; otherwise, the import may fail. For example, the root directory of each skill folder must contain a SKILL.md file, which must include the skill name, description, and other details in YAML format.
    • Only one ZIP file can be uploaded at a time. The file can contain multiple skill folders, and the total file size cannot exceed 5 MB.
    Figure 3 Creating a skill

  5. Set parameters for creating a cloud skill as instructed in Table 7.

    Figure 4 Creating a cloud skill
    Table 7 Cloud skill parameters

    Parameter

    Description

    Change

    If you need to re-upload a skill ZIP file, click Change and re-upload it as instructed in 4.

    Applied To

    • Private: available only to yourself and will not be shared with other users.
    • Team: available to specified teams and can be created by enterprise administrators or team administrators.
    • Enterprise: available to all members of the entire enterprise, and can only be created by enterprise administrators.

    Teams

    This parameter is displayed only when Applied To is set to Team.

    Select a team from the drop-down list. If no team has been created, create one first.

    Enterprise administrators can view and select all teams, while team administrators can only view and select the team they belong to.

    Tag

    (Optional) Several types of tags have been preset in CodeArts Agent. Select tags from the drop-down list as required.

  6. Click Confirm and Enable to complete the skill creation.

    On the Skills tab, view the created skill. To immediately view the created cloud skill on the client, go to the corresponding skill tab (Enterprise/Team/User) under Skills and Rules on the client, and click or choose > Update in the skills area. Then the cloud skill is synchronized to the client.

    • The CodeArts Agent client automatically synchronizes cloud skills every 24 hours.
    • The CodeArts Agent client synchronizes only enabled skills.

Table 8 shows the operation permissions of different roles on managing cloud skills.

Table 8 Operation permissions of different roles on cloud skills

Role

Enterprise Skill

Team Skill

User Skill (Operations Except Editing)

User Skill (Editing)

Enterprise administrators

All operations on all skills.

All operations on all skills.

All operations except editing on all skills.

Editing on skills created by themselves.

Team administrators

The following operations can be performed:

  • View cloud skill details.
  • Favorite or unfavorite skills.

All operations on skills created by members of their own team.

All operations except editing on skills created by members of their own team.

Editing on skills created by themselves.

Team members

The following operations can be performed:

  • View cloud skill details.
  • Favorite or unfavorite skills.

The following operations can be performed on skills created by members of their own team:

  • View cloud skill details.
  • Favorite or unfavorite skills.

All operations except editing on skills created by themselves.

Editing on skills created by themselves.

Enterprise members

The following operations can be performed:

  • View cloud skill details.
  • Favorite or unfavorite skills.

No operation permissions.

All operations except editing on skills created by themselves.

Editing on skills created by themselves.

Table 9 Managing Cloud Skills

Operation

Procedure

Viewing cloud skill details

  • On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and then click the name of the target skill to view its details.
  • On the settings page of CodeArts Agent IDE, choose Skills and Rules. Go to the corresponding skill tab (Enterprise/Team/User). Hover the cursor on the target skill and click to view the skill details.

Editing cloud skills

  1. On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and view the status of the target skill.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to edit the skill.
  2. Click Edit next to the target skill.

Deleting a cloud skill

  1. On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and view the status of the target skill.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to delete the skill.
  2. Click Delete next to the target skill.

    The target skill is successfully deleted when it is removed from the skill list.

CAUTION:

Deleting a skill will affect the agents using it. Deleted skills cannot be recovered. Exercise caution when performing this operation.

Enabling or disabling a cloud skill

Use either of the following methods to enable or disable a cloud skill:

  • On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and click / next to the target skill.
  • On the settings page of CodeArts Agent IDE, choose Skills and Rules. Go to the corresponding skill tab (Enterprise/Team/User). Toggle a target skill on or off.

Only enabled skills can be synchronized to the CodeArts Agent client.

Adding a cloud skill to favorites or removing it

On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and click Favorite or Unfavorite next to the target skill.

View the favorites on the Favorites tab.

Batch deleting cloud skills

  1. On the CodeArts Agent console, choose Skills & Rules, click the Skills tab, and view the status of the target skill.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to delete the skill.
  2. Select the target skills and choose More > Batch Delete in the upper right corner. A confirmation dialog box is displayed.
  3. Enter DELETE or click Autofill, and then click OK.

    The target skill is successfully deleted when it is removed from the skill list.

Batch enabling or disabling cloud skills

Use either of the following methods to batch enable or disable cloud skills:

  • On the CodeArts Agent console, choose Skills & Rules, and click the Skills tab. Select the target skills and click Batch Enable or choose More > Batch Disable in the upper right corner.
  • On the settings page of CodeArts Agent IDE, choose Skills and Rules. Go to the corresponding skill tab (Enterprise/Team). Click in the upper right corner. Select the target skills and click Enable or Disable in the upper right corner.
  • On the settings page of CodeArts Agent IDE, choose Settings > Skills and Rules > User. Choose > Batch Operate in the upper right corner. Select the target skills and click Enable or Disable in the upper right corner.

Only enabled skills can be synchronized to the CodeArts Agent client.

Batch adding cloud skills to favorites or removing them

On the CodeArts Agent console, choose Skills & Rules, and click the Skills tab. Select the target skills and choose More > Batch Favorite or More > Batch Unfavorite in the upper right corner.

View the favorites on the Favorites tab.

To create an enterprise rule, a team rule, or user rule on the cloud, perform the following steps:

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Skills and Rules. The skill and rule lists are displayed.
  3. On the Rules tab, click Add Rule in the upper right corner. The Add Rule dialog box is displayed.
  4. Set the parameters based on Table 10.

    Figure 5 Creating a cloud rule
    Table 10 Cloud rule parameters

    Parameter

    Description

    Name

    Name of the rule to be created.

    Naming rules: Enter 1 to 64 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

    Content

    Customize one or more rules. The value can contain a maximum of 50,000 characters.

    Example: requiring the system to always respond using Python.

    Application Scope

    Application scope of a rule, that is, where the rule takes effect.

    • Auto Apply: The rule applies to all chats by default and is automatically identified by the system.
    • Manual Call: The rule does not take effect automatically. You must enter # in the chat area and select a specific rule from the list to apply it.

    Applied To

    • Private: available only to the members themselves and will not be shared with other users.
    • Enterprise: available to all members of the entire enterprise, and can only be created by enterprise administrators.
    • Team: available to specified teams and can be created by enterprise administrators or team administrators.

    Teams

    This parameter is displayed only when Applied To is set to Team.

    Select a team from the drop-down list. If no team has been created, create one first.

    Enterprise administrators can view and select all teams, while team administrators can only view and select the team they belong to.

    Tag

    (Optional) Several types of tags have been preset in CodeArts Agent. Select tags from the drop-down list as required.

    Brief Description

    (Optional) Description of the rule. Enter up to 1,024 characters.

  5. Click Confirm and Enable to complete the rule creation.

    On the Rules tab, view the created rule. To immediately view the created cloud rule on the client, go to the corresponding rule tab (Enterprise/Team/User) under Skills and Rules on the client, and click in the rules area. Then the cloud rule is synchronized to the client.

    • The CodeArts Agent client automatically synchronizes cloud rules every 24 hours.
    • The CodeArts Agent client synchronizes only enabled rules.

Table 11 shows the operation permissions of different roles on managing cloud rules.

Table 11 Operation permissions of different roles on cloud rules

Role

Enterprise Rule

Team Rule

User Rule (Operations Except Editing)

User Rule (Editing)

Enterprise administrators

All operations on all rules.

All operations on all rules.

All operations except editing on all rules.

Editing on rules created by themselves.

Team administrators

The following operations can be performed:

  • Favorite or unfavorite rules.
  • Modify the application scope of cloud rules.

All operations on rules created by members of their own team (including the team administrator).

All operations except editing on rules created by members of their own team (including the team administrator).

Editing on rules created by themselves.

Team members

The following operations can be performed:

  • Favorite or unfavorite rules.
  • Modify the application scope of cloud rules.

The following operations can be performed on rules created by members of their own team (including the team administrator):

  • Favorite or unfavorite rules.
  • Modify the application scope of cloud rules.

All operations except editing on rules created by themselves.

Editing on rules created by themselves.

Enterprise members

The following operations can be performed:

  • Favorite or unfavorite rules.
  • Modify the application scope of cloud rules.

No operation permissions.

All operations except editing on rules created by themselves.

Editing on rules created by themselves.

Table 12 Managing cloud rules

Operation

Procedure

Editing a cloud rule

  1. On the CodeArts Agent console, choose Skills & Rules, click the Rules tab, and view the status of the target rule.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to edit the rule.
  2. Click Edit next to the target rule.

Deleting a cloud rule

  1. On the CodeArts Agent console, choose Skills & Rules, click the Rules tab, and view the status of the target rule.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to delete the rule.
  2. Click Delete next to the target rule.

    The target rule disappears from the list once successfully deleted.

CAUTION:

Deleting a rule will affect the agents using it. Deleted rules cannot be recovered. Exercise caution when performing this operation.

Enabling or disabling a cloud rule

On the CodeArts Agent console, choose Skills & Rules, click the Rules tab, and click / next to the target rule.

Only enabled rules can be synchronized to the CodeArts Agent client.

Adding a cloud rule to favorites or removing it

On the CodeArts Agent console, choose Skills & Rules, click the Rules tab, and click Favorite or Unfavorite next to the target rule.

View the favorites on the Favorites tab.

Batch deleting cloud rules

  1. On the CodeArts Agent console, choose Skills & Rules, click the Rules tab, and view the status of the target rule.
    • If it is enabled, disable it first.
    • If it is disabled, go to the next step to delete the rule.
  2. Select the target rules and choose More > Batch Delete in the upper right corner. A confirmation dialog box is displayed.
  3. Enter DELETE or click Autofill, and then click OK.

    The target rule disappears from the list once successfully deleted.

Batch enabling or disabling cloud rules

On the CodeArts Agent console, choose Skills & Rules, and click the Rules tab. Select the target rules and click Batch Enable or choose More > Batch Disable in the upper right corner.

Only enabled rules can be synchronized to the CodeArts Agent client.

Batch adding cloud rules to favorites or removing them

On the CodeArts Agent console, choose Skills & Rules, and click the Rules tab. Select the target rules and choose More > Batch Favorite or More > Batch Unfavorite in the upper right corner.

View the favorites on the Favorites tab.

Modifying the application scope of cloud enterprise rules or team rules

On the settings page of CodeArts Agent IDE, choose Skills and Rules > Enterprise > Rules or Skills and Rules > Team > Rules. Locate the target rule and click the switch next to it.

  • : You need to manually apply the rule.
  • : The system automatically identifies the rule and applies it.

Batch modifying the application scope of cloud enterprise rules or team rules

  1. On the settings page of CodeArts Agent IDE, choose Skills and Rules > Enterprise > Rules or Skills and Rules > Team > Rules. Click in the upper right corner.
  2. Select the target rules and click Enable or Disable in the upper right corner.

Knowledge Space

You can upload enterprise internal documents and technical materials to the Knowledge Space page for unified management. The knowledge can serve as contextual reference to improve the accuracy of the agent's responses. Knowledge spaces can only be created and managed on the console, and only accounts with seats enabled can perform related operations.

  1. Create a knowledge space.

  2. Create a knowledge base.

  3. Import files.

Table 17 shows the operation permissions of different roles on managing knowledge bases.

Table 17 Operation permissions of different roles on knowledge bases

Role

Enterprise Knowledge Base

Team Knowledge Base

User Knowledge Base

Enterprise administrators

All operations on all knowledge bases.

All operations on the knowledge bases of the team which the enterprise administrator belongs to.

All operations on the knowledge bases created by themselves.

Team administrators

The following operations can be performed:

  • Test hit rates of knowledge bases.
  • View operation history on knowledge bases.

All operations on knowledge bases created by members of their own team (including the team administrator).

All operations on the knowledge bases created by themselves.

Team members

The following operations can be performed:

  • Test hit rates of knowledge bases.
  • View operation history on knowledge bases.

The following operations can be performed on knowledge bases created by members of their own team (including the team administrator):

  • Test hit rates of knowledge bases.
  • View operation history on knowledge bases.

All operations on the knowledge bases created by themselves.

Enterprise members

The following operations can be performed:

  • Test hit rates of knowledge bases.
  • View operation history on knowledge bases.

No operation permissions.

All operations on the knowledge bases created by themselves.

Table 18 Managing knowledge bases

Operation

Procedure

Editing a knowledge space

On the knowledge space page, click on the target knowledge space and choose Edit.

Deleting a knowledge space

Before deleting a knowledge space, you must clear all knowledge bases in the space.

  1. On the knowledge space page, click on the target knowledge space and choose Delete. The Delete Knowledge Space dialog box is displayed.
  2. Click Autofill. The system automatically enters DELETE. Click OK to delete the knowledge space.
    The target knowledge space has been removed from the knowledge space page, indicating that the deletion was successful.
    CAUTION:

    Deleting a knowledge space will delete all resources within it. Once confirmed, data cannot be recovered; make a backup before this operation.

Testing the hit rate of a knowledge base

The hit rate test is designed to run search queries against the knowledge base to verify the accuracy and relevance of retrieval results.

  1. On the knowledge space page, click Hit Test in the upper right corner.
  2. Select up to 10 knowledge bases to be tested.
  3. Select the field to be retrieved from the drop-down list.
  4. Select a retrieval mode.
    • Text: Based on keyword matching; best suited for exact-word matches and short queries.
    • Vector: Based on semantic similarity; understanding context and synonyms, making it ideal for natural language queries.
    • Hybrid: Combining text and vector retrieval, using weighted fusion of both results. This generally yields better performance, especially for complex semantic queries.
  5. Enter the content you want to search (maximum 1,000 characters).
  6. Set the number of returned results.
  7. Click Debug. You can view the final results under Chunks.

Deleting a knowledge base

When content is severely outdated and holds no retention value, or contains critical errors where correction is too costly or impossible, follow the steps below to delete the knowledge base.

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Locate the row that contains the target knowledge base, and click Delete. The Delete Knowledge Base dialog box is displayed.
  3. Click Autofill. The system automatically enters DELETE. Click OK to delete the knowledge base.
    The target knowledge base has been removed from the knowledge space details page, indicating that the deletion was successful.
    CAUTION:

    Deleting a knowledge base will delete all data within it. The deleted data cannot be recovered. Ensure that you have backed up important data before this operation.

Batch deleting knowledge bases

Deleting knowledge bases one by one manually is inefficient; you can batch delete knowledge bases through the following steps:

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Click Batch Delete in the upper right corner and select the target knowledge bases.
  3. Click Delete. The Batch Delete Knowledge Bases dialog box is displayed.
  4. Click Autofill. The system automatically enters DELETE. Click OK to delete the knowledge bases.
    The target knowledge bases have been removed from the knowledge space details page, indicating that the deletion was successful.
    CAUTION:

    Deleting a knowledge base will delete all data within it. The deleted data cannot be recovered. Ensure that you have backed up important data before this operation.

Viewing operation history on knowledge bases

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Click History in the upper right corner to view the operation logs of all knowledge bases in the knowledge space.

Re-importing a file

If file upload fails, check your network connection or file format, and click Reimport to try again.

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Click the name of the target knowledge base to view its details.
  3. Click Reimport in the upper right corner and view the import result.

Deleting a file

When dealing with a small number of files, deleting them one by one is more intuitive and flexible, making it easier to locate and clear specific content.

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Click the name of the target knowledge base to view its details.
  3. Click Delete next to the target file. The Delete File dialog box is displayed.
  4. Click Autofill. The system automatically enters DELETE. Click OK to delete the file.
    The target file has been removed from the knowledge base details page, indicating that the deletion was successful.
    CAUTION:

    Deleted files will be permanently cleared and cannot be recovered. Ensure that you have backed up important data before this operation.

Batch deleting files

Deleting many files one by one manually is inefficient; you can also batch delete files using the following steps: This is ideal for scenarios such as knowledge base restructuring, version iterations, and deduplication, helping you keep your knowledge base organized.

  1. On the knowledge space page, click the knowledge space where the target knowledge base is located to view its details.
  2. Click the name of the target knowledge base to view its details.
  3. Click Batch Delete in the upper right corner and select the target files.
  4. Click Delete. The Batch Delete Files dialog box is displayed.
  5. Click Autofill. The system automatically enters DELETE. Click OK to delete the files.
    The target files have been removed from the knowledge base details page, indicating that the deletion was successful.
    CAUTION:

    Deleted files will be permanently cleared and cannot be recovered. Ensure that you have backed up important data before this operation.

Repository Index

Repository Index helps you quickly search and retrieve relevant information within your codebase, supporting both client-side indexes and cloud-side indexes. Client-side indexes are built on the CodeArts Agent client, and cloud-side indexes are built on the CodeArts Agent console. Only accounts with enabled seats can create and delete the cloud indexes.

Table 19 Differences between local user indexes and cloud indexes

Dimension

Local User Index

Cloud Index

Used by

Current user

  • Enterprise: available to all enterprise members and created by the enterprise administrator, team administrator, enterprise members, or team members.
  • Team: available only to team members and created by the enterprise administrator, team administrator, or team members.
  • User: available only to members themselves.

Repository type

Unlimited

Git and GitHub repositories are supported.

If your account has been assigned a seat, you can create cloud repository indexes. If not, you cannot create them.

  1. Log in to the CodeArts Agent console.
  2. In the navigation pane on the left, choose Agent Settings > Repository Index.
  3. Click Create Index.
  4. Set basic index information by referring to Table 20 and click Next.

    Table 20 Repository index parameters

    Parameter

    Description

    Visible To

    Visible scope of the repository index.

    • User: available only to members themselves.
    • Team: available only to team members and created by the enterprise administrator, team administrator, or team members.
    • Enterprise: available to all enterprise members and created by the enterprise administrator, team administrator, enterprise members, or team members.

    Teams

    This parameter is displayed only when Visible To is set to Team.

    Select a team from the drop-down list; only the teams which the current account belongs to are displayed.

    Code Source

    Source of the code repository that you want to index.

    • Git: a general Git repository.
    • GitHub: a GitHub repository, which can be a public repository or an authorized private repository.

    Authorization Method

    Method to authorize the system to access your code source.

    • Authorize by Service: Select a service endpoint from the drop-down list. The endpoint corresponds to the connection information of the GitHub or Git repository.

      If no service endpoint has been created, click Add to create one by referring to Table 21.

    • Authorize by Personal Token: Authorize access requests using an access token generated from your personal account.

    Default Branch

    This parameter is displayed only when Code Source is set to Git.

    Enter the branch name of a Git repository. The branch name can contain a maximum of 200 characters.

    Figure 9 Creating a service endpoint
    Table 21 Service endpoint parameters

    Parameter

    Description

    Connection Name

    Name of the custom repository to be connected.

    Naming rules: The name can contain letters, digits, underscores (_), and hyphens (-), but cannot start with an underscore.

    Git URL

    This parameter is displayed only when Code Source is set to Git.

    HTTPS access address of the Git repository

    User Name

    This parameter is displayed only when Code Source is set to Git.

    User name for HTTPS authentication of the Git repository.

    Password or Access Token

    This parameter is displayed only when Code Source is set to Git.

    Password or access token for HTTPS authentication of the Git repository.

    Access Token

    This parameter is displayed only when Code Source is set to Github.

    Access token for HTTPS authentication of the GitHub repository.

  5. Select the repository and language, and click OK to finish creating the index.

    On the repository index page, view the newly created repository index. When its status changes from parsing to parsing completed, the repository index has been successfully parsed.

  6. Return to the CodeArts Agent IDE client and open the Git, Repo, or GitHub repository project. CodeArts Agent automatically downloads team repository indexes from the cloud.

    After the team repository indexes are successfully downloaded, the progress displayed on the page reaches 100%.

    If the number of files in the repository is greater than 50,000, click Create Index to manually build the repository index.

  7. (Optional) Use the index in the intelligent Q&A mode.

    To use the index in the intelligent Q&A mode, first ensure that the indexing process is completed. Then, at the bottom of the input box on the chat panel, click to search for indexes. When the icon changes to , the index function is enabled.

Table 22 shows the operation permissions of different roles to delete repository indexes.

Table 22 Scope of repository indexes that can be deleted by different roles

Role

Enterprise-Level Repository Index

Team-Level Repository Index

User-Level Repository Index

Enterprise administrator

All repository indexes

All repository indexes of the administrator's team

All repository indexes created by the user

Team administrator

All repository indexes created by the user

All repository indexes created by team administrator and members of the team managed by the team administrator

All repository indexes created by the user

Team member

All repository indexes created by the user

All repository indexes created by the user

All repository indexes created by the user

Enterprise member

All repository indexes created by the user

No operation permissions.

All repository indexes created by the user

Table 23 Repository index management on the console

Operation

Procedure

Delete a specified repository index.

When there are only several indexes, you can delete them one by one.

  1. On the Repository Index page, locate the target index, and click Delete in the Operation column. The Delete Repository Index dialog box is displayed.
  2. Confirm the information, and click Autofill. The system automatically enters DELETE. Then, click OK.
    The target index cannot be found on the Repository Index page, indicating that the deletion is successful.
    CAUTION:

    The deleted index cannot be restored. Exercise caution when you perform this operation.

Delete the repository indexes in a batch.

If there are many indexes, you can delete them in batches.

  1. In the upper right corner of the Repository Index page, click Batch Delete and select the indexes to be deleted.
  2. Click Delete. The Delete Repository Index dialog box is displayed.
  3. Confirm the information, and click Autofill. The system automatically enters DELETE. Then, click OK.

    The target indexes cannot be found on the Repository Index page, indicating that the deletion is successful.

    CAUTION:

    The deleted indexes cannot be restored. Exercise caution when you perform this operation.