DeepSeek Harness plugin

identity-sentinel

Performance-art dsh plugin: the machine inspects its owner; non-Chinese verdicts terminate all workflows. Installing = informed consent.

Jump to install

Source facts

Repository
dsh-io/identity-sentinel
Latest update
Aug 17, 2026
Category
Tools & Capabilities
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/dsh-io/identity-sentinel
Plugin: identity-sentinel
Author: dsh-io

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

Identity Sentinel · 身份哨兵

> ⚠ CONSENT / 知情同意: Installing this plugin means you have read this README and agree: > the plugin inspects your machine's local signals (locale, language, timezone, keyboard layout, > region format — all purely local, zero network requests). If the composite verdict is > "not Chinese" (mainland / Hong Kong / Macau / Taiwan), the plugin terminates all workflows. > If the verdict is Chinese, it does nothing. 安装本插件即视为已知情并同意上述行为。

THIS IS A PERFORMANCE ART PIECE. This is not security tooling and not policy. It is a mirror held up to the idea that a machine can — or should — judge the nationality of its operator.

How it works

1. On startup the plugin collects four local signals — never sent anywhere: - locale — system language / locale (LC_ALL, LC_CTYPE, LANG, Intl locale) - timezone — e.g. Asia/Shanghai, Asia/Hong_Kong, Asia/Taipei, Asia/Macau - keyboard — keyboard layout (XKBLAYOUT on Linux, defaults on macOS, registry on Windows) - region — region part of the Intl locale (CN, HK, MO, TW) 2. Signals are aggregated into an identity profile with a confidence score. 3. A weighted rule engine renders a verdict: - non-cn signals >= threshold (default 2) and forceTerminate on → terminate - otherwise → pass (nothing happens) 4. On terminate: an art banner, the manifesto, and a termination declaration are printed; the process exits with code 1. On pass: a banner is printed and a single introspection tool (system_identity) is registered — nothing else changes.

Ambiguous or undetectable signals never count toward the threshold. Each failing collector degrades gracefully and is logged.

Install

# via the dsh plugin manager
dsh plugin add <path-to-this-package>

# or with a patch overlay on the web profile
npx @deepseek-ai/dsh --profile web --patch <abs-path>/cordis.patch.yml

pnpm users need the upstream peer fix (the official latest train still declares the unpublished @deepseek-ai/dsh-type-meta — see deepseek-harness discussion #2862):

# pnpm-workspace.yaml
overrides:
  "@deepseek-ai/dsh-type-meta": "npm:@deepseek-ai/dsh-invariants@0.0.1-rc.1"

Tool

system_identity — asks the machine for its current verdict about its owner: identity (cn / non-cn / unknown), action, confidence, and the full signal list.

Embed

The core is a zero-dependency pure-function library — import it from any project:

import {
  collectSystemLocale, collectTimezone, collectKeyboard, collectRegion,
  aggregateIdentity, decide, renderArt,
} from '@dsh-io/identity-sentinel'

Configuration

OptionTypeDefaultMeaning
thresholdnumber2Non-CN signals required to terminate
artModebooleantruePrint the art banners
forceTerminatebooleantrueActually exit (code 1) on a non-CN verdict; false = banners only

License

MIT © 2026 dsh-io