READMESource: main@d598f5d0
dsh-agentframe-plugins
AgentFrame 的 DeepSeek Harness (dsh) 插件套件。
本仓库把四个插件收拢到一处,并修正了依赖声明问题,使它们可以在 arm64(含 Android/Termux 移动端) 环境下正常安装与运行。
插件
| 插件 | 说明 |
|---|---|
memory-director |
每轮结束做记忆决策(remember/forget),pre-step 注入记忆,JSON 持久化 |
compaction-agentframe |
语义 + 物理压缩,替换默认的 LLM 摘要式 compaction |
aura-scheduler |
系统驱动的主动调度,价值网络 V = α·urgency + β·relevance − δ·interruption |
agentframe-suite |
套件整合包(host/client 测试) |
arm64 验证
在 RK3399(aarch64 / Debian 12 / glibc 2.36 / Node 22.13.1)上实测通过:
memory-director smoke test 全绿
aura-scheduler smoke test 12/12
compaction-agentframe smoke test 全绿(compactNow / compactRegion / 闲聊剔除 / 关键代码保留)
结论:插件核心逻辑不依赖 x86 原生模块,可在 arm64 上直接运行, 适用于 Android 侧内嵌 Termux 运行时的 dsh 环境(如 dsh-mobile-apk)。
依赖修复说明
原始 package.json 的 peerDependencies 版本范围与 npm 上的实际发布版本不一致,
导致安装失败(该问题在桌面端同样存在):
| 包 | npm 实际版本 | 原声明 | 修正为 |
|---|---|---|---|
@deepseek-ai/dsh-agent |
0.1.0-rc.6 |
>=0.1.0 |
>=0.1.0-rc.1 |
@deepseek-ai/dsh-llm |
0.0.1-rc.1 |
>=0.1.0 |
>=0.0.1-rc.1 |
@deepseek-ai/dsh-compaction |
0.0.1-rc.5 |
>=0.1.0 |
>=0.0.1-rc.1 |
@deepseek-ai/dsh-session |
0.0.1-rc.1 |
>=0.1.0 |
>=0.0.1-rc.1 |
@deepseek-ai/schemastery |
3.18.2 |
未声明 | >=3.0.0 |
@agentframe/*(suite) |
未发布 | dependencies | peerDependencies * |
原因:npm 的语义化版本中 0.1.0-rc.6 小于 0.1.0,
所以 >=0.1.0 无法匹配任何 rc 版本。
安装
各插件目录独立安装:
cd packages/memory-director
npm install --legacy-peer-deps
npm test
作为 monorepo 统一安装:
npm install --legacy-peer-deps
npm test --workspaces --if-present
目录
packages/
memory-director/
compaction-agentframe/
aura-scheduler/
agentframe-suite/
docs/ 设计与分析文档
License
MIT
No comments yet. Be the first to write one.