stardustlc666/dsh-sql
Engineer-level database plug-in: sql_list/query/exec/schema four tools, SQLite/MySQL/PostgreSQL three engines, multiple connections, read-only whitelist, write operation approval gate, row number clamp
dsh-sql gives the agent engineer-level database access from DSH: four tools covering connection management, read-only queries, write operations, and schema inspection across SQLite, MySQL, and PostgreSQL. Reads run against a configurable allowlist, writes pass an approval gate, and a maxRows cap (1-10000) bounds query results. Connections are declared in the plugin config (name, engine, host, database, optional env-var passwords like DSH_SQL_PASSWORD_PROD), so credentials never sit in plaintext config.
Install
dsh plugin --profile web add dsh-sqlnpm dsh-sql 0.4.0 verified 2026-09-01 (maintainer stardustlc; README has EN edition, repo stardustlc666/dsh-sql). Engineer-level database plugin verified on @deepseek-ai/dsh@0.1.2-alpha.2 (2026-08-31); follows the cordis patch model (cordis.patch.yml + dsh.bundle.patch) with no runtime imports of @deepseek-ai/* internals. Restart the web service after install; uninstall is dsh plugin --profile web remove dsh-sql.
Compatibility
DSH @deepseek-ai/dsh 0.1.2-alpha.2 (verified); SQLite / MySQL / PostgreSQL; cordis patch model.
Details
- Repo: stardustlc666/dsh-sql
- Category: Agent Capabilities
- Stars: 2
- Version: npm dsh-sql 0.4.0
- Last push: 2026-09-18
- First seen: 2026-08-14
Recent updates
SQLite/MySQL/PostgreSQL; 4 tools (connect/query/write/schema); read-only allowlist + write approval gate; maxRows cap; env-var passwords.
FAQ
- Which databases are supported?
- SQLite, MySQL, and PostgreSQL — declared per-connection in the plugin config with an optional maxRows result cap.
- Can the agent write to the database?
- Only through an approval gate; reads run against a configurable allowlist.
- How do I install it?
- dsh plugin --profile web add dsh-sql (npm 0.4.0) and restart the web service.
Alternatives
stardustlc666/dsh-voice · lql341/dsh-scnet · caoyiwei850/dsh-ssh-ops