Ayou-Claw/flowctx-dsh

Plugin ⭐ 1 MIT developer-toolsmemory

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

Install

工具调用返回
    │
    ▼
[第一道] 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

Add Ayou-Claw/flowctx-dsh to your DSH config (web profile) to enable.

README

Expand full README Collapse

README is empty.