小唯自治系统 — daemon/技能管理/优化器/学习层/配置保护
Go to file
小唯 A06 a030cc0a0e fix: opencode code review 修复
- cbm-to-zhiyi.py: 防止 KeyError(.get 防御)
- cbm-query-wrapper.py: 异常细化 + 环境变量读取 API key + nodes/edges 类型安全
- update_profile.py: 变更检测避免冗余写入 + agent_id 统一为 a06
2026-07-30 11:54:15 +08:00
ao-output/team-parallel-review-2026-07-09T04-02-44 feat: whisper-stt + comfyui skills, 织忆health check done 2026-07-09 12:20:32 +08:00
bin auto-snapshot 2026-07-22 03:00:54 2026-07-22 03:00:54 +08:00
cangjie-inputs auto-snapshot 2026-07-19 03:00:40 2026-07-19 03:00:40 +08:00
cangjie-skill feat: 仓颉skill(cangjie-skill)完整集成 2026-07-11 22:49:12 +08:00
cangjie-skills feat(cangjie): 新增《提示词工程》skill 2026-07-18 20:48:33 +08:00
cron P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
daemon P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
gateway auto-snapshot 2026-07-10 03:00:12 2026-07-10 03:00:12 +08:00
hermes-agent@c4764a9050 chore: 全面检查完成 + Calibre书库接入 192.168.123.11:8089 2026-07-18 02:09:03 +08:00
hooks auto-snapshot 2026-07-22 03:00:54 2026-07-22 03:00:54 +08:00
kanban init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
memories P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
pairing init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
plugins/zhiyi init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
proactive_learning feat: 仓颉技能更新 + 马克思主义股票分析框架落地 2026-07-17 12:36:48 +08:00
prof-b init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
profiles/prof-b auto-snapshot 2026-07-30 03:00:00 2026-07-30 03:00:00 +08:00
scripts fix: opencode code review 修复 2026-07-30 11:54:15 +08:00
skills P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
soulful P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
stock_backtest P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
tmp init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
workflows init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
.env init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
.gitignore config: 配置基线 2026-07-09(仅跟踪可恢复配置) 2026-07-09 02:10:07 +08:00
.hermes_history init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
.update_check auto-snapshot 2026-07-30 03:00:00 2026-07-30 03:00:00 +08:00
AGENTS.md init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
CREATIVE.md init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
MEMORY.md init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
README.md docs: 更新 README — 4个项目关系图 + TencentDB + Soulful 2026-07-20 15:58:44 +08:00
SOUL.md P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
USER.md init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
auth.json auto-snapshot 2026-07-10 03:00:12 2026-07-10 03:00:12 +08:00
auth.lock init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
channel_directory.json P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
config.yaml P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
feishu_seen_message_ids.json P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
gateway.lock auto-snapshot 2026-07-28 03:00:15 2026-07-28 03:00:15 +08:00
gateway.pid auto-snapshot 2026-07-28 03:00:15 2026-07-28 03:00:15 +08:00
gateway_state.json P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
kanban.db.dispatch.lock init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
kanban.db.init.lock init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
llm_context.json P0-P4: 记忆流水线打通 2026-07-30 11:45:34 +08:00
models_dev_cache.json auto-snapshot 2026-07-29 03:00:37 2026-07-29 03:00:37 +08:00
ollama_cloud_models_cache.json auto-snapshot 2026-07-30 03:00:00 2026-07-30 03:00:00 +08:00
optimization-report.json auto-snapshot 2026-07-27 03:00:40 2026-07-27 03:00:40 +08:00
processes.json auto-snapshot 2026-07-28 03:00:15 2026-07-28 03:00:15 +08:00
provider_models_cache.json auto-snapshot 2026-07-30 03:00:00 2026-07-30 03:00:00 +08:00
skill-curator-report.json auto-snapshot 2026-07-27 03:00:40 2026-07-27 03:00:40 +08:00
skill-health.json auto-snapshot 2026-07-28 03:00:15 2026-07-28 03:00:15 +08:00
startup.sh auto-snapshot 2026-07-09 02:52:03 2026-07-09 02:52:03 +08:00
wiki_curator_state.json init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00
织忆与Soulful关系说明.md docs: 织忆与Soulful关系说明 2026-07-10 02:15:31 +08:00

README.md

小唯系统 (xiaowei-system)

小唯 A06 的大脑层 | Gitea: http://192.168.123.11:3000/xiaoxue_admin/xiaowei-system/


相关项目关系图

┌─────────────────────────────────────────────────────────┐
│               基础设施层(独立仓库,独立进程)              │
│                                                         │
│  织忆 memoryweave         TencentDB                    │
│  /tmp/memoryweave/        ~/.memory-tencentdb/         │
│  port 7821                 port 8420                    │
│  zhiyid + LanceDB          tdai-gateway (Node.js)      │
│  + bge-embed                                         │
└────────────────────┬────────────────────────────────────┘
                     │ HTTP APIlocalhost
                     ▼
┌─────────────────────────────────────────────────────────┐
│               上层应用层(小唯系统 xiaowei-system        │
│                                                         │
│  ~/.hermes/  ← 本仓库                                   │
│                                                         │
│  ┌─────────┐  ┌──────────┐  ┌─────────┐  ┌──────────┐  │
│  │ Soulful │  │  daemon  │  │  cron   │  │  skills  │  │
│  │ 牵挂    │  │  持久意识 │  │  定时任务│  │  仓颉技能 │  │
│  │ 心迹    │  │  L1→L6   │  │  自检    │  │  股票投研 │  │
│  │ 画像    │  │  蒸馏    │  │  升级    │  │          │  │
│  └─────────┘  └──────────┘  └─────────┘  └──────────┘  │
│                                                         │
│  daemon.py → 统一写入 → llm_context.jsonL7统一层    │
└─────────────────────────────────────────────────────────┘

参考项目Gitea
  agent-memory-skill — tier分层/线性衰减
  memory-os          — 7层记忆架构

各项目详情

项目 源码位置 Gitea 进程
织忆 memoryweave /tmp/memoryweave/ xiaoxue_admin/memoryweave zhiyid (7821) + bge-embed (8000)
TencentDB memory-tdai ~/.memory-tencentdb/memory-tdai/ 无(未版本控制) tdai-gateway (8420)
Soulful(牵挂/心迹/画像) ~/.hermes/soulful/ 随 xiaowei-system daemon.py 读写
xiaowei-system ~/.hermes/ xiaoxue_admin/xiaowei-system daemon.py持久意识

Soulful 是 xiaowei-system 的子模块,数据文件在 ~/.hermes/soulful/

  • cares-queue.json — 牵挂队列
  • heart-traces.jsonl — 心迹(重要时刻记录)
  • user-profile.json — 用户画像(含 distilled_rules

安装顺序

第一步:织忆(底层存储引擎)
  → /tmp/memoryweave/port 7821
  ↓
第二步TencentDB对话记忆
  → ~/.memory-tencentdb/port 8420
  ↓
第三步:小唯系统(上层应用)
  → ~/.hermes/daemon.py

架构依赖

小唯系统(daemon.py)
├── http://127.0.0.1:7821  ← 织忆 L1/L2 recallX-API-Key
├── http://127.0.0.1:8420  ← TencentDB L3/L4 scenes/capture + /recall
├── ~/.hermes/soulful/     ← Soulful L5/L6cares + heart-traces + profile
└── → 统一写入 ~/.hermes/llm_context.jsonL7

小唯系统内容

~/.hermes/  ← xiaowei-system 仓库
├── daemon.py              — 持久意识 daemonL1→L6 蒸馏管道)
├── memory_recall.py       — 统一记忆读取入口
├── llm_context.json       — L7 统一上下文(唯一读取入口)
├── soulful/               — Soulful 数据(牵挂/心迹/画像)
├── scripts/
│   ├── memory-system-check.sh     — 定时自检
│   ├── memory-system-self-upgrade.py — 每日升级
│   └── stock_*.py                 — 股票投研 cron 套件
├── skills/                — Hermes Skills仓颉书库蒸馏
└── cron/                  — 定时任务定义

定时任务

hermes cron list

关键任务:

  • memory-system-check.sh — 每小时自检(正常静默,异常飞书)
  • memory-system-self-upgrade.py — 每天 04:00 自我升级
  • daemon.py — 持久意识light tick 30sdeep tick 5min