dsh-storage-mysql
Run the following command in DeepSeek Harness:
dsh plugin install sandersyao/dsh-storage-mysql
Paste the following prompt into your AI chat to install this plugin:
Install the MySQL storage backend plugin by running dsh plugin install sandersyao/dsh-storage-mysql in DeepSeek Harness; the source is available at https://github.com/sandersyao/dsh-storage-mysql.
About this plugin
The default JSON-file storage in DeepSeek Harness hits its limits under multi-process loads, containerized rollouts, or production uptime requirements: file locks become a bottleneck, crash recovery is best-effort at best, and data is invisible to other processes. dsh-storage-mysql replaces that backend with a contract-equivalent MySQL/InnoDB implementation. Every write is a single atomic SQL statement—once resolved the row is durable, survives crashes and reopens, and is immediately visible across processes.
The plugin exposes the same KV surface as dsh-storage-json: loadAll returns a transactional snapshot, putRecord performs an upsert, deleteRecord is idempotent, setGlobal updates unit-level metadata, and close releases the handle. Connection settings are read entirely from environment variables or a .env file; independent STORAGE_ keys take priority and fall back to shared MYSQL_ keys so the plugin can coexist with dsh-credentials-mysql and dsh-session-persistence-mysql on a single connection. On startup it runs idempotent CREATE TABLE IF NOT EXISTS and validates the schema version, failing closed on any downgrade rather than silently migrating.
If you run DeepSeek Harness as multiple instances or in containers, already operate a MySQL estate, or simply want to move the storage layer from local JSON files to an ACID-guaranteed relational database without touching business code, this plugin is a drop-in backend switch.
Screenshots
Use Cases
- Replacing local JSON-file storage in multi-process or containerized deployments
- Requiring crash recovery and cross-process data visibility in production
- Co-locating with dsh-credentials-mysql and dsh-session-persistence-mysql on a shared MySQL instance
- Long-running services needing ACID durability guarantees
Best For
- DevOps engineers running DeepSeek Harness in production
- dsh plugin developers requiring ACID durability guarantees
- Engineering teams already operating MySQL infrastructure
Related Plugins
Memory layer for coding agents that indexes local session history and auto-recalls relevant context before edits, commands, and failures, with no manual search needed.
Traceable, searchable cross-session memory for AI agents that turns conversation knowledge into a typed knowledge graph and recalls relevant subgraphs instead of replaying full history, natively integrated with DeepSeek Harness.
Gives DSH AI cross-session long-term memory, to-do and skill management, plus multi-session orchestration, external AI delegation, and an infinite canvas that grows with you.
dsh-mnemon is a three-tier, pluggable, Agent-driven memory system for DeepSeek Harness, combining Runtime memory, Project Documents, and replaceable Memory Spaces with nine long-term providers.