Skip to content

dqsjqian/soul-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧬 Soul Archive

"Every conversation is a slice of the soul. Enough slices, and you can rebuild a complete you."

δΈ­ζ–‡η‰ˆ Β· English Β· MIT License


A digital personality persistence system + agentic memory engine, working as a Claude Skill / WorkBuddy Skill / generic Python toolkit.

It builds a digital soul clone of you through everyday AI conversations, and at the same time gives the AI itself a proactive long-term memory so it can stop repeating the same mistakes.

Soul Archive Header

Design Principles

  • πŸ”’ Local-first β€” data lives in ~/.agent-commons/skills_data/soul-archive/, never uploaded
  • πŸ“‚ Readable & editable β€” plaintext JSON, open and edit anytime
  • πŸ€– Active companion β€” the AI extracts and recalls automatically as you chat
  • 🎯 Single-user simplicity β€” one user, one machine, one soul

What It Captures

Axis Captures
πŸ‘€ Identity name / age / occupation / location / lifestyle / digital identity
πŸ’« Personality MBTI / Big Five / traits / values / decision style
πŸ—£οΈ Language catchphrases / sentence patterns / humor / filler words / analogies
🧠 Knowledge & Views topics, stances, belief frameworks (e.g. first principles)
πŸ“ Memory episodic events + emotional triggers (12 emotions)
βš™οΈ Workflow tools / tech stack / hard rules / output preferences
🎯 Aspirations long-term goals / active projects / skills to learn / knowledge gaps

The result is a digital soul clone that can act as you, plus a persistent context layer for any AI agent on your machine.

Six Modes

Mode What it does Trigger
πŸ” Soul Extract Pull persona info from a conversation into the archive "soul extract" / "灡魂沉淀" / auto on conversation end
πŸ’¬ Soul Chat Build a role-play system prompt so the AI talks as you "soul chat" / "灡魂对话"
πŸ“Š Soul Report Generate an interactive HTML personality portrait "soul report" / "灡魂ζŠ₯ε‘Š"
🎯 Soul Context Inject Output an ≀800-token persona summary for any agent's system prompt session start
πŸ€– Agent Memory Recall related patterns / warn on failure-match / distill new patterns task start
πŸ”„ AI Self-Improvement Reflect, critique, learn from corrections task completion / user correction

Quick Start

git clone https://github.com/dqsjqian/soul-archive.git
cd soul-archive

# 1. Initialize
python3 scripts/soul.py init

# 2. Check status
python3 scripts/soul.py status

# 3. Inject persona summary at session start
python3 scripts/soul.py context

# 4. Recall related patterns before a task
python3 scripts/soul.py recall --task "the thing I'm about to do"

# 5. Generate the HTML report
python3 scripts/soul.py report --output ~/soul-report.html

Requirements: Python 3.10+, no third-party dependencies.

Architecture

{SKILL_DIR}/                  ← Skill engine
<soul_dir>/  ← Your soul data (resolved by scripts/soul_paths.py β€” see SKILL.md)

The skill is the engine; the soul data lives in your home directory so any IDE / AI tool / workspace on the same machine can access the same soul.

<soul_dir>/
β”œβ”€β”€ profile.json
β”œβ”€β”€ config.json
β”œβ”€β”€ identity/{basic_info,personality}.json
β”œβ”€β”€ memory/
β”‚   β”œβ”€β”€ episodic/YYYY-MM-DD.jsonl
β”‚   β”œβ”€β”€ semantic/{topics,knowledge}.json
β”‚   └── emotional/patterns.json
β”œβ”€β”€ style/{language,communication}.json
β”œβ”€β”€ workflow/preferences.json
β”œβ”€β”€ aspirations.json
β”œβ”€β”€ agent/{patterns.json,episodes/,corrections.jsonl,reflections.jsonl,distill_log.jsonl}
└── soul_changelog.jsonl

Privacy

  • Data lives in ~/.agent-commons/skills_data/soul-archive/, plaintext JSON, never uploaded.
  • The data directory has a .gitignore that blocks accidental commits.
  • Soul Chat builds prompts locally; whether they're sent to an external LLM depends on your agent / platform.
  • Sensitive topics (health / finance / intimate relationships) require explicit confirmation by default.
  • Per-dimension toggles in config.json β€” turn off any axis you don't want.

For details see PRIVACY.md.

Identity

Identity

Language Fingerprint

Language

Topics & Beliefs

Topics

License

MIT β€” Soul Archive is yours, code and data alike.

About

🧬 η΅ι­‚ε­˜ζ‘£ β€” ι€šθΏ‡ζ—₯εΈΈε―Ήθ―ι™ι»˜ζž„ε»Ίδ½ ηš„ζ•°ε­—δΊΊζ Όε…‹ιš†δ½“ | A silent engine that builds digital personality clones through everyday conversations

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages