DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
C

context-budget

Context Budget

像管理预算一样使用上下文窗口处理长期任务:通过分阶段读取来加载文件(先读开头,按需读取各部分,完整读取前先进行定向搜索),一旦确认事实就立即将其记录到 notes file 中,避免重复推导,并在检查点重新陈述当前任务计划——这决定了你能否完成长期任务,而不是在完成 80% 时陷入困境

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add github:ChenneyZhuang/context-budget#8b7b172c93436f6d122f9392780ba7c04de3929f
README兼容性版本

说明

像管理预算一样使用上下文窗口处理长期任务:通过分阶段读取来加载文件(先读开头,按需读取各部分,完整读取前先进行定向搜索),一旦确认事实就立即将其记录到 notes file 中,避免重复推导,并在检查点重新陈述当前任务计划——这决定了你能否完成长期任务,而不是在完成 80% 时陷入困境。

兼容性与来源证明

Context Budget 以 context-budget 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
any
发布来源
github
Registry 更新时间
2026/9/14

版本

0.1.0stable
2026/9/14

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
any
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/9/23
查看源码 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 memory-context 分类下经过校验的插件。

Experimental Session Search@deepseek-ai/dsh-experimental-session-search为 Agents 提供搜索和读取当前工作区早期会话的工具。Hindsight Coding Agents@vectorize-io/hindsight-coding-agents面向编程代理的仅反思式 Hindsight 长期记忆(可插拔支持多种运行框架:opencode、……),自动在后台导入(无需设置 CLI)。Ab Memorydsh-ab-memory--- description: "dsh-ab-memory 包:一种跨会话、基于文件的智能体记忆,提供五个工具(remember / recall / forget / load_skill / distill)以及始终启用的轻量注入。" kind: "package-reference" ---Fish Memorydsh-fish-memory给 DSH 里的会话一份会淡忘的长期记忆,每条都带时间。

README

context-budget 上下文预算

Long tasks do not fail at the start; they fail at 80%, when the window is full of re-read files and the plan is somewhere in the scrollback. Manage the window like a budget.

长任务不是败在开头,是败在 80%——窗口里塞满重读的文件,计划躺在回滚的聊天里。把上下文窗口当预算管。

Why / 为什么

An agent's working memory is the context window, and the two ways it dies on long tasks are re-reading (loading the same 5,000-line file three times because nothing was noted) and re-deriving (recomputing decisions already made three turns ago). Both are budget failures: the token was spent once and bought nothing durable. The cure is mechanical — graduated reads, notes to disk, checkpoint restatement.

agent 的工作记忆就是上下文窗口,长任务死法有两种:重读(同一份 5000 行文件读了三遍,因为什么都没记)和重推导(三轮前定过的决策重新算一遍)。这都是预算失败:token 花了一次,没买到任何耐用的东西。解法是机械的——分层读取、落盘记笔记、检查点复述。

The three habits / 三个习惯

  1. Graduated reads. Head first (first ~100 lines to learn the shape), then the specific section, then targeted search. A full read is a deliberate purchase, made when the head read proves the middle matters.
  2. Notes beat memory. Facts, decisions, file paths, and gotchas land in a working notes file the moment they are established — one line each. The notes file survives compaction; the conversation does not.
  3. Checkpoint restatement. At phase boundaries (before a long build, after a big discovery), restate the plan and current state in three lines. This is the anchor that survives when the window is compacted mid-task.

What it changes at 80% / 80% 处的差异

Without the budget: the agent re-reads, contradicts its earlier decisions, and the final third of the task runs on fumes. With it: the plan is three lines long, every established fact is in the notes file, and the last stretch reads two small files instead of recalling ten.

没有预算:重读、推翻自己三轮前的决定、最后三分之一靠残血硬撑。有预算:计划只有三行,每个已确立的事实都在笔记文件里,最后一程是读两个小文件,而不是回忆十个。

Install / 安装

npx skills add ChenneyZhuang/context-budget

Per-agent paths: COMPATIBILITY.md. MIT. v0.1.0.

各 agent 安装路径见 COMPATIBILITY.md。MIT 许可,v0.1.0。