DeepSeek Harness Sidebar Mini-Game Plugin

Introduction

When developing agents with DeepSeek Harness, long-running Agents can easily cause distractions. Beyond checking the status bar, developers need a relaxing or stress-relieving entry point that doesn’t require leaving the main interface. Most existing solutions require opening an additional window or navigating to a separate page, which scatters attention and disrupts workflow continuity.

dsh-casual-games is a plugin that integrates multiple mini-games into the DSH sidebar, using a single card with a dropdown menu layout to switch between games without window switching. Below is an overview of its core features and usage.

Plugin Positioning & Maintenance

The plugin is maintained by windrover, open-sourced at version 1.5.9, and licensed under the MIT License. It integrates 9 classic mini-games into a fixed card at the bottom-left corner of the DSH sidebar, allowing game switching via a dropdown menu. It is highly integrated into the DSH native interface.

Core Features

Game List & Controls

Game Basic Controls
2048 Arrow keys to move, merge, and generate tiles. Displays score and best score in real time.
Tetris Click the board to start; ← → to move, ↑ / X to rotate, ↓ for soft drop, Space for hard drop, P to pause. Automatically pauses when leaving the tab.
Gomoku 15×15 board; play Black against the computer. Difficulty levels: Simple / Normal / Hard. Simple mode primarily uses random moves to avoid winning on purpose or making aggressive blocking moves.
Klotski Select a block, then click the target cell or use arrow keys to move; move “Cao Cao” to the bottom-center exit to complete the puzzle.
Snake Arrow keys / WASD to move, P to pause, Space to restart.
Schulte Table Click 1–25 in order; displays progress, elapsed time, and best record. Remaining numbers reshuffle every 4 seconds. Supports both square grid and rotating circular layouts.
Sudoku 9×9 grid with three difficulty levels, 60 puzzles total. Select a cell and enter 1–9, N to toggle pencil marks, Z to undo without losing pencil notes; arrow keys to move selection; highlighting options can be toggled off as needed.
Sokoban Classic 100-level box-pushing puzzle using 16×16 XSB format maps. Arrow keys / WASD to move and push boxes, R to reset the level, press Enter after completing a level to advance to the next.
Breakout Drag the paddle with mouse/touch, or use ← → / A D; Space to launch, P to pause. Uses a six-row brick layout.

Auto-Popup for Long-Running Agents

When any Agent runs for more than 3.5 seconds, the sidebar card will automatically expand once. It resets after the task finishes and respects manual minimization. This mechanism is implemented via the agent/status event and the GET /api/dsh-casual-games/status endpoint, working in conjunction with DSH’s Host connection gating mechanism.

Interaction & State Persistence

  • Keyboard handling: Games listen to the global keydown event when the card is focused, but if the currently focused element is an input field, textarea, dropdown, or editable region, key events return early, ensuring editor operations are unaffected.
  • Card interaction: A resize handle in the top-right corner allows dragging to resize the card (1×–2.2×); the scale ratio is persisted. Double-clicking the handle resets it to the default size.
  • State saving: Game state is managed by GameShell and persisted to localStorage['dsh.games.v2']; on each mount, the game sanitizes the saved state to prevent stale data interference.
  • Layout: The client module registers via shell.overlay; the card is fixed at left: 12px; bottom: 72px, 240px wide, with borderless scrollbars; all games mount in the same CSS grid cell to avoid height jumps.

Installation & Enablement

In the target DSH configuration directory, run:

cd ~/.dsh/profiles/<your-profile>
pnpm add github:windrover/dsh-casual-games

Then, in the corresponding configuration’s package.json, add dsh-casual-games to the dsh.profile.bundles array (or install via the DSH plugin manager). After installation, fully restart DSH to avoid module loading issues caused by client-side caching.

Typical Usage

  1. After installing and restarting DSH, a fixed card will appear at the bottom-left of the sidebar, displaying the first game by default.
  2. Click the handle in the top-right corner of the card to adjust the display size.
  3. Click the card content area to open the dropdown menu and select any game.
  4. Use the corresponding keyboard controls for each game to play; when typing in an input field or editor, the game automatically yields keyboard priority.
  5. During long Agent runs, the card will automatically expand to provide status feedback.

Use Cases & Notes

Ideal for developers who want to quickly switch between mini-games in the DSH sidebar to adjust their pace. The plugin runs with the current DSH process permissions. Before installing, it is recommended to review the source code and license (MIT) to ensure compliance with personal or team security and compliance requirements.

Conclusion

This plugin seamlessly embeds multiple games into the DSH sidebar through a single card and dropdown menu, providing a relaxing and stress-relieving entry point without interrupting the workflow. For more details and source code, visit:
- Plugin directory page: https://www.skillhub.cn/plugins/windrover/dsh-casual-games
- GitHub repository: https://github.com/windrover/dsh-casual-games

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye