OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Leeaoyin/dsh-data-cat
AI copilot style database manager plugin for DeepSeek Harness (DSH): browse and edit MySQL, PostgreSQL, Redis, and Elasticsearch data, manage databases, run and format SQL, export DDL/data, and query with an in-page AI copilot.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Leeaoyin/dsh-data-cat
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 简体中文
DshDataCat is a DeepSeek Harness (DSH) plugin that adds a AI copilot style database workspace to the sidebar. It runs in DSH Web and DeepSeek Harness Desktop (deepseek-harness-app) and supports MySQL, PostgreSQL, Redis, and Elasticsearch. It includes table browsing, type-aware cell editing with undo, database management, SQL Playground, data exports, and a page-scoped AI assistant.
Database connections are made by the DSH Host. The browser calls the Host through DSH's authenticated same-origin session.
Screenshots were captured before the DshCat → DshDataCat rename; some UI labels still show the previous name.
instance → database → table; click a database to expand its tables and click again to collapse.utf8mb4 with utf8mb4_unicode_ci.UTF8.确认删除<database-name>.mysql, information_schema, performance_schema, syspostgres, template0, template1NULL.Ctrl/Cmd + Enter runs the statement. The result pane can be resized or minimized.| Source | Browse tables/data | Filter and paginate | Cell editing | Create/drop databases | SQL execution | Export |
|---|---|---|---|---|---|---|
| MySQL | Yes | Yes | Tables with a primary key | Yes | Yes | DDL / DDL + data |
| PostgreSQL | Yes | Yes | Tables with a primary key | Yes | Yes | DDL / DDL + data |
| Redis | Keys virtual table | Key/type filter, pagination | No | No | Redis commands | Command script |
| Elasticsearch | Indices / Documents | Pagination | No | No | SQL / JSON DSL | Mapping / NDJSON |
mysql2, pg, redis, and @elastic/elasticsearch.deepseek-harness-app)This is the recommended method for the official DeepSeek Harness Desktop app. No standalone dsh command is required.
Install and open DeepSeek Harness Desktop.
Prepare the plugin directory:
git clone <repository-url> dshcat
cd dshcat
pnpm install
If you downloaded a source archive instead, extract it and run pnpm install inside the extracted dshcat directory.
In DeepSeek Harness Desktop, open Plugins and click Add plugin.
Select the dshcat directory containing package.json and cordis.patch.yml, then wait for installation.
Confirm that DshDataCat is enabled. Enable it from the plugin list if necessary.
Start a new session, or refresh/restart the app. DshDataCat appears in the sidebar.
Local directory installs are linked, so do not move or delete the dshcat directory after installation. If you move it, remove and re-add the plugin in Plugins. Run pnpm install in the directory after updating dependencies.
For DSH Web or a manually managed profile, use Plugins → Add plugin and select this directory. The internal bundle name remains @local/dshcat; the visible plugin name is DshDataCat. Open DshDataCat from the sidebar after starting a new session or refreshing the page.
client.js is loaded directly by the DSH Web client; there is no build step.
client.js, files under lib/, or other plugin files.Open DshDataCat → Add data source in the sidebar.
Choose a source type and enter a connection URL:
mysql://localhost:3306/app
postgresql://localhost:5432/postgres
redis://localhost:6379/0
http://localhost:9200
Username and password are optional. For Redis, /0 is the database index, not a path.
Save and connect, then choose a database and table.
Run SQL in SQL Playground, or open AI assistant from the page header and describe what you need.
Redis uses port 6379 by default. If the connection is refused, confirm that the service is running and the port is correct. DshDataCat now reports the target address and the underlying connection error.
Source settings are stored on the Host at:
DSH_HOME/dshcat/datasources.json
DSH_HOME defaults to ~/.dsh.
Passwords and URL credentials are stored in plaintext in that file. Restrict its permissions and never commit it, sync it, or include it in screenshots.
The browser receives sanitized source metadata. Credentials and database connections stay on the Host.
AI requests send the current schema and a few sample values to the current DSH default model. This can include Redis key/value previews and Elasticsearch sample documents. Switch to a non-sensitive database or avoid the AI assistant when that data must not leave the machine.
Writes, DDL, and Redis delete commands require confirmation before execution. You remain responsible for your databases.
DROP DATABASE statements targeting protected system databases are rejected by the Host, including statements from SQL Playground and AI-generated SQL.
dshcat/
├── index.js Host entry: registers /api/dshcat
├── lib/
│ ├── api.js Authenticated API dispatch, validation, result caps
│ ├── ai.js AI prompt, schema context, model call
│ ├── store.js Reads/writes DSH_HOME/dshcat/datasources.json
│ ├── sql.js Identifiers, filters, risk checks, SQL/Redis literals
│ ├── url.js URL parsing, sanitization, connection info
│ └── adapters/ MySQL / PostgreSQL / Redis / Elasticsearch adapters
├── client.js Web client bundle (UI, store, SQL editor, AI panel)
├── locale/ Plugin-list metadata (English and Chinese)
├── img/ README screenshots
├── icon.svg Sidebar icon
├── cordis.patch.yml DSH bundle insertion point
├── scripts/check.mjs Syntax check for all JavaScript files
├── package.json
├── LICENSE MIT license
├── README.md English README (default)
└── README.zh.md Chinese README
client.js is a single browser bundle using React.createElement and plain CSS. It intentionally has no build chain.COPY table in client.js; plugin-list metadata lives in locale/*.json. New features may require updating both.lib/adapters/index.js.pnpm install
pnpm check
pnpm check runs node --check on every JavaScript file in the repository; it does not start a database or DSH.
The repository does not include database integration tests. When changing an adapter, run a manual regression against temporary MySQL, PostgreSQL, Redis, and Elasticsearch instances covering connect, query, edit, and export flows.
Before committing:
node_modules/, .tmp*, logs, .env, or datasources.json.client.js loadable by the browser without Node built-ins (fs, path, etc.).--dsw-*) for UI styling instead of hard-coded light/dark colors.SCAN; page order can change when the keyspace changes. Key filters support contains/equals, and type filtering supports equality.db0, db1, … as databases and Keys as a virtual table. Elasticsearch displays indices as databases and Documents as a virtual table.sslmode / tls.ECONNREFUSEDConfirm that Redis is running and check the URL port. The default is 6379, not 3679. DshDataCat now shows the target address and the underlying connection error.
Check the Host, port, firewall, credentials, permissions, and whether the default database exists. Leave the default database blank or create it first when needed.
The AI entry point is in the DshDataCat header only. Configure the DSH default model and select an instance and database on the page.
Reload the DshDataCat plugin in Plugins, then refresh the page. The client bundle is loaded with the page, so reloading the plugin alone may not replace already-loaded JavaScript.
Issues and pull requests are welcome.
pnpm check before submitting.node_modules/, .tmp*, .env, or any datasources.json.Recommended topics for the repository's About → Topics section:
dsh
dsh-plugin
deepseek-harness
database-manager
mysql
postgresql
redis
elasticsearch
sql-editor
ai
Released under the MIT License.
Copyright (c) 2026 DshDataCat contributors CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: database。