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

Memory

Memory allows CodeArts Agent to adapt to how you work. The agent will record your habits and preferences, such as your preferred answer style and language. Once enabled, the agent will extract your personalized preferences from your historical chats and automatically apply these settings in subsequent chats, providing you with a more tailored service experience.

Enabling the memory function offers the following advantages:

  • Personalized code generation

    AI not only predicts the next line of code but also intelligently generates code based on your personal coding style. This reduces manual adjustment time, boosts development efficiency, and more accurately matches your habits and needs.

  • Contextual understanding

    When you start a new project, AI leverages its contextual understanding to recall your preferred tools and patterns (such as logging components and error handling methods), providing smarter and more efficient development support.

  • Accurate error detection

    Since AI is familiar with your coding style and habits, it intelligently identifies and alerts you to anomalies during code writing, such as missing null pointer checks or code structures that deviate from your typical style. This helps you quickly locate and fix issues.

Constraints

Table 1 Constraints

Category

Description

Mode

This function can be used only in agent mode.

Memorized object

  • Technology stacks and professional domains: such as programming languages, frontend/backend frameworks, and styling solutions.
  • Coding styles and specifications: such as naming conventions and code organization methods.
  • Interaction and prompt habits: such as language preferences, role settings, and preferred depth of explanation.

Quantity

A maximum of 200 memory records can be displayed.

Priority

**Priority** When personal preferences conflict with skills or rules in a project, the skills and rules take precedence.

Enabling the Memory Function

  1. Log in to CodeArts Agent IDE as instructed in Quick Start.
  2. Click in the upper right corner of CodeArts Agent IDE to open the settings page.
  3. In the navigation pane on the left, choose Memory.
  4. Enable the memory function (enabled by default).
  5. At the bottom of the input box on the chat panel, choose Built-in > Agent to switch to the agent mode. The selected model is displayed on the right. You can select a model as required from the drop-down list.
  6. Initiate a chat as you want.

    For example, enter the first question.

    Generate Dijkstra's algorithm in Java.

    After the agent completes the response, enter the second question.

    Generate binary sort in Java.

  7. After the agent completes the response, click in the upper right corner of CodeArts Agent IDE to go to the global settings page.
  8. Choose Memory to view the memory records extracted by AI based on your chats.

Managing Memory Records

Table 2 Managing memory records

Operation

Procedure

Modifying memory information

Under Settings on CodeArts Agent IDE, open the Memory page. Move the pointer to the memory information to be modified and click .
CAUTION:

Modifying stored memory information is not recommended. After the memory information is modified, it will not be automatically updated.

Deleting memory information

  1. Under Settings on CodeArts Agent IDE, open the Memory page. Move the pointer to the memory information to be deleted and click .
  2. In the displayed dialog box, click OK to permanently delete the memory information.
    CAUTION:

    Deleted memory information cannot be restored. Exercise caution when performing this operation.