Foreword¶
DeepSeek Harness (dsh) ships with the official React frontend by default: fully featured, but with a fixed UI style. If you want to replace the “AI coding agent console” with a self-contained pixel-style UI without touching the host’s core logic, and make it usable through both the desktop and browser paths, the community plugin dsh_theme_terraria (npm package name dsh-theme-terraria) offers a standard plugin route: it replaces or takes over the frontend with a single ~230 KB index.html file that has zero external JS dependencies, while still connecting to the host over JSON-RPC (HTTP) and WebSocket, keeping sessions, streaming output, tool approval, model switching, and other capabilities fully available.
The following describes the plugin’s positioning, capabilities, and installation method. Facts are based on the GitHub repository README; the maintainer is jiabei20031104, the SkillHub category is “Fun Dress-Up”, the version marked in the current README is 0.3.0, and the license is MIT.
What Is This¶
dsh_theme_terraria is a Terraria-themed plugin for dsh. It is not a pure skin that only changes CSS: the themed frontend connects directly to the host protocol, and once you fill in your DeepSeek API key you can have real conversations with the model.
The implementation follows the dsh plugin package specification: the entry point index.js exports apply(ctx), and cordis.patch.yml declares the dsh.bundle patch layer; the desktop version is installed into the desktop profile, and the browser version into the web profile, without directly modifying files inside the dsh installation directory. The plugin has been published to npm; installation by the package name dsh-theme-terraria is recommended.
The README states compatibility at the DeepSeek Harness Desktop 0.2.0-rc.2 level; the browser path requires a locally working dsh CLI (the dsh.cmd bundled with the desktop app is mainly for plugin management of the desktop profile, and does not handle dsh web).
Core Features¶
UI and Protocol¶
- Single-file delivery: The entire UI is inlined in
web/index.html, served by the plugin, with no runtime framework and no build step. - Real host capabilities: Session creation, message sending, streaming output, tool approval, model switching, and workspace management use the same transport layer as the official frontend.
- Concept mapping: Official Agent Presets correspond to “difficulty tiers” (Journey / Softcore / Mediumcore / Hardcore); sessions are called “Journey / Adventure”, tool approval is called the “Approval Slab”, and API key status is presented in the form of “Life Crystals” and similar (see the comparison table in the README for details).
Desktop and Browser Paths¶
| Environment | profile | Typical directory | How it takes effect |
|---|---|---|---|
| Desktop app (Electron) | desktop |
~/.dsh/profiles/desktop |
After host injection, the window navigates to dsh-app://app/terraria/theme.html?host=... |
dsh web |
web |
~/.dsh/profiles/web |
The patch replaces the official web frontend dist, default http://127.0.0.1:3080/ |
The desktop app only reads the desktop profile; installing the theme into the web profile will not re-skin the desktop window — this is a common pitfall emphasized in the README. The two paths do not affect each other.
Desktop: Takeover and Fallback¶
The desktop window has a hard-coded mapping to the built-in official frontend path. By default, the theme sets __TERRARIA_THEME__ via an injection line, and after a successful pre-check of /terraria/theme.html, performs a location.replace to the same UI as the browser path. If the theme page is unavailable or takeover is disabled, it falls back to “official UI + injected pixel skin” (skin/terraria.css) to avoid a blank screen.
Environment variables (must be set before starting the host; changing them at runtime has no effect):
| Variable | Effect |
|---|---|
DSH_TERRARIA_STANDALONE=0 (or off/false/no) |
Do not take over the window; only official UI + pixel skin |
DSH_TERRARIA_SKIN=0 |
Do not even load the injected skin |
On the desktop window, you can use the title screen’s “Switch back to official UI” or Alt+O to write localStorage['terraria.takeover']='0'; the browser path has no official React frontend to switch back to, so you must uninstall the plugin and restart dsh web.
Coexistence and Limitations¶
- The theme page is a self-contained frontend; during takeover it does not load
/plugins/*/client.js, so some client plugin UIs are invisible while takeover is active; if coexistence is needed, setDSH_TERRARIA_STANDALONE=0. - Installing multiple “dist-replacing” themes in the same profile is not recommended; when this plugin detects an existing
webRuntime, it skips delegation and logs awarn. - Installing the theme means allowing a ~4 KB injection script and a ~230 KB theme page to execute in the desktop window running as the operator; the README states that it does not read or print the API key, and the account snapshot goes through the same-origin
/terraria/accountendpoint behind a cookie fence.
Installation and Activation¶
Requirements¶
- DeepSeek Harness installed (desktop app or
dshCLI) - Node.js
^22.19 || >=24and pnpm (dsh pluginuses pnpm internally; if the desktop app bundles its own runtime, you do not need to install Node separately) - DeepSeek API key (required for conversations; some UI can still be browsed without a key)
After installing or upgrading the plugin, you must fully quit the desktop app before starting it again: the injection line is a one-time snapshot taken at host startup, and simply refreshing the window is not enough.
Desktop (desktop profile)¶
First fully quit the app (including the tray), then run the installation. The README uses Windows as an example, using the app’s built-in CLI (replace <DSH install directory> with the actual path; if dsh is already in PATH you can also use dsh directly):
& '<DSH 安装目录>\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop add dsh-theme-terraria
You can also search for dsh-theme-terraria in the in-app Plugin Hub to install it. When git is available, the README also provides the github:jiabei20031104/dsh_theme_terraria source; installing from GitHub may error out when git is not available, so the npm package name or the absolute path of a local repository should be preferred.
After installation, launch the app normally by double-clicking; the window should navigate to the terraria/theme.html route with the host query parameter. To uninstall and return to the official UI:
& '<DSH 安装目录>\resources\runtime\cli\bin\dsh.cmd' plugin --profile desktop remove dsh-theme-terraria
After uninstalling, it is likewise recommended to fully quit and restart.
Browser (web profile)¶
A CLI capable of running dsh web locally is required:
dsh plugin --profile web add dsh-theme-terraria
dsh web
The default address is http://127.0.0.1:3080/. When developing inside the deepseek-harness source tree, the README suggests prefixing the commands with pnpm (e.g., pnpm dsh plugin ..., pnpm dsh web).
To restore the official web frontend:
dsh plugin --profile web remove dsh-theme-terraria
Then restart dsh web.
Typical Usage¶
- Install the plugin into the corresponding profile as described in the previous section, then restart the host or run
dsh web. - Open the themed UI and click “New Session”; on first entry a settings dialog pops up — fill in
sk-...under “DeepSeek API Key” and save. The key is written to the host’s.dsh-home/.credentials.yamlviacredentials.set; the page does not persist the plaintext. - Once the HUD shows the API key is configured, type commands in the chat box to start a conversation.
- Switch Agent presets via the “Difficulty Tier”: Journey (standard), Softcore (code), Mediumcore (minimal), Hardcore (cordis); the plugin combination changes with the difficulty.
The README also has separate sections describing the visual design, 8-bit sound effects, hidden easter eggs, performance and accessibility guardrails; consult the repository documentation directly for details.
Use Cases and Notes¶
For whom: Developers already using dsh as a coding agent who want to switch their desktop or browser UI to a Terraria pixel style, and who accept the trust boundary of “replacing the frontend dist / desktop takeover”.
Please be aware before use:
- The plugin runs with the permissions of the current dsh process; before installing, it is recommended to read the source code and the MIT license, and understand the execution scope of the injection script and the theme page.
- The desktop and web profiles must be paired correctly; otherwise you will see “the plugin is installed but the UI has not changed”.
- The community directory SkillHub plugin page and GitHub are maintained by the community and have no official affiliation with DeepSeek / High-Flyer; star counts and other metadata are based on what each site displays at the time.
Conclusion¶
dsh-theme-terraria turns dsh’s Web UI into an installable Terraria pixel theme: a standard bundle patch, installation via the npm package name, dual paths of desktop takeover and browser dist replacement, plus a fallback to the official UI pixel skin on failure. If you want a wizard to accompany your coding inside Harness, you can install dsh-theme-terraria from the desktop or web profile, configure your API key, and switch presets by difficulty tier to get started.
- Directory page: https://www.skillhub.cn/plugins/jiabei20031104/dsh_theme_terraria
- Source code and documentation: https://github.com/jiabei20031104/dsh_theme_terraria