LJH-snow/dsh-tool-sql

LJH-snow★ 0TypeScript最后同步: 2026-08-14

在 GitHub 打开

README 摘要

dsh-tool-sql English 中文 A Cordis tool plugin that gives DeepSeek Harness ( dsh ) read-only SQL capabilities. Agents can query data, list tables, and inspect table schemas on PostgreSQL and MySQL in natural language — with a safety-first model that rejects write statements by default. Built on the official "everything is a plugin" architecture via ctx.tools.register(defineTool(...)) , following the official adding-a-tool contract. Install Install directly from GitHub (no npm publish needed): Or from a local checkout: Once published to npm, it will also be installable as npm install @libai168/dsh-tool-sql . Requires @deepseek-ai/cordis (^4.0.1) and @deepseek-ai/dsh-tools (^0.1.0-rc.6) as peer dependencies, provided by the host dsh runtime. Configuration Load the plugin in a dsh composition config ( cordis.yml ): Full example: examples/cordis.yml. Security: the plugin enforces read-only by default. Only SELECT / EXPLAIN / SHOW / DESCRIBE / WITH / PRAGMA / VALUES statements are allowed; write keywords (INSERT/UPDATE/DELETE/DDL...) are rejected. Credentials are read from plugin config only and are never printed or logged. Tools Tool Description sql query Run a read-only SQL query, retur…

在 GitHub 查看完整 README →
Agent/智能体agentcordisdatabasedeepseek-harnessdsh-pluginsql

分类