DeepSeek Harness 插件

amber-protocol

DeepSeek Harness bundle for Amber Protocol governance tools and skills(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Bandersnatch0x/amber-protocol
最近更新
2026年8月22日
分类
工具与能力
GitHub stars
1
载体类型
plugin
包路径
dsh
目录证据
上游声明已找到 dsh.bundle
证据路径
dsh/package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/Bandersnatch0x/amber-protocol/tree/HEAD/dsh
插件名:amber-protocol
作者:Bandersnatch0x

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

Amber Protocol — dsh Integration

Amber Protocol ships as an installable dsh bundle named dsh-amber-protocol. Installing it with the native profile plugin command adds one declared dsh bundle layer that resolves its own installed location, starts Amber's stdio MCP server, exposes Amber skills through dsh's filesystem skill provider, and governs the workspace at process.cwd() by default.

Amber is discoverable on the official dsh-plugin topic.

Install (recommended)

# Install once; dsh adds the Amber bundle layer to your profile.
# This modifies only dependency and bundle declarations managed by dsh;
# it does NOT write the profile's patch file.
dsh plugin --profile web add dsh-amber-protocol

# Ordinary startup loads Amber after install (no repeated --patch flag).
dsh --profile web

On Windows, default port 3080 is often in a reserved range. If listen fails with EACCES, pass --port 13080.

What you get

MCP tools

The dsh agent gains 10 governed tools under the stable amber server namespace (prefixed mcp__amber__):

  • amber.governance.report — readiness score, risks, next actions
  • amber.session.start / status / approve / verify — session lifecycle
  • amber.context.ingest / amber.object.query — context knowledge lifecycle
  • amber.route.test — route validation
  • amber.fn.repoOverview / amber.fn.sessionEvidence — function queries

All mutating operations (session start, approve, context ingest) return approvalRequired: true — dsh must explicitly approve them. Read-only operations execute directly. This is the F018 fail-closed governance seam.

Journey skills

The dsh agent gains 5 skills discoverable through the native skill catalog (4 journeys plus the amber router that dispatches to them):

  • amber-delivery — objective → plan → session evidence → acceptance
  • amber-diagnosis-adoption — audit readiness, adopt or repair governance
  • amber-context-continuity — distill context, verify loadouts, resume
  • amber-continuous-improvement — select next improvement slice, loop

Bundle structure

FilePurpose
package.jsonBundle manifest; declares dsh.bundle.patch + files contract
cordis.patch.ymlDeclarative dsh patch layer (runtime, MCP client, skill provider)
runtime.jsPath-resolution adapter; exposes amberBundlePaths service
README.mdThis file
LICENSEMIT

The runtime resolves amber-protocol from its own installed module location (require.resolve("amber-protocol/package.json")) and exposes the MCP script and skills directory to later bundle rows. Configuration expressions do not rely on __dirname, require, a hard-coded profile name, or a global install.

Unpublished checkout fallback (overlay)

If you are developing Amber itself and the bundle is not yet published, use the static overlay patches instead. These are not shipped in the bundle files array — they exist only for local development.

Alternative — local tarball install with pnpm overrides: if you want to test the bundle contract (not the overlay) against an unpublished 1.6.0 tarball, dsh plugin add forwards to pnpm. When amber-protocol@1.6.0 is not yet on the registry, add a pnpm overrides entry so the bundle's amber-protocol@^1.6.0 dependency resolves from the local tarball instead of the registry (which still has 1.5.1):

# In the profile's pnpm-workspace.yaml (dsh creates this on first init):
overrides:
  amber-protocol: file:/path/to/amber-protocol-1.6.0.tgz

Then:

dsh plugin --profile web add /path/to/amber-protocol-1.6.0.tgz
dsh plugin --profile web add /path/to/dsh-amber-protocol-1.6.0.tgz

Once 1.6.0 is published, plain dsh plugin --profile web add dsh-amber-protocol works without overrides.

Overlay patches

FilePurpose
amber-mcp.patch.ymlPath A — expose Amber governance tools via MCP server
amber-skills.patch.ymlPath B — expose Amber journey skills to the dsh agent
amber-full.patch.ymlA + B combined in one layer

Prerequisites (overlay only)

1. dsh installed: npm install -g @deepseek-ai/dsh (or npx @deepseek-ai/dsh) 2. A dsh profile: dsh --profile web auto-initializes on first use 3. This checkout: you need a local clone so the patch can point at scripts/amber-mcp.js and skills/ 4. Amber in the target repo (if it is not this checkout): node scripts/amber.js init --target <repo>

Overlay usage

Edit amber-full.patch.yml first: replace /path/to/amber-protocol with this checkout. --target is the repository Amber should govern (it may differ from this checkout).

Recommended — overlay at launch, leave the profile file untouched:

dsh --profile web --patch /path/to/amber-protocol/dsh/amber-full.patch.yml

Alternative — copy into the profile layer (overwrites an empty or existing cordis.patch.yml):

cp dsh/amber-full.patch.yml "$DSH_HOME/profiles/web/cordis.patch.yml"
dsh --profile web

The overlay patches use hardcoded absolute paths. Adjust the two paths in each patch file:

  • scripts/amber-mcp.js path: point to your amber-protocol checkout
  • skills path: point to the skills directory under the same checkout
  • --target path: the repository Amber governs (can differ from the

amber-protocol checkout)

HMR

dsh watches cordis.patch.yml for changes. Editing the patch file triggers hot-reload: the MCP client disconnects and reconnects, and skill directories are re-scanned — no restart needed.

Verified

  • MCP server responds to initialize + tools/list (10 tools)
  • Read-only tools (governance.report) execute directly (approvalRequired: false)
  • Mutating tools (session.start) fail-closed (approvalRequired: true, executed: false)
  • Skills match dsh SKILL.md frontmatter format (5 skills, kebab-case names)
  • dsh --dump-config composes the bundle layer with zero errors
  • npm pack --dry-run ships every declared asset (cordis.patch.yml, runtime.js,

README.md, LICENSE, package.json)