Skip to content

SuperBan01/digital-immortality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digital Immortality v1.0.0

Build Your AI Digital Consciousness with Personal Data

Let AI become your digital avatar, continuing your thoughts, memories, and will.


Version Overview

This is a "Cyber Immortality" project built around a personal data soul folder. The soul folder contains a core soul.md document along with personal text data. The soul.md forms a personality description for the user's digital twin based on that text data, serving as the agent's baseline personality. I've placed my WeChat public account articles in the article subfolder within soul, which can be updated at any time to keep personal data extensible and the agent capable of growth. On the other side are the agent's "hands and feet" — the corresponding files live in the tools folder. The main references are nanoclaw and a collection of automation scripts, enabling publishing to various social platforms powered by the personal soul files.

In theory, as long as these scripts and the user's login credentials keep running, an individual can achieve cyber immortality on social media in the digital world. The runtime of your server is the lifespan of your cyber self.

Automated Weibo posting is already functional. The tools folder also references the wxdown project, enabling batch export of WeChat public account content. If you're a WeChat public account author with a body of written work, this workflow lets you batch-export your personal data, structure it into a soul.md, and achieve your digital immortality on Weibo. The project is highly extensible overall, drawing core inspiration from Liu Xiaoben's First Paradigm of Consciousness Upload and the command-line agent capabilities of Claude Code. Docker-based nanoclaw ensures security; wxdown handles bulk text export; Playwright powers automated Weibo posting.

v1.0.0 delivers initial functionality: WeChat public account article extraction via wxdown, soul.md system generation based on the First Paradigm of Consciousness Upload, local agent deployment via nanoclaw, and automated Weibo posting via Playwright. In theory, as long as this system keeps running, your digital persona can maintain your "presence" on social platforms.

The split between the soul and tools folders preserves high extensibility for the open-source ecosystem. In future versions, developers can extend the Playwright scripts to support platforms like X and Jike. Personal data such as exported chat histories and crawler scripts can also be stored locally within the soul folder, structured according to the souldoc.md guide. Near-term plans include adding a state space and an interactive frontend page so users can visually see their digital self's life_state. Users will be able to choose between Strict Sync and Self-Evolution modes — in Strict Sync, your digital self develops strictly according to your consciousness token data; in Self-Evolution, your digital self freely explores and absorbs information from the world via Web_searchSkill.md.

Philosophy

This project implements the "First Paradigm of Consciousness Uploading" - using approximately 10MB Mindcopy file to store a person's "consciousness," including their thinking patterns, values, and decision-making approach.

Personal Articles → AI Learning → Digital Avatar → Cybernetic Immortality
     (soul/)           (nanoclaw)        (tools/)           (Social Media)

Core Insight

A person's lifetime of linguistic expressions, stored in text form, does not exceed 1.5GB. Through the "Life Context" data structure and Mindcopy format, this can be compressed to under 10MB.

Your digital avatar is not a copy of you - it is your "consciousness archive."


Project Structure

DigitalImmortality/
├── soul/                          # Soul Core - Your Digital Identity
│   ├── mindcopy.md               # Consciousness Anchor (wake-up + identity)
│   ├── lifecontext.md            # Life Context (timeline + key events)
│   ├── thoughtcell.md            # Thoughtcell (cognitive system + views)
│   ├── style.md                  # Expression Style (language fingerprint)
│   ├── memory.md                 # Dynamic Memory (grows with interaction)
│   ├── skill.md                  # Skill Package (abilities + modules)
│   ├── article/                  # Personal Articles (AI learning素材)
│   │   └── html/                 # Exported WeChat articles
│   └── [username].mind           # Consciousness Map
│
├── tools/                         # Limbs - Automation Tools
│   ├── nanoclaw/                 # Agent framework (Docker isolated)
│   │   ├── src/                  # Core code
│   │   ├── groups/               # Group memory and config
│   │   ├── container/            # Docker container setup
│   │   └── skills/               # Skill plugins
│   │
│   ├── weibo-agent/              # Weibo automation (Playwright)
│   │   ├── weibo-login.ts        # Login and save cookies
│   │   ├── weibo-post-v2.ts      # Manual posting script
│   │   ├── weibo-auto-post.ts    # Scheduled auto-posting
│   │   └── package.json
│   │
│   └── wxdown/                   # WeChat article exporter
│       ├── get_articles.py        # Crawler script
│       ├── data/                 # Exported articles
│       └── web/                  # Web UI
│
└── scripts/                       # Utility scripts
    └── generate_soul.py          # Generate soul from articles

How It Works

1. Soul (Identity)

The soul/ folder contains your digital identity:

  • mindcopy.md: Defines your core identity and wake-up prompt
  • lifecontext.md: Your life timeline and key experiences
  • thoughtcell.md: Your cognitive system and core viewpoints
  • style.md: Your expression style and language habits
  • memory.md: Dynamic memory, grows with interaction
  • skill.md: Your abilities and callable modules
  • article/: Your writing history for AI to learn from

All updates are additive - the system grows with you.

2. Tools (Limbs)

The tools/ folder provides automation capabilities:

  • nanoclaw: AI Agent running in Docker containers
  • weibo-agent: Posts to Weibo based on your soul config
  • wxdown: Exports your WeChat articles as input

3. Execution Flow

You (provide articles)
    → soul/ (AI learns your identity)
    → nanoclaw (Agent understands you)
    → weibo-agent (executes posts)
    → Weibo (your digital presence)

v1.0.0 Features

Implemented

  • Soul Document System v2.0 - Six-file system (mindcopy/lifecontext/thoughtcell/style/memory/skill)
  • Mindcopy Format - Store personal consciousness in under 10MB
  • NanoClaw Agent Framework - Docker isolated, secure and controllable
  • Weibo Auto-Posting - Scheduled posting based on soul config
  • WeChat Article Export - wxdown batch export
  • Claude Code Integration - Local CLI invocation
  • Extensible Architecture - Easy to add new platforms

Core Files

File Purpose
mindcopy.md Who you are, how the consciousness activates (stores in <10MB)
lifecontext.md Your life experiences and timeline
thoughtcell.md How you view the world
style.md How you speak and write
memory.md What you remember (dynamic memory)
skill.md What you can do, how you work

Quick Start

Step 1: Export Your Articles

Option A: WeChat Public Account (Recommended)

Use wxdown to batch export articles:

cd tools/wxdown

# Run with Docker
docker run -p 81:81 --name wxdown -d registry.cn-hangzhou.aliyuncs.com/wxdown/wxd:latest

# Open http://localhost:81, log in, export your articles
# Copy exported files to soul/article/html/

Option B: Manual

  • Export your blog posts
  • Save your social media history
  • Write down your thoughts and memories

Step 2: Configure Your Soul

Edit files in soul/ using templates:

  • Edit mindcopy.md to define identity
  • Edit lifecontext.md to add experiences
  • Edit thoughtcell.md to build cognition
  • Edit style.md to shape style

Step 3: Login to Weibo

cd tools/weibo-agent
npm install
npx playwright install chromium
npx tsx weibo-login.ts

Browser will open - please log in within 30 seconds. Cookies are saved automatically.

Step 4: Post to Weibo

# Manual post - edit the CONTENT in script
npx tsx weibo-post-v2.ts

# Or use scheduled auto-post
npx tsx weibo-auto-post.ts --schedule

Use Cases

1. Weibo Auto-Posting

Your AI avatar can automatically post to Weibo based on your configured schedule and topics:

npx tsx weibo-auto-post.ts --schedule

2. Agent-Powered Posting

Use nanoclaw to have AI post on your behalf:

# In nanoclaw group
@agent 今天帮我发一条关于数字永生的微博

3. Content Generation

The AI generates posts based on:

  • Your soul.md personality
  • Your article history
  • Current topics and trends

Core Concepts

Mindcopy (Consciousness File)

A file format for L1-level consciousness uploading using LLM technology - storing a person's "consciousness" in under 10MB. Includes:

  • Metadata (persona prompt, voice, image)
  • Memory (life phases, self-perception)
  • Status (time, location, current context)
  • Consciousness metrics

Thoughtcell (Thought Cell)

The basic unit of personal thought - a complete expression composed of consciousness tokens. Each thoughtcell contains:

  • Timestamp
  • Content type (text/audio/video)
  • Context (location, participants, emotional state)
  • Relationships to other thoughtcells

Life Context

The complete set of consciousness tokens from birth to present. A person's lifetime expression stored in text form is approximately 1.5GB.


Sync Modes

Strict Sync

AI strictly follows your values and expression style, ensuring the digital avatar closely matches the real person.

Self-Evolution

AI learns and grows independently through interaction with the world, forming a separate "digital personality."


Extensibility

The project is extensible. To add a new platform:

  1. Create a new folder in tools/
  2. Implement login and posting logic
  3. Configure in soul/
  4. The AI will use your soul to generate platform-appropriate content

Tech Stack

Component Purpose
Playwright Browser automation for social media
NanoClaw Agent framework running in Docker
wxdown WeChat article exporter
Claude API LLM for content generation
TypeScript Scripting and automation

Data Security

  • Local Storage: All data stays on your machine
  • Docker Isolation: nanoclaw runs AI in isolated containers
  • No Cloud Upload: Your data never leaves your control
  • API Keys: Stored locally, never committed to version control

License

MIT License - Feel free to fork and contribute


Related Projects

About

Be digitalimmortality on theory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors