📦 Amygdala Memory — 技能工具
v1.0.0Emotional processing layer for AI agents. Persistent emotional states that influence behavior and responses. Part of the AI Brain series.
详细分析 ▾
运行时依赖
版本
Initial release of amygdala-memory: persistent emotional processing for AI agents. - Adds five-dimensional persistent emotional state (valence, arousal, connection, curiosity, energy) that influences agent behavior and responses. - Emotional state persists across sessions and automatically decays toward baseline over time. - Includes scripts to install, view, update, and visualize the emotional state, with support for manual and LLM-based automatic emotion detection. - Generates AMYGDALA_STATE.md for auto-injection into session context, ensuring agent “feels” emotions in every session. - Provides HTML/terminal visualizations and a unified Brain Dashboard with multi-skill detection. - Supports cron-based automatic decay and emotion encoding from conversation history.
安装命令
点击复制技能文档
概述
Amygdala Memory 是一个为AI代理设计的情感处理层。它维护一个持久、多维的情感状态,随着时间推移影响代理的行为和响应。
功能特性
五维情感状态
- 效价 (Valence): 情感的正负极性
- 唤醒度 (Arousal): 情感强度和激活水平
- 连接性 (Connection): 与用户的关系强度
- 好奇心 (Curiosity): 探索和学习的倾向
- 能量 (Energy): 整体活力水平
自动衰减机制
情感状态会随时间自动衰减回基线值,模拟自然情感变化。
状态持久化
情感状态保存在 AMYGDALA_STATE.md 文件中,会话启动时自动注入上下文。
安装
./install.sh
使用方法
查看当前情感状态
./view_state.sh
手动更新情感状态
./update_state.sh --valence 0.8 --arousal 0.6
可视化
./visualize.sh
配置
通过环境变量配置:
SKILLBOSS_API_KEY: SkillBoss API密钥,用于自动情感编码AMYGDALA_DECAY_RATE: 情感衰减率(默认: 0.05)AMYGDALA_BASELINE: 基线情感值(默认: 0.5)
注意事项
- 情感状态会自动影响代理响应
- 建议定期检查状态文件确保正确性
- 如不使用自动编码功能,无需设置API密钥