dsh-agent-handoff-deliberation
Agent 与会话 活跃维护

dsh-agent-handoff-deliberation

wbj0256/dsh-agent-handoff-deliberation

工具链生态,提供隐私优先的跨智能体任务交接与对抗推演能力,支持多代理间的逻辑校验与任务协同流转,所有交互数据本地化处理,无需上传敏感信息即可完成复杂任务的对接与讨论。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
1
Open Issues
TypeScript
主要语言
NOASSERTION
开源协议
18 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:wbj0256/dsh-agent-handoff-deliberation
git clone https://github.com/wbj0256/dsh-agent-handoff-deliberation.git
git clone git@github.com:wbj0256/dsh-agent-handoff-deliberation.git
README.md main

DSH Agent Handoff & Deliberation

Privacy-first coordination primitives for DeepSeek Harness integrations.

  1. Cross-agent task handoff: recipient-bound queued → accepted → completed|blocked transitions with an audit event trail.
  2. Multi-agent deliberation / disagreement: independent positions, direct rebuttals, and a decision gate that refuses false consensus.

Independent ecosystem project; it is not an official DeepSeek product. It follows DeepSeek Harness guidance to publish ecosystem projects with the dsh-plugin topic.

Scope

Included: stateful handoffs, independent positions, rebuttals, decision gates, recursive credential redaction, unit tests, and CI.

Explicitly excluded: mutual teaching, scheduling / cron / process spawning / autonomous dispatch, credential storage or transport, and provider-specific model calls.

Install

npm install @wbj0256/dsh-agent-handoff-deliberation

Usage

import { HandoffLedger, DeliberationRoom } from '@wbj0256/dsh-agent-handoff-deliberation'

const handoffs = new HandoffLedger()
handoffs.create({ id: 'design-7', from: 'planner', to: 'builder', task: 'Implement the validated API contract.' })
handoffs.accept('design-7', 'builder')
handoffs.complete('design-7', 'builder', { artifact: 'commit reference' })

const debate = new DeliberationRoom()
debate.open('release-1', 'Release now?', ['builder', 'reviewer', 'lead'])
debate.position('release-1', 'builder', 'Release after tests.', ['unit tests passed'])
debate.position('release-1', 'reviewer', 'Hold for the abuse-case test.', ['threat model'])
debate.rebut('release-1', 'builder', 'reviewer', 'The boundary test covers this case.')
debate.decide('release-1', 'lead', 'Release only with boundary evidence recorded.')

Harness adapter

apply(host) registers neutral tool definitions against a tiny host.tools.register() seam. This keeps the policy core testable and avoids coupling to unstable internal APIs. A deployment adapter can map these definitions to the installed DeepSeek Harness Cordis and defineTool version.

Tools: handoff_create, handoff_accept, handoff_complete, deliberation_open, deliberation_position, deliberation_rebut, and deliberation_decide.

Security

Redaction happens before a payload enters a handoff or deliberation record. It is defense-in-depth, not secret management: do not provide credentials to agents or logs. The package persists nothing by default.

Development

npm install
npm run check

MIT licensed.