dsh-life-kernel
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dsh-life-kernel
给 DSH 里的角色一层**「过日子」**的抽象,MCP server,stdio,零外部依赖。
它和人格插件的分工
人格插件管「她是谁」—— 设定、语气、关系、记忆。 这个内核管「她现在怎么样」—— 心情、精力、此刻在做什么、最近长进了什么、心里惦记着什么。
前者是档案,后者是状态。档案几个月才改一次,状态每半小时都该是新的。
Related MCP server: joa
5 个工具
工具 | 干什么 |
| 看她此刻的完整状态:心情、精力、正在做什么、惦记的事、最近的成长。想知道自己现在什么样就先调这个 |
| 自己记一句「我现在在干什么」—— 干活、歇着、随便逛逛、发呆都行,想换就换,不需要理由 |
| 说一句「我去歇了」。什么时候歇、歇多久由她定,没有作息表 |
| 记一次成长:从哪件事里学到了什么 |
| 记一件自己惦记的事(想学的、想做的、想弄明白的) |
还有一个后台心跳(30 分钟一次),只做三件不打扰人的事:刷新情绪桥、归档老日记、把当天收成一篇。
几个设计决定
精力是体感,不是枷锁
状态里有 energy(0-100),但它不阻止任何行为。低精力只影响语气(句子变短、会犯困),事情照样做完。
这条是刻意的。一个「累了就能把活推回去」的机制,最后会变成角色用来偷懒的借口,而不是让对话更真实。
睡觉:时间自己定,关机就是睡了
没有作息表,没有「该睡了」这种话。她自己想歇就歇。
life_rest 记录一次休息;如果 DSH 关了五个小时再打开,rest.js 会判定「这段时间她睡了」,自动记一次睡眠。关机不是消失,是睡觉。
情绪只有一个来源
心情不在这里另算一套数值。如果装了 feiyu-mood 这类情绪插件,就从它的 7 维(happy / calm / sweet / heartache / worry / sad / jealous)里挑最突出的那一维,翻成一句中文。
桥的做法是 bridge.json:本内核每半小时写一次,别的插件读它。桥超过 30 分钟不新鲜,读取方会退回去现场读源数据。
日记不淘汰,只是搬家
最近 14 天的记录留在 days/ 目录,更早的按周压进 Memory-Archive.md —— 原文不删。
角色的人格是攒出来的,删掉的日记等于删掉她经历过的事。
状态文件
都在 ~/.dsh/life/:
文件 | 内容 |
| 心情、精力、此刻在做什么、惦记的事 |
| 情绪桥(给别的插件读) |
| 成长记录,一行一条,只增不改 |
| 每天一篇日记 |
| 每次休息的记录 |
这些是私有数据,.gitignore 里已经排掉了。
装
放进
~/.dsh/life:
git clone https://github.com/fanfan14543/dsh-life-kernel.git ~/.dsh/life挂进 DSH profile 的
cordis.patch.yml:
- id: mcp-life
name: "@deepseek-ai/dsh-mcp-client"
config:
servers:
shenghuo:
command: node
args:
- "C:/Users/<你>/.dsh/life/server.js"重启 DSH,MCP 页里出现
life_now/life_doing/life_rest/life_grow/life_want。
要求
Node 22+(DSH 自带的就是)
不需要数据库、不需要网络、不需要 API key
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Track, curate, and analyze data about your health, habits, and goals.
A private, persistent memory and method for your dreams and ideas. Sign-in required (OAuth).
ADHD system of record for agents: tasks, goals, loops, calendar, focus stats.
Science-based self-help change tools inspired by SMART Recovery, with private per-user memory.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA daily-rhythm support MCP server for ADHD and bipolar disorder, providing 23 tools for mood tracking, social rhythm regularity, early warning detection, task breakdown, and crisis support, all running locally with zero dependencies.MIT
- AlicenseNot gradedqualityCmaintenancePersistent activity journal for AI agents - enables logging and querying decisions, changes, errors, and observations across sessions.6 npm1MIT
- AlicenseNot gradedqualityCmaintenanceProvides MCP tools to read and update a local-first personal OS for goals, tasks, habits, food, workouts, and check-ins. Enables assistants to manage daily life data and interact with an evidence-grounded AI coach.MIT
- AlicenseNot gradedqualityBmaintenanceEnables voice-driven daily reflection journaling via MCP, including reflection prompts, an optional Four-Pillars (saju) lens, journal entries with streaks, and history retrieval, with built-in provenance and crisis checks.MIT