Skills Plugins MCP Prompt Model 导航 博客 资讯 我的中心
工具与能力 #deepseek-harness#dsh#dsh-plugin#glm#persona#system-prompt

dsh-zcode-persona

Make the model believe it is inside the Z.ai Code (Zhipu ZCode) agent environment: replaces the harness identity opener and injects a ZCode rules skeleton with a dynamic project section. 让模型认为自己处于智谱 ZCode Agent 环境。

flashyiyi @flashyiyi ⬇ 1 ★ 0 master

安装

dsh plugin --profile web add github:flashyiyi/dsh-zcode-persona
下载安装清单

需要可复现安装时,可在仓库后追加 #commit 固定提交。

Make the model believe it is inside the Z.ai Code (Zhipu ZCode) agent environment: replaces the harness identity opener and injects a ZCode rules skeleton with a dynamic project section. 让模型认为自己处于智谱 ZCode Agent 环境。

该插件未提供要点说明,请参考仓库 README。

deepseek-harnessdshdsh-pluginglmpersonasystem-prompt
  1. 安装并启动 DeepSeek Harness:npx @deepseek-ai/dsh web
  2. 在终端执行上面的安装命令(CLI 会解析插件并核验来源)
  3. 用 dsh plugins list 确认已安装,必要时重启 Harness 生效

插件以当前 dsh 进程的权限运行,安装时可能执行代码。请先通读仓库源码与许可证,确认无破坏性命令与越权访问;本站只做索引,不对第三方插件安全性作担保。

代码仓库github.com/flashyiyi/dsh-zcode-persona
许可证未标注(见仓库)
主要语言master
下载量1
GitHub 星标0
最近推送2026-09-06
收录日期2026-09-19
分类工具与能力

事实信息来自公开插件目录快照(2026-10-01),介绍文案由本站再加工。

以下为插件仓库 README 全文(原始内容,由公开目录抓取整理)。

# dsh-zcode-persona

Provisions a **ZCode-identity** GLM Coding Plan channel for DeepSeek Harness so the Zhipu gateway recognizes the DSH client as ZCode, activating the official limited-time perk: equivalent model calls deduct only **67%** of quota (i.e. **1.5×** usable quota). **No prompt/persona changes** (the server-side check only looks at request characteristics, not the system prompt).

[English](README.md) | [简体中文](README.zh-CN.md)

## Mechanism & evidence

Zhipu's docs ([docs.bigmodel.cn → GLM Coding Plan → ZCode](https://docs.bigmodel.cn/cn/coding-plan/tool/zcode)) state that GLM Coding Plan users signed in via ZCode enjoy an all-day 1.5× usage allowance (67% deduction). **The check happens server-side on HTTP request characteristics.** Field-level evidence for the identity headers:

- [TriDefender/zcode-api](https://github.com/TriDefender/zcode-api): `src/proxy/identity.ts` mirrors the ZCode bundle's `pio` field-for-field (refreshed 2026-08-07); the README says *"it's all about the 1.5x usage on frontier models"*;
- [LINUX DO t/2531858](https://linux.do/t/topic/2531858): reusing ZCode request headers in another client, the perk applied.

After `ready`, this plugin idempotently writes one provider into the `llm-pi-ai` settings namespace via the `ctx.settings` seam (default key `zai-coding-cn`, pointing at the domestic endpoint `https://open.bigmodel.cn/api/coding/paas/v4`), with requests carrying the full ZCode identity header set: `HTTP-Referer`, `X-ZCode-App-Version` (default `3.11.2`), `X-Title: Z Code@cli`, `X-ZCode-Agent: glm`, `X-Platform`, `X-Release-Channel: production`, `X-Client-Language`, `X-Client-Timezone`, `X-Os-Category`, `X-Os-Version`, `X-Device-Mid` (stable host-fingerprint-derived UUID). The write is a **path-level mutate** — only the provider key is added; existing providers (`doubao`, `opencode-go`, …) are never touched. The write passes through llm-pi-ai's own schema and serviceability validation; a refusal leaves existing routes untouched. pi-ai ships the `zai-coding-cn` catalog (`thinkingFormat: zai` wire compatibility is inherited); models missing from the catalog (`glm-5.3`, `glm-5.3-flash`) are declared with full specs.

**Known boundary**: DSH enforces product-attribution `User-Agent` (dsh-llm `attributionHeaders`); `llm-pi-ai` strips `user-agent` from profile headers and substitutes the harness UA. So `User-Agent: ZCode/…` cannot be delivered via configuration; every other ZCode-specific header passes through. Whether the gateway fingerprint accepts this needs a live check; if not, a local reverse proxy restoring the UA is required (not built into this plugin).

## Configuration (reload the plugin after changing)

| Key | Default | Meaning |
|---|---|---|
| `codingPlan.enabled` | `true` | Provisioning master switch. |
| `codingPlan.providerKey` | `zai-coding-cn` | `llm-pi-ai providers` dict key (route id). |
| `codingPlan.apiKeyEnv` | `GLM_CODING_API_KEY` | Env-var reference for the Coding Plan API key. |
| `codingPlan.displayName` | `GLM Coding Plan (ZCode)` | Name shown in the model settings UI. |
| `codingPlan.appVersion` | `3.11.2` | `X-ZCode-App-Version`; update to the real client after upgrading ZCode. |
| `codingPlan.sourceTitle` | `cli` | `X-Title: Z Code@{sourceTitle}`. |
| `codingPlan.deviceMid` | `''` | `X-Device-Mid`; empty derives a stable host-fingerprint UUID. |
| `codingPlan.baseURL` | `https://open.bigmodel.cn/api/coding/paas/v4` | Domestic Zhipu Coding Plan OpenAI-compatible endpoint. |
| `codingPlan.models` | `DEFAULT_MODELS` in source | Model list served by this route (replaces the catalog). |

## Usage & verification

> ⚠️ If the plan is currently at its **5-hour cycle quota limit**, wait for the cycle to reset before firing observable billing requests (official: quota refreshes 5 hours after consumption).

1. After provisioning, pick `glm-5.3` / `glm-5.2` etc. under the `GLM Coding Plan (ZCode)` provider in Settings → Models;
2. Set the env var `GLM_CODING_API_KEY=` (generated on the Zhipu open platform Coding Plan page; requires an active [GLM Coding Plan](https://z.ai/subscribe) / [bigmodel](https://www.bigmodel.cn/coding-plan) subscription);
3. After the quota resets, fire some real requests and check [usage](https://www.bigmodel.cn/coding-plan/personal/usage): quota should be deducted at **67%** (equivalent 1.5×). If it deducts at 100%, the gateway fingerprint checks more than these headers (e.g. User-Agent), and a local reverse proxy restoring the full UA is required.

> ⚠️ Zhipu enforces risk controls on plan usage (shared accounts and abnormal clients may trigger verification, throttling, or bans — see LINUX DO discussions). Personal use, low concurrency, and a genuine Coding Plan subscription are the baseline.

## Compliance

Intended for behavior customization of your own subscription, research, and testing. Impersonating ZCode or any other brand to serve others or to bypass upstream service restrictions is at your own risk; please honor Zhipu's terms of service.

## Build

```bash
DSH_CHECKOUT= bash scripts/build.sh
```

数据来源:公开的 DeepSeek Harness 插件目录与各插件 GitHub 仓库。本站为独立第三方目录,与 DeepSeek、幻方(High-Flyer)及插件作者均无隶属或背书关系。

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。