AI Personal Learning
and practical guidance
讯飞绘镜

Second Me: Locally trained AI doppelgangers with personal memories and habits

General Introduction

Second Me is an open source project developed by the Mindverse team that lets you create an AI on your computer that acts like a "digital doppelganger", learning your speech and habits through your words and memories, and becoming a smart assistant that understands you. Its best feature is that all data stays local and doesn't have to be uploaded to the cloud, ensuring privacy and security. Your AI can also connect with other people's AIs through a decentralized network to collaborate with each other. second Me currently supports macOS (especially Apple Silicon), and is suitable for people who like technology, AI experts, or general users who want to try a personalized assistant. The project is still in development, so feel free to add improvements.

Second Me:本地训练拥有个人记忆和习惯的AI分身-1


Second Me:本地训练拥有个人记忆和习惯的AI分身-1

 

Function List

  • Creating a personal AI alter ego: Use your words and memories to let the AI learn your style and ideas.
  • Running locally protects privacy: The data and AI models exist only on your device, and you call the shots.
  • decentralized network connection: Use Second Me Protocol (SMP) to allow your AI to interact safely with other AI.
  • Scene switching function: The AI can adapt its performance to different situations (e.g., work or chat).
  • Open source free modification: The code is public, so tech enthusiasts can tweak or add features as they please.
  • Intelligent Memory Technology: Memorize short-term conversations and long-term habits using the HMM 3-Layer Memory.
  • Imitate your style: Me-Alignment technology makes AI answers more like you.

 

Using Help

Second Me requires a bit of technical maneuvering, but the official documentation and tutorials are very detailed. Below are the complete steps for installation and use.

Installation process

  1. Prepare the computer
    • Use macOS (preferably Apple Silicon, such as M1/M2).
    • Install Git: In a terminal, type git --versionIt's not loaded. It's running. brew install git(Install Homebrew first, with the command /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)").
    • To install the Xcode tool: In Terminal, type xcode-select --installAfter loading, run the sudo xcodebuild -license accept Consent to License.
  2. Download Code
    • Enter it in the terminal:
      git clone git@github.com:Mindverse/Second-Me.git
      cd Second-Me
      
    • The code will be downloaded to your computer.
  3. Setting up the environment
    • importation make setup Automatically load the required tools. If you don't have make, use ./scripts/setup.shThe
    • This step loads system dependencies, the Python environment, and other components, and may take a few minutes.
  4. Starting services
    • importation make start maybe ./scripts/start.sh Running.
    • Open your browser and type http://localhost:3000 Check for normalcy.
  5. Confirmation of installation
    • Look in the project folder for README.md cap (a poem) scripts folder would indicate success.

How to use the core features

Build your AI doppelganger

  • Preparation of information::
    In the project folder create a data Folder (if you don't have one, build your own). Put your written material in there, such as journals, notes, in a format that can be txt or pdf.
  • Let the AI learn::
    Go to the project directory in the terminal and run the learn command (refer to the latest documentation, it may look like the python train.py --data data/). A small copy of the material can be learned in a few minutes, a large copy may take hours.
  • Try it out.::
    After learning, the model exists locally. Run the test commands (like python interact.pyAsk the AI something like, "Do you know what I like?" See if it answers like you.

Local operation and privacy

  • Runs locally by default, no need for an internet connection. Learned AI is always available.
  • Check status: Enter in your browser http://localhost:3000(ports may change, see documentation).

Connecting to other AI

  • Turn on the network function::
    Modify the configuration file (possibly config.json) to enable the SMP network option.
  • test connection::
    Use test commands (like python network_test.py) to see if you can talk to your friend's AI. Requires consent from the other party.
  • Stay safe.::
    Data is only shared with your consent and privacy is guaranteed.

Scene switching function

  • Setting up different styles::
    Write down the scenario clearly in the profile, such as "formal tone for work emails", and the AI will automatically adjust.
  • How does it work?::
    Ask the AI to explain the situation, such as "Write me a work email," and it responds in a formal style.

Operating Tips

How the features work

  • HMM Smart Memory::
    The AI takes your data and categorizes it into short-term (what you just talked about), medium-term (what you've done recently), and long-term (your habits). For example, if you say "I bought milk yesterday", it remembers and associates it with your regular purchases.
  • Imitate your style::
    Me-Alignment lets the AI learn how you talk. For example, if you like to say "it's okay", the AI will use that word a lot. Give it more of your words for better results.

Try it with a few profiles at first and slowly add more. Once you learn it, your AI doppelganger will be able to do things for you and work with other AIs.

application scenario

  1. Daily Assistant
    Give Second Me your agenda and notes, and it will answer the question, "What do I have planned for tomorrow?" or remind you what to do.
  2. Privacy mandate
    When dealing with private files, it runs locally without internet connection and the data won't leak out, which is suitable for keeping a diary or work record.
  3. Teamwork
    The team each gets an AI that is networked to organize information together, such as automatically remembering meeting points.
  4. learning aid
    Students put in their class notes and the AI is able to answer questions or organize review content.

QA

  1. Does it have to be networked?
    Not required. It works locally, networking is just to connect with other AIs and you have to agree.
  2. Does Windows work?
    Right now only macOS (preferably Apple Silicon) is supported. Other systems are still planned.
  3. How do I make AI more like me?
    Give it more of your words, like chat logs or journal entries. Technical details to look at https://arxiv.org/abs/2503.08102The
May not be reproduced without permission:Chief AI Sharing Circle " Second Me: Locally trained AI doppelgangers with personal memories and habits
en_USEnglish