DeepSeek Harness Plugin: dsh-wsl-db (Read-Only psql and redis-cli Probes)

Introduction

DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture. When developing agents, read-only probing of databases is a common requirement. The dsh-wsl-db plugin provides a solution for this, allowing queries to PostgreSQL and Redis via CLI tools.

Plugin Scope

This is a read-only psql + redis-cli probes plugin, maintained by user 173787247. It wraps common read-only commands for database clients and is suitable for connecting to databases for queries in a WSL environment.

Core Features

The plugin provides the following tools:

  • db_status: Provides CLI status checks and connection aliases.
  • db_psql: Supports SQL commands such as SELECT, WITH, SHOW, and EXPLAIN.
  • db_redis: Supports Redis commands such as PING, GET, INFO, and SCAN.

Installation and Enabling

The plugin is not included in the default install.sh and must be added manually. Run the following under the Web profile:

dsh plugin --profile web add github:173787247/dsh-wsl-db

Configuration Notes

Use named URIs in config.connections for easier management. The plugin prohibits arbitrary URL access by default, and redisHosts must specify a whitelist in the configuration.

Usage Examples

  • Use db_psql to run SELECT/WITH/SHOW/EXPLAIN.
  • Use db_redis to run PING/GET/INFO/SCAN…

Notes

  • The plugin is designed as a read-only probe.
  • Review the source code and license (MIT) before use.
  • The optional companion tool dsh-wsl-kit is used for batch linking and is located at dsh-wsl-kit/scripts/link-linux-plugins.sh.

Ecosystem Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye