DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Console Hub — DSH Plugin for DeepSeek Harness
← Plugins
C

dsh-console-hub

Console Hub

DSH plugin: session management for network device console-mapped ports (Telnet / Raw TCP) — configuration CRUD (sensitive information stored in credentials), connect/close/send/read, automatic pagination handling, model-side console_* tools, and approval interception for high-risk commands.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:RBkreb/dsh-console-hub#572d0e669292838235e754a6509efe1c5fc04c9e
READMECompatibilityVersions

Compatibility and provenance

Console Hub is published as dsh-console-hub and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
9/13/2026

Versions

0.1.0stable
9/13/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
9/20/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in

Related plugins

More verified plugins in developer-tools.

DSCODE@toddzheng024/dscode-bundleA complete DeepSeek coding agent with persistent shell, Ultra collaboration and automatic permission review.Plugindsh-pluginA community plugin marketplace for DeepSeek Harness, built to the official plugin spec — browse, search and install 9000+ human-curated community plugins without leaving the app. · DeepSeek Harness 社区插件市场(遵循官方开发规范):9000+ 人工精选社区插件,每日更新。Web App@deepseek-ai/dsh-web-appThe dsh browser-surface bundle: the web patch layer over dsh-base plus the runtime glue plugin (frontend dist serving, web-surface prompt, bash runtime variables, URL line)Sdk Minimal@deepseek-ai/dsh-sdk-minimalThe standalone minimal SDK profile bundle: JSON-RPC, one DeepSeek adapter, persistent shell, and JSONL sessions

README

dsh-console-hub

面向网络设备 console 映射端口(串口服务器 / 终端服务器)的 DSH 插件:经 Telnet 或 Raw TCP 连接设备控制台,提供会话管理、命令交互。

  • 插件类型:工具类
  • 包版本:0.1.0

前提条件

  • Node.js:^22.19.0 || >=24.0.0
  • Harness:@deepseek-ai/dsh^0.1.5-rc.1、@deepseek-ai/cordis ^4.0.2
  • 前置插件:dsh-better-sidebar ≥ 0.19

安装

dsh plugin --profile web add github:RBkreb/dsh-console-hub

安装后重启 dsh

服务 API / 扩展点

注册的模型工具

工具作用关键参数返回要点
console_list已连接控制台(全宿主共享池)—consoles[]:handle、label、地址、state、openedBy、dormant
console_list_views已配置设备清单—views[]:viewId、地址、凭据是否已配置
console_upsert_view新建 / 更新设备配置viewId?、name、host、port、kind、encoding、user、promptPattern、pagerPattern、pagingMode、tags、notes、passwordviewId、created、secretConfigured
console_remove_view删除配置及其凭据viewIdremoved、secretRemoved
console_connect连接设备viewId 或 host+port、kind、encoding、label、passwordhandle、state、banner、prompt、reused
console_send发送consoleId、text、submit、submitKey、encodingstate、written、pagingActive、dormant
console_wake回车唤醒控制台consoleIdanswered、dormant
console_read游标增量读consoleId、after、encoding、stripEcho、maxBytestext、cursor、truncated、prompt、dormant
console_wait_for等提示符 / 模式 / 静默consoleId、for(prompt/pattern/idle)、pattern、timeoutMs、after、idleMsmatched、reason、matchedText、cursor、dormantBlocked
console_close关闭并释放端口consoleId、forceclosed
console_describe控制台详情与发送审计consoleId字节数、prompt、分页状态、audit[]
console_clear丢弃本进程已读回显consoleIdcursor、droppedBytes

事件

本插件的监听与注册全部挂在 fiber 的 effect 上(端口管理器、策略 watcher、模型闸门、HTTP 路由),fiber 释放后回收。

  • inject: ['settings']——唯一硬依赖;
  • 按需注入:tools、systemPrompt、webServer;
  • 调用时读取:credentials、approval、connection、sessions;

配置项

插件行配置

字段类型默认说明
requestBodyLimitBytesnumber1048576插件 API 单次请求体上限
sessionIdleSweepMsnumber15000空闲控制台回收的扫描间隔
trustedHostsstring[][]非回环部署被访问的 host:port(或仅 host);未声明拒绝所有请求

设置文档

连接与读取:

字段类型默认说明
defaultKind'telnet' | 'raw'telnettelnet 剥离协商字节
defaultEncodingencoding 枚举utf-8utf-8 / gbk / gb18030 / big5 / shift_jis / euc-kr / latin1
connectTimeoutMsnumber8000socket 连接预算
readTimeoutMsnumber15000单次 read 等待新字节的时长
idleTimeoutMsnumber600000空闲控制台回收时长(不记保活)
maxConsolesnumber16并发控制台上限
outputLimitBytesnumber65536单次 read/wait 携带的字节上限
scrollbackLimitBytesnumber262144会话为游标保留的原字节数
idleQuietMsnumber1500for: "idle" 的静默窗口
views对象{}设备清单,字段同 console_upsert_view

分页、提示与休眠:

字段类型默认说明
pagingModepagingMode 枚举auto-more缺省分页反应:auto-more 发空格 / auto-quit 发 q / auto-interrupt 发 Ctrl+C / manual 无处理
pagingMaxPagesnumber50自动分页上限
pagingQuietMsnumber120分页命中后等待静默窗口
promptPatternstring(正则)同时接受 <...> / [...]缺省提示符模式,大小写不敏感
pagerPatternstring(正则)--More-- / more: / 按任意键等缺省分页正则
dormantPatternstring(正则)Vty connection is timed out. … Please press ENTER.设备半关闭标记
dormantAutoWakebooleantrue检测到半关闭标记时自动唤醒
dormantProbeMsnumber120000无输入保活间隔
wakeOnConnectbooleantrue连接自动输入回车

拦截与模型:

字段类型默认说明
approvalMode'always' | 'high-risk'high-riskalways 每条提问;high-risk 未命中规则放行
fenceRules规则数组回滚 + 重启两条 ask有序规则表,第一条命中即定;每条 { id, action, tokens, pattern, note },tokens 与 pattern 二选一
highRiskPatternsstring[][]遗留字段,仅保留旧式已声明的拦截
agentConsoleToolsbooleantrue是否注册 console_* 工具与 systemPrompt 段落
agentInstructionsstring''进模型提示段落的约定

拦截规则格式

动作:deny直接拒绝| ask人工确认| allow放行。

配置示例

# cordis.yml
- id: dsh-console-hub
  name: dsh-console-hub
  config:
    trustedHosts: [console.example.com:43120]
# 设置文档 
dsh-console-hub:
  fenceRules:
    - id: config-rollback
      action: ask
      tokens: configuration rollback
      note: 用保存的配置覆盖运行配置
    - id: no-erase
      action: deny
      pattern: erase\s+startup-config
      note: 抹掉已保存的配置
    - id: show-config
      action: allow
      tokens: show configuration
  approvalMode: high-risk

凭据

  • 存储:credentials seam 的 GrantRecord,key 为 dsh-console-hub/<recordId>
  • 覆盖:环境变量 DSH_CONSOLE_<RECORDID>(user:pass 或裸密码)优先于存储记录

已知限制

  • 仅 Telnet / Raw TCP;不支持 SSH 或串口直连
  • 提示符 / 分页 / 休眠靠正则识别,部分 CLI 需要调整
  • 控制台池全宿主共享、无会话隔离
  • 高危拦截只是防护栏不是沙箱,建议同时在设备侧限制权限

安全说明

  • 权限范围:对已配置设备发起出站 TCP;不执行 shell;无 PTY
  • 网络:插件 API 与内置 /api 共享 Host/Origin