IntermediatePython

basic-memoryGive Your AI Long-Term Memory

Basic Memory is an open-source Python tool designed to inject persistent memory into AI conversations. It eliminates the need for users to repeatedly explain project backgrounds by leveraging a local knowledge graph and semantic caching. This allows AI assistants like ChatGPT and Claude to retain crucial context across sessions, making it particularly valuable for developers and heavy AI users seeking consistent, context-aware interactions.

3.2K Stars
213 forks
86 issues
172 browse
Python
AGPL-3.0
Indexed

Project Overview

Basic Memory is an open-source Python tool designed to inject persistent memory into AI conversations. It eliminates the need for users to repeatedly explain project backgrounds by leveraging a local knowledge graph and semantic caching. This allows AI assistants like ChatGPT and Claude to retain crucial context across sessions, making it particularly valuable for developers and heavy AI users seeking consistent, context-aware interactions.

One of the most frustrating aspects of interacting with AI assistants is the constant need to re-explain yourself. Imagine starting a new chat and having to reiterate, "I'm a backend developer, my project uses Python and PostgreSQL, and I'm facing this specific issue..." even though you discussed a similar code block just last week. The AI simply forgets. This is precisely the pain point that Basic Memory, an open-source project, aims to solve.

What is Basic Memory and How Does It Work?

At its core, Basic Memory functions as a local memory layer that runs directly on your machine. When you interact with AI frontends like ChatGPT, Claude, or others, Basic Memory operates in the background, silently recording key information. This includes details like project names, technology stacks, common terminology, and even your personal preferences. It then intelligently injects this context into subsequent conversations. It's not a standalone chat client but rather an enhancement tool, designed to integrate with existing AI services via API or browser extensions.

The magic behind Basic Memory lies in its dual core mechanisms: a knowledge graph and semantic caching. It builds a lightweight knowledge graph using SQLite and embeddings in Python. After each conversation, it extracts and stores structured information—for instance, "User is a Rails developer" or "Project name is Omega." When you initiate a new query, Basic Memory uses semantic similarity matching to retrieve the most relevant memory fragments and injects them into the system prompt. Crucially, this entire process occurs locally, ensuring your data never leaves your machine, which is a significant win for privacy.

  • Automatic Entity Extraction: It identifies and stores key entities like names, tech stacks, project titles, and problem domains.
  • Semantic Retrieval: Utilizes vector similarity to pinpoint and recall the most valuable past interactions.
  • Local Operation: All data remains on your device, giving you complete control over sensitive information.

Who Benefits from Basic Memory?

If you're a developer, writer, or anyone who finds themselves engaging in dozens of AI conversations daily, you'll immediately grasp the value here. Consider a scenario where you're building a microservices framework. Yesterday, ChatGPT helped you design an API interface. Today, you want to refine it further. With Basic Memory, there's no need to re-paste code or re-explain the business logic; the system automatically pulls in yesterday's key decisions into your current session. Another compelling use case is switching between multiple projects. If you're working on a frontend project in the morning and tackling a data pipeline in the afternoon, the AI can intelligently sense your current context and provide tailored advice.

However, it's not without its limitations. Currently, Basic Memory primarily supports the web versions of ChatGPT and Claude, functioning through browser extensions or custom API calls. Mobile support is generally lacking, and its effectiveness relies on users actively installing and configuring it. For non-technical users, the setup barrier might be a bit high.

Getting Started with Basic Memory

The project has garnered significant attention on GitHub, boasting over 3,000 stars and an active community. Installation is straightforward: a simple pip install basic-memory, followed by running a local service. After that, you install the corresponding browser extension, grant authorization, and you're good to go. The entire process typically takes about 10 minutes and doesn't require deep machine learning expertise. The project documentation is clear and provides various examples for frontend integration.

Basic Memory isn't a flashy, generative AI product. Instead, it tackles one of the most persistent and tedious "repetitive tasks" in daily AI usage. For heavy AI users, it's like adding a backup drive to your conversations—you no longer have to worry about AI amnesia, allowing you to focus on the actual problem at hand.

AI memorylong-term memoryopen-source toolpersonal AI assistantknowledge graphsemantic cachingconversation enhancementChatGPT helpercross-session memoryPython

Project Rating

0.0 (0 Evaluation)

Share

Frequently Asked Questions

What is basic-memory: Give Your AI Long-Term Memory?

Basic Memory is an open-source Python tool designed to inject persistent memory into AI conversations. It eliminates the need for users to repeatedly explain project backgrounds by leveraging a local knowledge graph and semantic caching. This allows AI assistants like ChatGPT and Claude to retain crucial context across sessions, making it particularly valuable for developers and heavy AI users seeking consistent, context-aware interactions.

What language is basic-memory: Give Your AI Long-Term Memory written in?

basic-memory: Give Your AI Long-Term Memory is primarily written in Python.

What license is basic-memory: Give Your AI Long-Term Memory under?

basic-memory: Give Your AI Long-Term Memory is released under the AGPL-3.0 license.

Related Projects

No results yet

Explore More

Similar Tools

PakBot

PakBot

PakBot is Pakistan's pioneering AI assistant, breaking language barriers by supporting Urdu, English, Punjabi, Sindhi, Pashto, and more. Users can access text chat, image generation, voice conversations, and web search for free. It aims to empower South Asian users to engage with AI in their native languages, bridging the digital divide.

MyPersonalContext

MyPersonalContext

MyPersonalContext tackles the fragmented AI personalization problem by offering a portable memory layer. It allows AI services like Claude and Spotify to share a user's context, enabling truly consistent personalization. Developers also benefit by not needing to build user context from scratch, accelerating AI integration and improving user experience.

Tomo

Tomo

Tomo is an AI personal assistant deeply integrated into WhatsApp and Telegram. No new app downloads, just chat like a friend to manage your schedule and automatically sync with Google Calendar. It remembers context, proactively offers daily briefings, and learns your habits, making AI a seamless part of your daily conversations.

FFM PRO AI

FFM PRO AI v3.5 FLASH is an intelligent AI assistant designed for learning, coding, writing, problem-solving, and general knowledge queries. Its clean chat interface delivers quick, precise answers, coding help, or creative inspiration. With exceptional response times, it's ideal for students, developers, and everyday users. The core features are completely free, with no registration required to get started.

Mirror

Mirror

Mirror is a personal AI assistant focused on building persistent memory. It creates a 'living identity graph' of your thoughts, patterns, and goals, recalling memories in every conversation. Features include daily reflections, mood tracking, and voice interaction, all with end-to-end encryption and a strict no-data-selling policy. It aims to be an AI that truly remembers you.

Vexide

Vexide is an integrated AI workspace combining natural language chat, web search, image generation, visual analysis, coding assistance, and project management. It aims to streamline workflows by eliminating the need to switch between multiple tools, allowing users to move from information gathering to creative output and code writing within a single platform. Ideal for individuals and teams focused on efficiency.

Comments

Comments

0
0/500 Characters

No comments yet

Be the first to comment

Open Source Project

Explore, learn and contribute to open source AI projects to advance the development of artificial intelligence technology

View All