Ayou-Claw/flowctx-dsh

插件 ⭐ 1 MIT developer-toolsmemory

DeepSeek Harness的上下文引擎——对实时上下文窗口进行可逆、按令牌预算的压缩。

catalog 简介:A context engine for DeepSeek Harness — reversible, token-budgeted compression of the live context window.

安装

工具调用返回
    │
    ▼
[第一道] SpillPolicy          超大 tool result → 写磁盘,替换为 head/tail 预览
    │
    ▼
[第二道] ToolResultPruner     超长历史 tool/result 节点 → head+tail 裁剪,中间标记
    │
    ▼
[+] tools/post-execute        能力 3:超阈值 tool result → 可逆结构化投影,
    │                          原文写入 CompressionStore(内存 + 可选 SQLite),
    │                          上下文里留带 hash 的 marker
    ▼
[第三道] BasicCompactionEngine
    │   agent/pre-step:历史 token 超阈值 → LLM 摘要
    │                                           ↑
    │                              能力 1:替换此处的摘要提示词
    │                              → 输出工程师交接笔记而非通用摘要
    │
[+] agent/pre-step(另挂一条 hook)
    │   能力 2:纯函数规划分层 DAG 摘要 → 后台 fire-and-forget drain
    │   (leaf 折叠 + condense 逐级压缩,summary nodes 可选持久化到 SQLite)
    │   能力 4:把 <working_memory> scratchpad 注入进入消息流
    │   → 把 active summary node 作为 placeholder 注入
    ▼
LLM 请求

[+] 工具:flowctx_retrieve      按 hash 取回压缩原文,或按 node id 取回某层交接笔记
    可选 flowctx_scratch_*      能力 4:模型可编辑的 working memory

Ayou-Claw/flowctx-dsh 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。