Skip to content
On this page

Memory Cleanup

CodePanda's AI assistant maintains a conversation history to provide context-aware responses as you build your project. Over time, this memory can become large, potentially affecting performance and increasing token usage.

While CodePanda automatically manages memory through auto cleanups, there are situations where you may want to manually trigger this process for immediate benefits.

Why Clean Up Memory?

There are several benefits to manually cleaning up the AI's memory:

  1. Improved Focus: The AI will prioritize your most recent conversations, leading to more relevant responses.
  2. Reduced Token Usage: Fewer tokens means faster responses and reduced costs.
  3. Better Performance: A streamlined memory allows the AI to process your requests more efficiently.

When to Clean Up Memory

Important: Most of the time, you should rely on CodePanda's automatic memory management instead of manual cleanup.

Consider cleaning up memory when:

  • You're starting a new phase of your project
  • The AI seems to be referencing outdated information
  • You notice slower response times
  • You want to reduce token usage

How to Clean Up Memory

Cleaning up memory in CodePanda is simple:

  1. In the chat interface, locate the eraser icon (🧹) in the top-right corner.
  2. Click the icon to initiate memory cleanup.
  3. The AI will compact its memory, retaining only the most essential information.

Memory Cleanup Button

What Happens During Memory Cleanup

When you clean up memory:

  • The AI preserves critical project information
  • Recent conversations are prioritized
  • Older conversation entries are removed, not summarized
  • The AI can still access your project files and codebase

Memory cleanup is non-destructive to your project files and doesn't affect the AI's ability to access or modify your code.