rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Anseya/flow-tower-context
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
压缩驱动的项目级上下文记忆系统 · Compaction-driven project memory for DeepSeek Harness
中文 · English · 状态:已发布 v0.66.4(npm · GitHub Release) · 许可证 MIT
Flow Tower(上下文流动塔) 是 DeepSeek Harness(DSH)的原生上下文记忆插件。它以 DSH 的压缩事件为唯一写入锚点,把每次压缩产生的摘要增量确定性编译为项目本地词典(十类词条、类型化关系、可逐字回放的 seq 引文、三层摘要树),再以「短程 checkpoint + 长程 digest」双注入策略按需送回模型上下文。插件还可在会话预设层接管压缩 provider,让项目记忆真正进入压缩请求,并被同一项目的多个子代理共享。
dict_cite 逐字回放原文,而不是摘要回放;auto 模式下在 dual / dual-lite / long-only / short-only 间自适应,实测单次 694–829 token;<项目>/.flow-tower/flow_tower.db,可切全局/自定义路径。| 路径 | 说明 |
|---|---|
plugin/flow-tower/ |
DSH 插件(主插件 + 压缩 provider 入口 + 工具/面板/评测/测试) |
paper/ |
国标格式论文(Word)、SVG/3D 图源、stats.json 与复现脚本 |
design/flow-tower/ |
21 篇设计文档(定位、取舍、注入策略、结案记录) |
references/、papers/ |
调研资料与参考论文(RAPTOR / MemGPT / APDMem / HORMA 等) |
安装(发布后,二选一):
# 方式 A:插件市场 Discover(推荐)
# 插件 → 实验性插件 → 开启 Custom plugin indexes
# 插件 → 发现 → 添加索引源:
# https://cdn.jsdelivr.net/npm/flow-tower-context/market/index.json
# 方式 B:直接安装 npm 包
plugin_manager install_bundle target=flow-tower-context@0.66.4
安装后重启 DSH;新建会话时选择预设 Flow Tower (compaction memory) 启用压缩接管(不选则仅观察+注入)。 详细步骤见 plugin/flow-tower/docs/INSTALL.md。
本地开发/未发布时:
# 在 DSH 中 Settings → Plugins → Add plugin,选择 plugin/flow-tower;
# 或安装发布构建产物 dist/flow-tower-context(npm run build:publish 生成)
运行测试与评测(离线,无需模型调用):
cd plugin/flow-tower
npm test # 85/85 单测 + 模块契约/依赖图检查
npm run eval:search # 检索召回
npm run eval:cost # 上下文成本报告
npm run build:publish # 生成可发布包 dist/flow-tower-context
npm run publish:check # 发布前检查清单
https://github.com/Anseya/flow-tower-contextflow-tower-context(npm);许可证:MIT(见 LICENSE)>=0.2.2-rc.3 <0.3.0(详见 docs/COMPATIBILITY.md)https://cdn.jsdelivr.net/npm/flow-tower-context/market/index.jsonFlow Tower is a native context-memory plugin for DeepSeek Harness (DSH). It turns the harness's compaction events into its single write anchor: every compaction delta is deterministically compiled into a project-local dictionary (ten entry kinds, typed relations, seq-referenced citations for verbatim replay, and a three-layer summary tree), then injected back on demand through a dual-injection policy that combines the short-range native checkpoint with a long-range digest. The plugin can also take over the compaction provider at the session-preset level, so project memory enters the compaction request itself and is shared by sibling subagents of the same project.
dict_cite replays the original text, not a rewrite;auto picks dual / dual-lite / long-only / short-only, measured at 694–829 tokens per injection;<project>/.flow-tower/flow_tower.db, configurable;| Path | Purpose |
|---|---|
plugin/flow-tower/ |
The DSH plugin (main plugin, compaction provider entry, tools, panel, evals, tests) |
paper/ |
Research paper (Word), SVG/3D figure sources, stats.json, reproduction scripts |
design/flow-tower/ |
21 design notes (positioning, trade-offs, injection policy, closure record) |
references/, papers/ |
Survey material and reference papers (RAPTOR / MemGPT / APDMem / HORMA, …) |
Install (published package or plugin-market index):
# A. Plugin market (Discover, recommended)
# Plugins → Experimental plugins → enable Custom plugin indexes
# Plugins → Discover → Add index source:
# https://cdn.jsdelivr.net/npm/flow-tower-context/market/index.json
# B. Install the npm package directly
plugin_manager install_bundle target=flow-tower-context@0.66.4
Restart DSH after installation. Select the Flow Tower (compaction memory) preset for a new session to enable compaction takeover (without it the plugin works in observer/injection mode). See plugin/flow-tower/docs/INSTALL.md.
Local development / before release:
# In DSH: Settings → Plugins → Add plugin, choose plugin/flow-tower;
# or install the generated release directory dist/flow-tower-context (npm run build:publish).
Run tests and evaluations offline:
cd plugin/flow-tower
npm test # 85/85 tests + module contract/dependency-graph check
npm run eval:search # retrieval recall
npm run eval:cost # context-cost report
npm run build:publish # build the public package into dist/flow-tower-context
npm run publish:check # pre-release checklist
https://github.com/Anseya/flow-tower-contextflow-tower-context (npm); license: MIT (see LICENSE)>=0.2.2-rc.3 <0.3.0 (see docs/COMPATIBILITY.md)https://cdn.jsdelivr.net/npm/flow-tower-context/market/index.jsonCLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。