DeepSeek Harness 插件

dsh-cxas

DeepSeek Harness plugin exposing the CX Agent Studio Scripting API CLI (cxas-scrapi / 'cxas') as model-facing tools: apps, deployments, evaluations, conversations, traces, tools, callbacks(英文原文)

跳到安装方式

来源信息

GitHub 仓库
Yash-Kavaiya/dsh-cxas
最近更新
2026年8月19日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
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/Yash-Kavaiya/dsh-cxas
插件名:dsh-cxas
作者:Yash-Kavaiya

检查来源文件

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

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

dsh-cxas

A DeepSeek Harness (DSH) tool plugin that wraps the CX Agent Studio Scripting API (CXAS SCRAPI) command-line tool (cxas) as structured, model-facing tools. It lets a DSH agent list apps, pull/push apps, run and export evaluations, list deployments, inspect conversations/traces, and interact with tools/callbacks/variables — directly through the cxas CLI.

> DeepSeek Harness plugin · category: Tools & Capabilities · license: > Apache-2.0 · install with the dsp CLI: > dsp install dsh-cxas

What it does

Each registered tool builds an cxas <command> argv, runs the binary as a subprocess on the host, and returns a canonical result with exitCode, stdout, stderr, and command so the model can reason about failures and continue.

ToolRuns
cxas_apps_listcxas apps list
cxas_apps_getcxas apps get <app>
cxas_createcxas create <name>
cxas_deletecxas delete <resource>
cxas_pullcxas pull <app>
cxas_pushcxas push
cxas_lintcxas lint
cxas_deployments_list / cxas_deployments_create / cxas_deployments_promotecxas deployments ...
cxas_run_evalcxas run <app>
cxas_eval_reportcxas evals report
cxas_eval_exportcxas export <evaluation_id>
cxas_push_evalcxas push-eval <file>
cxas_conversations_list / cxas_conversations_getcxas conversations ...
cxas_trace_list / cxas_trace_getcxas trace ...
cxas_tools_list / cxas_tools_deletecxas tools ...
cxas_callbacks_listcxas callbacks list
cxas_variables_listcxas variables list
cxas_helpcxas --help [topic]
cxas (passthrough)any cxas ... argv

Prerequisites

1. cxas-scrapi installed and on PATH:

``sh pip install cxas-scrapi cxas --help # verify it runs ``

2. Google Cloud application-default credentials (or a service-account key via the SDK):

``sh gcloud auth application-default login gcloud config set project <your-project> ``

Mounting the plugin

> Restart required. If a DSH web session is already running at > http://127.0.0.1:3080, you must stop it and relaunch with the overlay for > the new tools to appear. A running server does not pick up a new --patch.

Option A — quick overlay (--patch)

From the directory that contains dsh-cxas (e.g. the workspace root):

pnpm dsh web --patch C:/Users/yashk/Downloads/nvidia/NVIDIA-Nexus/dsh-cxas/cordis.yml
# or, if `dsh` is installed (not run-from-source):
dsh web --patch C:/Users/yashk/Downloads/nvidia/NVIDIA-Nexus/dsh-cxas/cordis.yml

Open http://127.0.0.1:3080 and ask the agent to, for example, “Use cxas_apps_list to list the apps in my project.” If port 3080 is taken by another instance, add --port 3090 --no-open.

The plugin name in cordis.yml is a file:// URL — on Windows the ESM loader rejects bare absolute paths like C:/.... If you move the plugin, update name to point at its src/index.ts as a file:// URL.

Option B — install into a profile (bundle)

The package also declares dsh.bundle, so it can be installed permanently:

dsh plugin --profile demo add ./dsh-cxas
dsh --profile demo

See [Publishing a bundle](../../docs/user/develop/basic/publish.md) for the build-script / prepare allowance notes if you install from git.

Verification

A standalone smoke test drives apply() with a stub tools registry and checks that the plugin registers all tools and that execute() successfully invokes the real cxas binary (no DSH boot or credentials required):

# from the deepseek-harness checkout root:
node --import tsx/esm C:/Users/yashk/Downloads/nvidia/NVIDIA-Nexus/dsh-cxas/test-load.mjs

Expected: registered 24 tools, cxas_help exitCode=0, and correct argv for cxas_apps_list, cxas_lint, and the cxas passthrough.

Configuration

KeyDefaultMeaning
cxasBincxasPath to the cxas executable.
projectFallback --project appended to commands that accept it.
locationFallback --location (e.g. global) appended to commands that accept it.
timeoutMs120000Timeout for one cxas invocation.

Set values in the config: block of your cordis.yml / cordis.patch.yml.

Notes & limitations

  • The plugin shells out to the host cxas binary; it does not bundle or

authenticate to Google Cloud itself.

  • Tool parameter sets are a curated subset. For an unmapped command, use the

cxas passthrough tool (its args array is passed through verbatim), or call cxas_help first to confirm exact flags.

  • Mapped flag names are best-effort against the current CLI surface; if a flag

is rejected, consult cxas_help and use the passthrough tool.

Model Experience

Indirectly, through the tool schemas it registers: every tool contributes its name, description, and parameter schema to the assembled system prompt, and its output.render produces the model-facing result text. No additional prompt sections are injected beyond the tool catalog itself.

#### KV Cache effect

Does not invalidate a reusable prefix. The plugin adds no request-prefix content at boot; the only model-visible text is per-call tool description and result content, which is data-dependent and independent of prior requests.