返回目录
部署运维 插件

dsh-team-toolkit

DreamPerday/dsh-team-toolkit

Manual context compaction and cache/prefix audit for DSH Agent Teams

Stars
0
Forks
0
Issues
0
更新
5 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:DreamPerday/dsh-team-toolkit

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-team-toolkit

Two small, additive plugins for DSH Agent Teams (DeepSeek Harness). Neither plugin edits a shipped package, and neither changes the model-visible request unless you explicitly call its tool.

Package What it does Model surface
packages/team-compact Manual context compaction for the Lead and every teammate: a scoped compact_context tool plus the /compact-agent command. Adds one tool + one human command
packages/team-ext Observation-only audit: records per-request cache usage and every prompt-prefix rewrite (compaction, prune, series reset) to JSONL, with an analysis script. Adds no tool and no prompt section

Both are Cordis bundles (dsh.bundle manifest) and install into a DSH profile without touching resources/app.

Install

Requirements: DSH Desktop with the experimental Agent Teams profile (@deepseek-ai/dsh-experimental-agent-team-profile), i.e. the Lead gets spawn_teammate and teammates exist.

From a local clone (recommended while the packages are not in a registry):

git clone https://github.com/DreamPerday/dsh-team-toolkit.git
# in DSH: ask the agent, or call the plugin manager, with the absolute package directory
plugin_manager action=install_bundle target="<clone>\packages\team-compact"
plugin_manager action=install_bundle target="<clone>\packages\team-ext"

Both packages are link-installed, so the clone must stay where it is. Restart DSH Desktop after the first install if your profile does not hot-reload plugin modules (host plugin code is cached by the running process; config changes hot-reload, module changes need a restart).

Remove with:

plugin_manager action=remove_bundle target="dsh-team-compact"
plugin_manager action=remove_bundle target="dsh-team-ext"

Why these exist

While running a real multi-agent workload on DSH 0.2.1, every teammate compaction failed with a 400 because auxiliary LLM calls without an explicit reasoning effort fell through to reasoning.effort: "none" on an OpenAI-compatible reasoning model. The audit plugin exists to make that class of failure visible (per-request cache fields plus prefix-rewrite events), and the compact plugin exists because the official compaction seam only compacts the whole compactable range, so a manual, targetable entry point is useful when an agent's context has grown large.

Patches (not plugins)

patches/team-model-selection — an in-place patch for DSH Desktop 0.2.1-rc.2 that adds optional provider / model / reasoning_effort to spawn_teammate, so the Lead can pin each teammate to a different LLM route.

patches/team-member-remove — adds a terminal removed member phase, a Lead-only remove_teammate tool and the /team-remove command: the teammate is interrupted, released, hidden from list_agents and the Web panel, its name and member slot are freed, and its saved conversation is deleted. The roster is journal-projected and private, so this also has to be an in-place patch.

patches/team-panel-remove — a client-bundle patch that adds a × control to each non-Lead row of the Web member panel; it runs /team-remove through the client Remote command channel.

The patches are version-pinned, fail loudly on anchor mismatch, and must be re-applied after a DSH update.

Compatibility

Written against DSH 0.2.1-rc.2 host services (agents, commands, agentTeams, tokenMeter, compaction, toolResultPruner). The experimental Agent Teams packages are explicitly unstable upstream; check the two package READMEs for the exact services they use.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类部署运维
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: observability。