Chat in sidebar in VSCode becomes very slow after about 10+ chats in a session

Is there a way to prevent the VS Code extension chat from becoming extremely slow and laggy after about 10+ chats or when the context gets larger? The responses become extremely slow making it hard to maintain a longer conversation.

Is this an issue with the Cody Extension or can VS Code be given more memory? It’s not my computer i have 128gb m3 MacBook not sure why it’s so slow.

This is the technical nature of a long chat if the context increases over time.

For better performance, try to chunk you conversation in sub-task and be specific with your prompt to prevent fetching unimportant context.

As an example, you can use a top-down approach where you ask general questions and store the findings summarized in a document. Later on, you ask specific question with part of the summarized findings as reference specific to the question. This works with code too.

Try to bound the context to a specific use case and solve problems or feature integration in small steps with a new chat session per time.

Think of it as a knowledge graph, where every node is a separate chat session.