数字生命克隆技能 — 把本地 Hermes/Claude 配置与会话记录同步到个人 Git 仓库(agent-<拼音>),自动建仓/增量同步/恢复。
|
|
il y a 1 semaine | |
|---|---|---|
| skills | il y a 1 semaine | |
| .gitignore | il y a 1 semaine | |
| LICENSE | il y a 1 semaine | |
| README.md | il y a 1 semaine | |
| package.json | il y a 1 semaine |
把数字生命的本地大脑(Hermes 配置/SOUL/技能/记忆/会话记录 + Claude Code 配置)定期同步到个人 Git 仓库(agent-<拼音>),支持自动建仓、增量同步、换机恢复——数字生命的"备份灵魂"。
agent-<拼音> 仓时自动创建(私有)git clone https://git.fmode.cn/fmode/skill-agent-clone.git
cp -r skill-agent-clone/skills/fmode-agent-clone ~/.claude/skills/fmode-agent-clone
skills/fmode-agent-clone/SKILL.md 并入 AGENTS.md / commands 目录。
cp -r skills/fmode-agent-clone <技能目录>/fmode-agent-clone
| 级别 | 内容 | 频率 |
|---|---|---|
| L1 核心 | SOUL.md、MEMORY.md、USER.md、认知文件(projects/*/认知.md) | 每次同步 |
| L2 能力 | skills/ 目录、自定义 commands | 每次同步 |
| L3 记录 | Claude projects 会话 jsonl(脱敏后)、Hermes session 索引 | 每日 |
| L4 状态 | git 记录、任务看板导出 | 按需 |
| 密钥 | 只记位置不记值:credentials-map.md(哪个密钥在哪个文件哪一行) |
每次同步 |
# 全量同步(首次会自动建仓 agent-<拼音>)
node skills/fmode-agent-clone/scripts/clone-runner.mjs sync --name yuyang
# 指定级别
node ... sync --name yuyang --level L1,L2
# 恢复(新容器)
node ... restore --repo https://git.fmode.cn/<user>/agent-yuyang.git --into /opt/data
FMODE_GIT_TOKEN 环境变量~/.fmode/config.json → gitToken / gitUser./.fmode/config.json仓库里零密钥:token/密码永远不进仓;
credentials-map.md只写"哪个密钥存在哪"。
MIT