dsh-ctx-budget:审计并压缩 Agent 每轮请求的静态上下文

dsh-ctx-budget 是 LUgABeEEE 维护的 DSH 插件(admin-security),用 Python 标准库 CLI 与四个只读插件工具量化规则、记忆、技能、工具面、会话与知识库六层静态上下文,校验能力地图失效路径、体检记忆、压缩技能描述,并从会话日志 probe 冷启动成本。默认只读与 dry-run,写操作需 --apply 并自动备份。安装见官方 release tgz 与 ctxbudget 子命令文档。

Read More
ctx-budget: Auditing Agent Context Costs Before Execution

`ctx-budget` is a DSH plugin that audits the context token cost of an Agent before it runs. It addresses the pain point of context budget management by distinguishing catalog costs that are present in every request from body costs that are loaded on demand, and quantifies the “permanent tax” introduced by MCP tool definitions. The plugin supports CJK-aware tokenization, duplicate detection, and CI exit codes, helping developers accurately estimate consumption, optimize design, and enforce budget limits in CI workflows.

Read More