Give your AI long-term memory for technical conversations
G

Give your AI long-term memory for technical conversations

Give your AI long-term memory for technical conversations

3,348 stars
N/A forks
N/A contributors

README

Project documentation from GitHub

Give Your AI Assistant a Technical Memory

Ever had that feeling where you're deep in a technical conversation with an AI, you close the chat, and poof—all that context is gone? You come back the next day to pick up where you left off on a complex code problem, and you have to start from scratch, re-explaining your project structure, decisions, and the weird bug you're chasing. It breaks the flow and wastes time.

What if your AI assistant could remember? Not just within a single session, but across days, weeks, and different projects? That's the core idea behind Basic Memory. It's a straightforward tool designed to give LLMs and AI agents a form of long-term memory, specifically tuned for technical work.

What It Does

Basic Memory is a lightweight, open-source memory module for AI applications. In simple terms, it's a system that sits alongside your LLM (like something powered by the OpenAI API) and manages the storage and retrieval of information from past conversations. Instead of trying to cram the entire history into a limited context window, it saves key pieces of information—code snippets, architectural decisions, error logs—into a searchable database. When you ask a new question, it can find and inject the most relevant past memories into the prompt, giving the AI the context it needs without you having to repeat yourself.

Why It's Cool

The clever part is in its simplicity and focus. It's not trying to be a general-purpose memory for everything; it's built for developers and technical chats.

  • Project-Specific Memory: You can scope memories to different projects. Memories from your web-app-redesign don't pollute the context when you're working on your home-automation-script. This keeps the AI's recall relevant and accurate.
  • It Handles the "How" for You: You don't need to manually decide what to save. The system automatically extracts and stores embeddings (numerical representations of text) from the conversation. When you query later, it performs a semantic search to find memories that are meaningfully related to your current question, not just keyword matches.
  • Open and Hackable: It's a Python-based tool with a clear API. The repository provides a ready-to-use BasicMemory class, but you can easily fork it and tweak it for your specific needs—change the vector database, adjust how memories are chunked, or integrate it into your existing agent setup.
  • Solves a Real Pain Point: For developers using AI as a pair programmer or problem-solver, context loss is the biggest bottleneck. Basic Memory directly tackles that, making iterative technical dialogue actually possible.

How to Try It

The quickest way to see it in action is to check out the repository. It includes instructions and examples to get you started.

Did you like this issue?

Join our weekly newsletter

Love discovering amazing projects?

Help us continue bringing you the best open-source discoveries every week.

Back to Projects
Last updated: Dec 23, 2025