Introduction¶
When using the DeepSeek Harness desktop version for long sessions, the main window typically only occupies part of the screen by default. Manually clicking maximize once after each launch is a small action for developers accustomed to fullscreen workspaces, but it still consumes attention repeatedly when frequently restarting or switching between multiple profiles. Window behavior in the DSH ecosystem can be extended by plugins; this plugin, without touching the Electron main process, uses system-level capabilities during the host loading phase to achieve the equivalent of “clicking the maximize button once”, targeting the desktop profile and scenarios where DSH runs via Electron / system windows.
What Is This¶
dsh-auto-maximize is published by maintainer FideFeiPlane and categorized as a client-side plugin. In one sentence: a DeepSeek Harness desktop plugin that automatically maximizes the main window at startup, with an effect equivalent to manually clicking the maximize button. Package version 1.2.0, license MIT; the GitHub mirror repository is FideFeiPlane/dsh-auto-maximize, and the main repository is on Gitee.
The plugin is host-only: it is loaded along with the desktop host process when the application starts. The host is a pure Node child process (ELECTRON_RUN_AS_NODE=1) that cannot access BrowserWindow, so it cannot call BrowserWindow.maximize(); the implementation path is “maximize” on a system-level window handle, rather than an Electron API.
Core Features¶
Platform Strategies (Best Effort)¶
Failures are only logged; the host does not crash.
| Platform | Approach | Dependencies and Notes |
|---|---|---|
| Windows | Prefer in-process FFI: use DSH’s built-in koffi to call the Win32 ShowWindow(hwnd, SW_MAXIMIZE); on failure, fall back to a pwsh 7 or Windows PowerShell 5.1 subprocess |
koffi ships with DSH; no additional permissions required |
| macOS | Set the window to the size of the primary display’s visible area; on failure, click the green AXZoomButton |
Requires osascript; “Accessibility” permission must be granted |
| Linux | Use wmctrl or xdotool to set _NET_WM_STATE_MAXIMIZED |
Tools usually need to be installed separately |
On Windows, the main window is located by matching the process image path with windows of the same executable; on macOS/Linux, the process name can be overridden via the processName configuration item.
Behavior Boundaries¶
- Only meaningful in the desktop profile; the web profile has no window, and the plugin silently skips.
- Executes only once at startup mount; it does not track window state manually changed by the user during a session.
- Can be disabled entirely via
enabled: false; on Windows,enginecan be used to troubleshoot betweenauto/ffi/powershell.
Installation and Activation¶
Recommended via the plugin market / npm (available after release):
dsh plugin --profile desktop add dsh-auto-maximize
For local development, reference it as a file: dependency in the profile directory’s (e.g., ~/.dsh/profiles/desktop) package.json, add dsh-auto-maximize to dsh.profile.bundles, run pnpm install, and then restart the DeepSeek Harness desktop version.
To uninstall, remove the package from both dependencies and dsh.profile.bundles, then run pnpm install and restart the application.
Typical Usage: Configuration¶
Simply override the auto-maximize entry in the profile’s cordis.patch.yml. The following example shows common fields (default values follow the README):
- id: auto-maximize
config:
enabled: true
engine: auto
timeoutMs: 5000
processName: 'DeepSeek Harness'
logKeepRuns: 5
logKeepLines: 200
| Configuration | Default | Description |
|---|---|---|
enabled |
true |
Plugin does not execute when false |
engine |
auto |
Windows: auto / ffi / powershell |
timeoutMs |
5000 |
Maximum time to wait for the window to appear after startup (milliseconds) |
processName |
executable name | Locates the window on macOS/Linux |
logFile |
~/.dsh/auto-maximize.log |
false disables logging; a string allows a custom path |
logKeepRuns / logKeepLines |
5 / 200 |
Log rotation |
macOS: DeepSeek Harness must be checked in “System Settings → Privacy & Security → Accessibility”; after granting permission, restart; when not authorized, the host log will contain dsh-auto-maximize related guidance.
No DSH restart needed for verification: turn the bundle off and on again in “Settings → Plugins”, which is equivalent to re-mounting and running the maximize action again; for diagnostics, check ~/.dsh/auto-maximize.log (on Windows: %USERPROFILE%\.dsh\auto-maximize.log).
Use Cases and Caveats¶
Suitable for developers who want the desktop version to fill the workspace immediately upon opening; not suitable for those who need a fixed small window or a web-only profile.
The plugin runs with the current DSH process privileges; it is recommended to review the repository source code and the MIT license before installing. Linux requires wmctrl or xdotool to be installed separately; when multiple instances are running, Windows distinguishes them by image and parent process PID, and on macOS/Linux with multiple windows, processName can be used to distinguish them.
The DSH community plugin directory (e.g., the entry on skillhub) is maintained by the community and is not officially affiliated with DeepSeek / High-Flyer; installation commands should follow the documentation text; do not construct github:owner/repo forms that do not appear in the materials yourself.
Conclusion¶
dsh-auto-maximize consolidates “click maximize on every startup” into a single configuration: host-side system calls, cross-platform fallbacks, and toggleable logging. It works out of the box by default, and cordis.patch.yml can be modified as needed. For more information, visit the plugin directory page and GitHub repository:
- Directory page: https://www.skillhub.cn/plugins/FideFeiPlane/dsh-auto-maximize
- GitHub: https://github.com/FideFeiPlane/dsh-auto-maximize