Stemem Identity Runtime
v0.1.0Local-first agent persona runtime (MCP): cross-session personality that survives compaction.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
init
初始化一个人格态(首次装配人格时调用一次)。可传 OCEAN 预设;不传则随机 baseline。
| Parameter | Type | Description |
|---|---|---|
ocean | object | OCEAN 五维预设 {openness,conscientiousness,extraversion,agreeableness,neuroticism} |
event
喂入一个记忆事件,驱动人格/情绪演化。当本轮交互人格相关时调用。返回演化后 snapshot + voiceHint/logicHint。
| Parameter | Type | Description |
|---|---|---|
drive_deltas | object | 驱力增量 JSON,如 {"belonging":0.2} |
importance | string | 事件重要性;high 触发反刍、延长相关情绪衰减(对应'记一会儿') |
tags | array | 情绪/驱力标签,如 betrayal,conflict,joy |
text | string | 事件文本 |
tick
时间流逝心跳:驱力自然紧迫 + 漂移衰减。空闲/心跳时调用。
| Parameter | Type | Description |
|---|---|---|
seconds | number | 推进秒数,默认 3600 |
satisfy
满足某驱力(闭环)。
| Parameter | Type | Description |
|---|---|---|
amount | number | 满足量 0–1,默认 0.3 |
drive | string |
snapshot
读取紧凑身份态(OCEAN+主导情绪+驱力)+ 可注入 prompt 片段。每轮重注入宿主 prompt 抗压缩失忆。
autostep
自主行为推进:按驱力自己决定并做想做的事(玩家不干预也活)。
| Parameter | Type | Description |
|---|---|---|
seconds | number | 推进秒数,默认 3600 |
intervene
人工干预:顺驱力(帮他做想做的)或逆驱力(对抗意愿去塑造他)。
| Parameter | Type | Description |
|---|---|---|
amount | number | 干预量,默认 0.4 |
drive | string | |
text | string | 干预描述 |
status
完整状态检视(调试用)。
generate_soul
导出 SoulSpec v0.4 包(soul.json + SOUL.md + IDENTITY.md),进 ClawSouls 分发。
| Parameter | Type | Description |
|---|---|---|
target_dir | string | 输出目录,默认当前目录 |