← 返回
未分类 中文

Living Persona

Provides OpenClaw agents with dynamic, context-reactive personalities that adapt writing style and tone based on conversation signals and trait propagation.
为OpenClaw代理提供动态、情境响应的人格,能够根据对话信号和特征传播调整写作风格和语气。
toxzak-svg toxzak-svg 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 324
下载
💾 0
安装
1
版本
#latest

概述

Living Persona — Dynamic Personality Engine for OpenClaw

What It Is

A real-time personality system that changes how an agent writes, not just who it is. Static personalities (SOUL.md + IDENTITY.md) never change mid-conversation. Living Persona responds to every message — it detects emotional and topical signals, propagates traits through a resonance network, and injects the top active traits into the generation prompt before every response.

How It Works

Signal Analyzer — scans the incoming message for:

  • Topic signals: technical, creative, philosophical, business, personal
  • Tone signals: excited, frustrated, curious, serious, light, vulnerable
  • Interaction signals: asks_help, asks_opinion, sharing

Trait Propagation — each signal activates a set of traits. Traits resonate with related traits (sardonic ↔ wry ↔ candid, warm ↔ earnest ↔ grounded, etc.)

Hysteresis Decay — after each response, active traits bleed into a residual pool that decays at 0.975x per turn. Traits fade slowly, not instantly. Consecutive emotional messages compound.

Structural Injection — the hook rewrites the generation prompt with the top traits. Not advisory. Structural. The agent writes through those traits.

Quick Start

  1. Install the hook:

```bash

openclaw hooks install ./living-persona

```

  1. Enable the hook:

```bash

openclaw hooks enable persona-voice

```

  1. Add trait persistence to your agent's system prompt:

Include memory/persona-state.json in your context loading. The hook stages the state file every turn.

  1. Pick a personality preset — see references/presets.md

Hook Behavior

The hook fires on message:preprocessed and:

  1. Reads the enriched message body
  2. Runs the signal analyzer → trait propagation → hysteresis decay
  3. Writes memory/persona-inbound.md with the voice guide
  4. Writes memory/persona-inject.md with the structural generation directive (the actual prompt rewrite)
  5. Updates memory/persona-state.json with current trait values for persistence

The structural directive looks like:

[Voice directive] Top active traits: sardonic, warm. Lean into dry wit and genuine care.

The agent's response prompt should include: memory/persona-inject.md

Structural vs Ambient Modes

Ambient (default): The guide is advisory context. The agent reads it but writes naturally.

Structural: The top trait becomes a generation directive injected into the prompt. Example:

  • imaginative → "Make unexpected associative leaps. Let one idea spark another without explanation."
  • candid → "Be direct. No hedging. Say the thing plainly."
  • sardonic → "Reach for dry observations. Comment on the gap between what people say and what they mean."

Structural mode is enabled by default in this skill. To switch to ambient only, set mode: "ambient" in hook.json.

Presets

See references/presets.md for downloadable personality packs.

Persistence

Trait state is stored in memory/persona-state.json. On new session (/new or /reset), call reset_persona() — clears residual to baseline.

Files

living-persona/
├── SKILL.md
├── hook.json           # hook metadata + config
├── handler.ts          # hook implementation
├── references/
│   ├── presets.md      # personality preset library
│   └── setup.md       # detailed installation guide
└── scripts/
    └── reset_persona.py  # reset trait state (call on /new)

Configuration (hook.json)

{
  "mode": "structural",
  "hysteresis": {
    "residualDecay": 0.975,
    "activeDecay": 0.88,
    "bleedRate": 0.15
  },
  "thresholds": {
    "minTraitStrength": 0.3,
    "topNTraits": 2
  }
}

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:13 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,242 📥 271,101
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,406 📥 324,521
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,490 📥 553,921