返回目录
Agent 与会话 插件

dsh-plugin-verispring

brandonzyy/dsh-plugin-verispring

dsh 三角色会话架构门禁 + manon 本地图谱组件(bundle:派遣规范门 / scout 常驻 / 地图前置 / 模型钉死 / 提交门 / 领导面限定 / manon 桥接)

Stars
0
Forks
0
Issues
0
更新
11 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:brandonzyy/dsh-plugin-verispring

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

PROJECT README

README

dsh-plugin-verispring

A three-role session architecture plugin (leader — scout — executor) with a bundled local knowledge graph (manon). The main session keeps the premium model but never reads the codebase itself; the heavy work runs on DeepSeek Flash and the main-session context stays clean — which cuts premium model API costs substantially.

leader dispatches → scout maps the repo and answers facts → executor builds → receipt back to the leader

中文 | English

What it does

Three-role division, enforced by dispatch discipline

The leader plans, dispatches and reviews. A resident scout owns the repository map and touches code read-only; executors write code and run commands. The role comes from the dispatch itself, an executor dispatch is refused while no scout is reachable, and executors start only once the map exists and is fresh. Briefs go straight to the child and results come back as settlement receipts, so the main session is never polluted by raw exploration. The manon graph is scout-owned — leaders and executors never invoke it directly; they ask the scout. Running executors per leader session are capped (default 8), so a dispatch fan-out cannot turn into a crowd.

Global work-spec supply

The global work spec has a single production source: ~/.claude/CLAUDE.md. The plugin supplies it through the root-scope dynamic system section caseos:global-work-spec, reading the full text at every prompt assembly for leader, scout and executor sessions alike — including send_message continuations and cold recovery; a subagent brief cannot opt out. When a task touches the specialized specs the source references, those specs are read in full at the paths the source gives.

If the source is missing, blank, or unreadable, new subagent dispatches and every tool call from an existing subagent are refused with spec-source-missing and written to the monitor; the leader's ordinary tools are unaffected. Once the source is restored the next round proceeds — nothing is cached.

Model division that saves money

The main session runs the premium model (Claude Opus 5.5 by default); scouts and executors default to DeepSeek Flash. The route is enforced at runtime per role — a provider/model passed on the dispatch call is ignored — so the cheap route cannot be slipped past. Both agent routes are picked in the plugin panel; the main session uses DSH's native model picker.

Cache cost defense

Tool definitions and regular system sections are frozen per session, so new copy shipped in a release never rewrites the prompt prefix of a session already running; the global spec section is an intentional dynamic exception and is re-read every round. Compaction is per role: the main session at 40% of its window, subagents at 60%. A main session that has been idle for 55 minutes with more than 50K tokens is compacted once — flattening the large cache write that follows an expired cache TTL. The accepted cost: oversized tool results stay in context until a compaction summarises them.

Memory and host guards

Heap thresholds warn and prune the plugin's own indexes long before the cliff; an out-of-process watchdog keeps sampling while the host event loop is stuck; an oversized whole-file read is refused with a segmented-read hint; and the leader can release finished subagents to hand memory back. The host is never killed behind your back — the hard threshold only records a restart prompt.

Secret hygiene

Credential files (manon.env, verispring.env, project .env*) cannot be read or echoed, and whole-environment dumps are refused. Key values never reach a session log.

Observability

Role drift, gate denials, dispatches, releases and memory events all land in ~/.dsh/verispring-monitor.jsonl, so audits no longer require decompressing session logs.

Operational switches

Capabilities including the memory guard and scout division have CASEOS_* switches, so they can be disabled individually without uninstalling: e.g. CASEOS_MEM_GUARD=0 disables the memory guard and its watchdog, and CASEOS_SCOUT=0 drops the scout part of the division clause. Global work-spec supply and its fail-closed gate have no such bypass.

Install

# Install / update (tracks main; pin a release with a tag like #v1.3.3)
dsh plugin --profile <your-profile> add github:brandonzyy/dsh-plugin-verispring

# Desktop app: Settings → Plugins → install, paste the same spec

The desktop app enables HMR, so an install through the plugin manager applies immediately — no restart needed. Already-running sessions keep their current tree; new sessions and dispatches pick up the new one. Only setups with HMR disabled (headless/SDK/ACP) need a restart. To update, uninstall and reinstall the same spec.

Prerequisites — the profile needs the agent preset registry and a preset-standard entry (desktop and web bundles ship them); ~/.dsh/specs/子代理派遣规范.md and ~/.dsh/specs/代码写作规范.md must exist (the gates keep denying with directions otherwise); ~/.claude/CLAUDE.md must exist, be readable and non-blank (subagent dispatches and subagent tool calls are refused otherwise); the verispring channel must serve the leader model and a deepseek-flash entry that declares reasoningEfforts and compat.forceAdaptiveThinking. manon is bundled and optional: it bootstraps a Python venv on first run (one-time network, python3 ≥3.11), with keys in ~/.dsh/manon.env and ~/.dsh/verispring.env.

Exclusive discounts: contact the package author — 20% off Claude, 50% off DeepSeek Flash; WeChat: jinyong0716.

Test

npm test runs the gate behavior suites plus the smoke check (npm run smoke). Mock suites cannot prove the host really loads the gates, so after a dsh upgrade run npm run smoke on its own: it checks the manifest, the syntax and the plugin entry, and with DSH_BIN and DSH_SMOKE_PROFILE set it adds the official --dump-config composition check against an isolated profile.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类Agent 与会话
规则置信度中

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