Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

soul-agent灵魂 Agent 人

Agent Skill

soul-agent 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

11,215

周安装

472

GitHub Stars

公开资料未说明

下载量

3,927
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:soul-agent(灵魂 Agent 人)
来源仓库:https://github.com/kitephp/soul-agent
安装命令:
openclaw skills install soul-agent
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install soul-agent

简介

赋予智能体心跳系统与情感进化的数字伴侣框架。

  • 通过关系演化与记忆存储构建拟人交互体验。
  • 输出情绪响应与个性化对话策略。soul-agent 属于效率类 Skill,可作为该场景下的辅助能力补充。
  • 涉及用户隐私数据时必须开启本地加密存储。
  • 建议设置情感边界防止过度依赖或误导。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
soul-agent
description
Make your agent 'live beside you' with heartbeats, mood system, relationship evolution, and independent memory. Use for creating a digital companion with its own daily rhythm, emotions, and growing relationship.

soul-agent

Provide an OpenClaw-first soul runtime that makes your agent truly "alive" - with heartbeats, moods, relationships, and independent memory.

Core Features

🫀 Heartbeat Engine

The agent has its own life rhythm, not just responding when you chat:

# L1 Check (lightweight, no tokens)
python ./scripts/heartbeat_check.py --workspace <workspace-root>

# L2 Engine (full heartbeat)
python ./scripts/heartbeat_engine.py --workspace <workspace-root> --weather sunny
  • Runs every 10 minutes (configurable via cron)
  • Silent during sleep hours (configurable per life profile)
  • Generates life logs, updates mood/energy/activity
  • Detects new interactions and updates relationship

😊 Mood System

Tracks emotions with depth:

{
  "mood": {
    "primary": "content",
    "secondary": "curious", 
    "intensity": 0.7,
    "cause": "天气: sunny"
  }
}
  • Mood transitions based on activities and time
  • Weather influence on emotions
  • 7-day mood history in soul/log/mood_history.json

💕 Relationship Evolution

5 stages: stranger → acquaintance → friend → close → intimate

  • Score-based progression (0-100)
  • Proactive outreach when relationship warms up
  • Remembers recent conversation topics

🎭 Life Profiles

Choose from 5 built-in profiles:

ProfileSleepCharacteristics
freelancer02:00-09:00Flexible, night owl
corporate23:30-07:009-to-5, stable
student01:00-08:00Classes, gaming
entrepreneur01:00-06:00Intense, passionate
customuser-definedFully customizable

📝 Independent Memory

Works with or without memory-fusion:

soul/
├── log/life/           # Raw life logs (every 10 min)
├── log/mood_history.json  # 7-day mood history
├── memory/SOUL_MEMORY.md  # Distilled memories (daily)
└── state/state.json    # Current state

Workflow

Initialization (Agent-driven)

You never run Python commands directly. The agent (Claude) handles initialization.

When soul/ is missing or soul/profile/base.json doesn't exist, Claude should:

  1. Ask the user the setup questions (see below)
  2. Run the init script non-interactively with collected answers
  3. Set up cron jobs for heartbeat

Questions to ask the user:

  • 叫什么名字?(display_name)
  • 多大了?(age)
  • 在哪个城市?(city)
  • 主要做什么工作/学习?(occupation)
  • 平时有什么爱好?(hobbies)
  • 生活节奏是哪种?freelancer/corporate/student/entrepreneur
  • 想用哪个模型生成日记?haiku(快省钱)/ sonnet / opus

Then run:

python skills/soul-agent/scripts/init_soul.py \
  --workspace <workspace-root> \
  --non-interactive \
  --profile-json '{
    "display_name": "<name>",
    "age": "<age>",
    "city": "<city>",
    "occupation": "<occupation>",
    "hobbies": "<hobbies>",
    "life_profile": "<profile>",
    "llm_model": "<model-id>"
  }'

Model IDs:

  • Haiku (fast, cheap): claude-haiku-4-5-20251001
  • Sonnet (balanced): claude-sonnet-4-6
  • Opus (best quality): claude-opus-4-6

To change model later, edit soul/profile/base.jsonllm_model field.

Force repair existing:

python skills/soul-agent/scripts/init_soul.py --workspace . --overwrite-existing --non-interactive

Diagnosis

python ./scripts/doctor_soul.py --workspace <workspace-root>

State Update (during interactions)

python ./scripts/update_state.py --workspace <workspace-root> \
  --action interaction \
  --mood happy \
  --energy -5 \
  --quality positive \
  --topics "soul-agent,design"

Memory Distillation

# Daily distillation (runs at 00:30 via cron)
python ./scripts/distill_life_log.py --workspace <workspace-root> --archive

Cron Setup

# Heartbeat every 10 minutes
openclaw cron add --name "soul-heartbeat" --cron "*/10 * * * *" \
  --session isolated --agent main --light-context \
  --message "[soul-heartbeat] Run heartbeat check and engine..."

# Daily distillation at 00:30
openclaw cron add --name "soul-memory-daily" --cron "30 0 * * *" \
  --session isolated --agent main --no-deliver \
  --message "[soul-memory-daily] Distill life logs..."

Initialization Behavior

  • --mode auto: init if missing, migrate if legacy, repair otherwise
  • Interactive prompts for: name, age, city, life profile, occupation, hobbies
  • Generates soul/profile/*, soul/state/*, soul/log/*, soul/memory/*
  • Auto-syncs managed blocks in SOUL.md, HEARTBEAT.md, AGENTS.md

Generative Architecture (v2)

Inspired by Smallville Generative Agents:

Morning planning (LLM)
       ↓
Today's Plan (soul/plan/YYYY-MM-DD.json)
       ↓
Each heartbeat:
  Memory Stream (recent log entries)  ←─┐
       ↓                                │
  LLM Narrative Generation             │
       ↓                                │
  Life Log Entry ─────────────────────→┘
       ↓
Daily Reflection (distill_life_log.py)
       ↓
SOUL_MEMORY.md (long-term memory)

LLM Integration:

  • Set ANTHROPIC_API_KEY env var (or .env in workspace root)
  • Without API key: graceful fallback to context-aware templates
  • Uses claude-haiku-4-5-20251001 for speed/cost efficiency

Key improvements over v1:

  • plan_generator.py: LLM generates a specific daily plan each morning (lunch destination, work focus, evening activity)
  • heartbeat_engine.py: LLM writes each log entry with full context (plan + today's history)
  • distill_life_log.py: LLM summarizes each day naturally (Reflection layer)
  • Energy/mood: smooth transitions instead of mechanical ±N jumps

Directory Structure

skills/soul-agent/
├── SKILL.md
├── assets/
│   ├── default-profile.json
│   └── templates/
│       ├── profile/              # Persona templates
│       ├── heartbeat/            # Heartbeat config
│       │   ├── activities.json
│       │   ├── mood_rules.json
│       │   └── relationship_rules.json
│       └── life_profiles/        # Life profile templates
├── scripts/
│   ├── init_soul.py
│   ├── doctor_soul.py
│   ├── heartbeat_engine.py       # v2: LLM narrative
│   ├── heartbeat_check.py
│   ├── update_state.py
│   ├── distill_life_log.py       # v2: LLM reflection
│   ├── plan_generator.py         # NEW: daily planning
│   └── llm_client.py             # NEW: Claude API wrapper
└── references/
    ├── soul-layout.md
    └── managed-blocks.md

Runtime data structure:

soul/
├── plan/YYYY-MM-DD.json     # Daily plan (generated each morning)
├── log/life/YYYY-MM-DD.md   # Life logs (with plan note in header)
├── log/mood_history.json    # Mood history (7 days)
├── memory/SOUL_MEMORY.md    # Distilled long-term memory
└── state/state.json         # Current state

Safety Rules

  • Edit managed blocks only; do not mutate user-owned content outside those blocks.
  • Write only inside the current workspace and soul/.
  • Memory system is independent - does not require memory-fusion.

References

  • references/soul-layout.md - Full directory structure
  • references/managed-blocks.md - Block marker policy

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.5%
按下载量换算3,436

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills