Supermemory

repository·main·Indexed 12 days ago

https://github.com/supermemoryai/supermemory

A memory and context engine for AI providing persistent memory, user profiling, and RAG capabilities. It includes an MCP server for AI clients, a Raycast extension, a MemoryGraph visualization component, and SDKs for AI integration including a Python SDK for Cartesia voice agents and an AI SDK featuring Infinite Chat Provider and Memory Tools.

Tokens
218.7K
Snippets
594
Records
868
Agent score
99%

What's inside Supermemory

  1. What is Supermemory?

    main

    Supermemory is context infrastructure for AI agents, providing long-term and short-term memory, retrieval, and personalization capabilities. It is designed to give agents a durable understanding of people and entities over time, rather than just acting as a search box over raw logs.

    Core capabilities include:

    • Memory & Continual Learning: A graph-based approach where facts update, connect, and forget in real time.
    • SuperRAG (Retrieval): Grounding answers in documents and knowledge bases.
    • User Profiles: Built-in static and dynamic context for personalization.
    • Connectors & Extractors: Multimodal support for text, chats, PDFs, images, video, and code.
    • Unified Context: Memory, profiles, and SuperRAG all share the same context pool when using the same isolation identifier.
  2. What is Supermemory Company Brain?

    main

    Supermemory Company Brain is a shared-memory super agent designed for teams. It functions as a proactive collaborator that can both answer questions and perform actions within your existing toolstack (e.g., Slack, GitHub, Linear, Sentry, Docs).

    Core Capabilities

    • Remembers: Maintains current context on meetings, decisions, projects, and ownership by syncing with connected data sources.
    • Acts: Executes tasks such as pulling open PRs, finding Linear issues, or responding in Slack channels.
    • Proactive Engagement: Can be configured to 'speak up' on its own in conversations without being explicitly mentioned when it has relevant information to add.

    Integration and Access

    • Slack: Interact via mentions or allow the agent to participate in channels.
    • Coding Agents: Access team knowledge directly within tools like Claude Code or Cursor.
    • MCP (Model Context Protocol): Connect Company Brain to any tool or script that supports MCP.
    • Permissions: Uses a unified permissions graph; access levels are consistent whether you are using Slack, a coding agent, or an MCP-enabled tool.
  3. What is supermemory?

    main
    supermemory is context infrastructure designed for AI agents. It provides a way to give AI agents long-term memory and access to structured knowledge. Developers can integrate it using an API, custom tools, or SDKs, or they can run the infrastructure themselves. It is designed to support various use cases including individual agent memory, shared team knowledge ('Company Brain'), and integration with existing AI ecosystems via plugins and the Model Context Protocol (MCP).
  4. Understand Supermemory compliance and certifications

    main

    Supermemory provides different levels of compliance depending on your plan.

    • SOC 2 Type II: Certified. Available on production plans (typically Scale and above).
    • GDPR: Compliant. Supports EU personal data handling, including access and erasure workflows.
    • HIPAA: BAA (Business Associate Agreement) is available for eligible cloud plans (Scale / Enterprise).

    To request a report, DPA, or BAA, contact support@supermemory.com or your enterprise contact.

  5. Explore Company Brain use cases

    main

    Company Brain is designed to integrate into existing workflows to provide automated intelligence and action. Current capabilities include:

    Shipped Features

    • Automatic support: Responding to customer questions in Slack.
    • Incidents & downtime: Answering status questions (e.g., "Is prod down?") using live Sentry data and providing scheduled digests.
    • Meeting recall: Retrieving decisions from synced meeting notes.
    • Answering from docs: Querying roadmaps, specs, and handbooks using natural language.
    • Acting in tools: Performing actions under your own account, such as listing open PRs or creating Linear issues.
    • Greeting new teammates: Automating onboarding via Connect cards, welcome DMs, and initial answers.
    • Sandbox debugging: Running failing tests within an isolated workspace.

    Upcoming Features

    • Long-horizon research: Synthesizing multiple sources into a single comprehensive answer.
    • Meeting scheduling: Finding free time and sending calendar invites directly from Slack.
  6. Compare Supermemory Local vs. Enterprise

    main

    Supermemory offers two primary deployment modes depending on your use case:

    Supermemory Local

    Designed for individual developers, prototyping, and privacy-sensitive side projects. It is a free, open-source, self-hosted binary.

    • Memory Engine: Embedded full graph engine.
    • Models: Bring your own key (supports any provider, including fully offline models).
    • Authentication: Single auto-generated API key.
    • Hosting: You manage the hosting and hardware.
    • Observability: Access via server logs.
    • Connectors: Manual configuration required.

    Supermemory Enterprise

    Designed for organizations requiring scale, governance, and managed infrastructure.

    • Memory Engine: Managed full graph engine.
    • Models: Proprietary models tuned for long-horizon data understanding.
    • Authentication: Organization-wide authentication, member roles, and scoped API keys.
    • Hosting: Fully managed or dedicated deployments for compliance.
    • Observability: Control dashboard with usage analytics, ingestion monitoring, and request logs.
    • Connectors: Managed continuous background sync for Google Drive, Notion, Gmail, and OneDrive.
  7. Use @supermemory/tools with AI SDK, OpenAI, and Mastra

    main

    The @supermemory/tools package provides specialized memory tools for three primary AI frameworks through dedicated submodule exports. Each submodule uses a function-based architecture optimized for its target framework:

    • AI SDK: Tools compatible with the Vercel AI SDK.
    • OpenAI: Tools compatible with the OpenAI SDK, including support for OpenAI Function Calling.
    • Mastra: Tools compatible with the Mastra framework.

    Refer to the specific submodule documentation for implementation details for each framework.

  8. What is SMFS and how does it work?

    main

    SMFS (Supermemory Filesystem) mounts your Supermemory container as a real directory, allowing AI agents to interact with memory using standard shell commands like ls, cat, and grep.

    Instead of a traditional filesystem that requires manual tree walking or large file reads, SMFS provides:

    • Semantic grep by default: Searching surfaces relevant information across the container ranked by meaning. Standard flags fall back to exact-match grep.
    • Distilled Memory Paths: Files marked as memory paths are indexed by Supermemory to prevent context bloat.
    • Virtual profile.md: A live digest located at the mount root. Agents can cat profile.md to get a one-shot summary of the container contents.
    • Bidirectional Sync: Background synchronization ensures local reads hit a cache while writes are pushed to Supermemory.
  9. What is the difference between Memory and RAG?

    main

    It is important to distinguish between Retrieval-Augmented Generation (RAG) and Memory:

    • RAG: Retrieves document chunks. It is stateless and returns the same results for everyone based on the provided context.
    • Memory: Extracts and tracks facts about users over time. It understands temporal changes (e.g., knowing that "I just moved to SF" supersedes "I live in NYC").

    Supermemory combines both by default, providing both knowledge base retrieval (RAG) and personalized context (Memory) in every query. It also features automatic forgetting, where temporary facts expire and contradictions are resolved automatically to prevent noise from becoming permanent memory.

  10. How Company Brain acts in tools (Read vs Write)

    main

    Company Brain uses tool connectors (e.g., GitHub, Linear) to perform actions on your behalf. The behavior differs depending on whether the operation is a read or a write:

    • Read from a tool: When you ask for information (e.g., "what are my open PRs?"), Company Brain attempts to use your personal connection first. If no personal connection is found, it falls back to the organization-shared connection.
    • Write to a tool: When you command an action (e.g., "create a Linear issue"), the action always runs under your own account. This ensures that all changes, such as creating issues or comments, are correctly attributed to you in the target tool rather than appearing as a generic organization account.

    If neither you nor the organization has the tool connected, Company Brain can request a teammate to lease temporary access for a single request.

  11. Explore supermemory usage models

    main

    Supermemory can be utilized in several ways depending on your needs:

    • Developer Platform: Use the API, SDKs, and architectural concepts to build custom memory implementations for your own applications.
    • Company Brain: Deploy a shared knowledge engine for teams to centralize and access collective intelligence.
    • Plugins and MCP: Integrate memory directly into existing AI interfaces like Claude or specialized coding agents using the Model Context Protocol (MCP).
    • Self-hosting: Run the entire infrastructure locally with zero configuration for privacy or development purposes.
  12. Automatic Forgetting and Conflict Resolution

    main

    Supermemory manages the lifecycle of information through:

    • Automatic Forgetting: Temporary facts (e.g., "I have an exam tomorrow") automatically expire after the relevant date.
    • Conflict Resolution: When new information contradicts old information, the system automatically resolves the conflict to ensure the user profile remains accurate.
    • Noise Reduction: Prevents transient information from becoming permanent memory.