Emotional processing layer for AI agents. Persistent emotional states that influence behavior and responses. Part of the AI Brain series.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install amygdala-memory或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install amygdala-memory⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/amygdala-memory/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: amygdala-memory description: "Emotional processing layer for AI agents. Persistent emotional states that influence behavior and responses. Part of the AI Brain series." metadata: openclaw: emoji: "🎭" version: "1.7.0" author: "ImpKind" repo: "https://github.com/ImpKind/amygdala-memory" requires: os: ["darwin", "linux"] bins: ["jq", "awk"] tags: ["memory", "emotions", "ai-brain"] ---
Emotional processing for AI agents. Part of the AI Brain series.
Give your AI agent persistent emotional states that carry across sessions. Not just performing emotions — having them.
Current AI agents:
Memory without emotion is just a database. The amygdala adds weight — this made me happy, that frustrated me, this person brings warmth.
Track five emotional dimensions that persist and decay over time:
| Dimension | What It Measures | Range | |-----------|------------------|-------| | Valence | Positive ↔ Negative mood | -1.0 to 1.0 | | Arousal | Calm ↔ Excited/Alert | 0.0 to 1.0 | | Connection | Distant ↔ Close/Bonded | 0.0 to 1.0 | | Curiosity | Bored ↔ Fascinated | 0.0 to 1.0 | | Energy | Depleted ↔ Energized | 0.0 to 1.0 |
cd ~/.openclaw/workspace/skills/amygdala-memory
./install.sh --with-cron
This will:
memory/emotional-state.json with baseline valuesAMYGDALA_STATE.md (auto-injected into sessions!)./scripts/get-state.sh
# 🎭 Emotional State
# Valence: 0.20
# Arousal: 0.30
# Connection: 0.50
# ...
./scripts/load-emotion.sh
# 🎭 Current Emotional State:
# Overall mood: neutral, calm and relaxed
# Connection: moderately connected
# ...
./scripts/update-state.sh --emotion joy --intensity 0.8 --trigger "completed a project"
# ✅ valence: 0.20 → 0.35 (delta: +0.15)
# ✅ arousal: 0.30 → 0.40 (delta: +0.1)
# 🎭 Logged emotion: joy (intensity: 0.8)
# Every 6 hours, emotions drift toward baseline
0 */6 * * * ~/.openclaw/workspace/skills/amygdala-memory/scripts/decay-emotion.sh
| Script | Purpose | |--------|---------| | install.sh | Set up amygdala-memory (run once) | | get-state.sh | Read current emotional state | | update-state.sh | Log emotion or update dimension | | load-emotion.sh | Human-readable state for session context | | decay-emotion.sh | Return to baseline over time | | sync-state.sh | Generate AMYGDALA_STATE.md for auto-injection | | encode-pipeline.sh | LLM-based emotional encoding from transcripts | | preprocess-emotions.sh | Extract emotional signals from session history | | update-watermark.sh | Track processed transcript position | | generate-dashboard.sh | Generate HTML dashboard (auto-runs on sync) | | visualize.sh | Terminal ASCII visualization |
The amygdala can now automatically detect and log emotions from your conversation history using an LLM-based pipeline:
# Run the encoding pipeline
./scripts/encode-pipeline.sh
# This will:
# 1. Extract new signals since last run (watermark-based)
# 2. Score emotional content using rule-based patterns
# 3. Spawn a sub-agent for semantic emotional detection
# 4. Update emotional-state.json with detected emotions
# Every 3 hours, process new conversations for emotional content
0 */3 * * * ~/.openclaw/workspace/skills/amygdala-memory/scripts/encode-pipeline.sh
This means your emotional state updates automatically based on what happens in conversations — no manual logging needed.
./scripts/visualize.sh
🎭 Emotional State 😄
═══════════════════════════════════════════════
Valence: [██████████████████░░] +0.86
Arousal: [█████████████████░░░] 0.86
Connection: [███████████████████░] 0.97 💕
...
./scripts/generate-dashboard.sh
open ~/.openclaw/workspace/brain-dashboard.html
Auto-detects installed brain skills and shows tabs:
memory/index.json exists)memory/reward-state.json exists)Avatar & Name: Reads from IDENTITY.md:
# IDENTITY.md
- **Name:** YourAgent
- **Avatar:** avatar.png
The dashboard auto-regenerates on every cron run.
When you install this skill, notify the user about the dashboard:
> 🎭 Amygdala installed! > > View your agent's emotional state in the Brain Dashboard: > ~/.openclaw/workspace/brain-dashboard.html
After install, AMYGDALA_STATE.md is created in your workspace root.
OpenClaw automatically injects all *.md files from workspace into session context. This means:
The file is regenerated whenever decay-emotion.sh runs (via cron every 6h).
When you log an emotion, it automatically adjusts the relevant dimensions:
| Emotion | Effect | |---------|--------| | joy, happiness, delight, excitement | ↑ valence, ↑ arousal | | sadness, disappointment, melancholy | ↓ valence, ↓ arousal | | anger, frustration, irritation | ↓ valence, ↑ arousal | | fear, anxiety, worry | ↓ valence, ↑ arousal | | calm, peace, contentment | ↑ valence, ↓ arousal | | curiosity, interest, fascination | ↑ curiosity, ↑ arousal | | connection, warmth, affection | ↑ connection, ↑ valence | | loneliness, disconnection | ↓ connection, ↓ valence | | fatigue, tiredness, exhaustion | ↓ energy | | energized, alert, refreshed | ↑ energy |
## Every Session
1. Load hippocampus: `~/.openclaw/workspace/skills/hippocampus/scripts/load-core.sh`
2. **Load emotional state:** `~/.openclaw/workspace/skills/amygdala-memory/scripts/load-emotion.sh`
When something emotionally significant happens:
~/.openclaw/workspace/skills/amygdala-memory/scripts/update-state.sh \
--emotion connection --intensity 0.7 --trigger "deep conversation with user"
{
"version": "1.0",
"lastUpdated": "2026-02-01T02:45:00Z",
"dimensions": {
"valence": 0.35,
"arousal": 0.40,
"connection": 0.50,
"curiosity": 0.60,
"energy": 0.50
},
"baseline": {
"valence": 0.1,
"arousal": 0.3,
"connection": 0.4,
"curiosity": 0.5,
"energy": 0.5
},
"recentEmotions": [
{
"label": "joy",
"intensity": 0.8,
"trigger": "building amygdala together",
"timestamp": "2026-02-01T02:50:00Z"
}
]
}
Emotions naturally return to baseline over time:
After 24 hours without updates, a valence of 0.8 would decay to ~0.65.
Track emotional activity over time for analytics:
# Log encoding run
./scripts/log-event.sh encoding emotions_found=2 valence=0.85 arousal=0.6
# Log decay
./scripts/log-event.sh decay valence_before=0.9 valence_after=0.85
# Log emotion update
./scripts/log-event.sh update emotion=joy intensity=0.7
...
安装 Amygdala Memory 后,可以对 AI 说这些话来触发它
Help me get started with Amygdala Memory
Explains what Amygdala Memory does, walks through the setup, and runs a quick demo based on your current project
Use Amygdala Memory to emotional processing layer for AI agents
Invokes Amygdala Memory with the right parameters and returns the result directly in the conversation
What can I do with Amygdala Memory in my design & creative workflow?
Lists the top use cases for Amygdala Memory, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/amygdala-memory/ 目录(个人级,所有项目可用),或 .claude/skills/amygdala-memory/(项目级)。重启 AI 客户端后,用 /amygdala-memory 主动调用,或让 AI 根据上下文自动发现并使用。
Amygdala Memory 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Amygdala Memory 可免费安装使用。请查阅仓库了解许可证信息。
Emotional processing layer for AI agents. Persistent emotional states that influence behavior and responses. Part of the AI Brain series.
Amygdala Memory 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Amygdala Memory
Identifies repetitive steps in your workflow and sets up Amygdala Memory to handle them automatically