Introduction¶
When developing agents with DeepSeek Harness, if you have an OpenCode Go subscription, keeping track of the 5-hour rolling limits, weekly limits, and monthly limits often requires checking the OpenCode Console page. With the Harness window open, switching to a browser to check usage can disrupt your workflow. This article introduces the community plugin dsh-opencodego-status, which adds a floating overlay to the Harness Web UI, displaying all three limit percentages and reset information in a single interface.
What is this¶
dsh-opencodego-status (GitHub: Assidefok/dsh-opencodego-status) is a client-side plugin released by maintainer Assidefok. It provides a floating layer on the DeepSeek Harness Web UI that displays the 5-hour rolling limits, weekly limits, and monthly limits for an OpenCode Go subscription. The data is sourced from OpenCode Console Go subscription metering, originating from the same source as the Console page.
Core Features¶
The capabilities listed in the README are as follows, all of which can be verified against the repository documentation.
- Collapsed Pill: Displays usage percentages for the three categories (
5h · 7d · 30d) in the corner. A color dot appears next to each limit; usage turns to a warning color starting at 60% and an error color starting at 80%. It also displays a countdown for the weekly limit reset. - Expanded Card: For each limit, displays a progress bar, a
resets in/renews incountdown, Refresh, Sign out, and a link to the OpenCode console. - Device Code Login: Initiates the connection within the overlay; a short code is displayed on the card. You approve the device in your browser, avoiding password entry within the overlay.
- Silent Token Refresh: The local session automatically refreshes before expiration.
- Chinese/English Interface: Follows the Harness locale service.
- Theme Adaptation: Colors and borders utilize Harness theme tokens, ensuring consistency with the host’s light and dark themes.
If the OpenCode session is not saved, it displays Not connected; if the subscription is missing or the API changes, it enters an error state.
Environment and Dependencies¶
- DeepSeek Harness Web UI 0.2.x.
- A valid OpenCode Go subscription; the overlay reads the Go plan metering.
Installation and Enablement¶
Execute the official installation command in the terminal (from the README):
dsh plugin --profile web add github:Assidefok/dsh-opencodego-status
After installation, refresh the Harness Web UI, and a small pill will appear in the top right corner of the window.
The plugin runs with the permissions of the current DSH process; it is recommended to review the repository source code and the MIT license before installation to ensure the behavior meets your expectations.
Connecting OpenCode¶
- Click the pill, then click Connect.
- The card displays a short code (e.g.,
GNNM-XQHS) and an Open approval page button; approve the device in your browser. - Once confirmed by the Console, the overlay will display real-time usage.
The session is stored in $DSH_HOME/opencodego-status/state.json (permissions 0600; $DSH_HOME defaults to ~/.dsh). Sign out within the card deletes this file. Tokens are sent only to opencode.ai; the browser-side overlay does not hold the access token.
Configuration¶
In the Harness profile’s cordis.patch.yml, the corresponding bundle line can be written as:
- id: opencodego-status
name: dsh-opencodego-status
config:
enabled: true # hide the overlay without uninstalling the bundle
position: top-right # top-right | top-left | bottom-right | bottom-left
refreshSeconds: 60 # 15 – 3600
showResets: true # show reset countdowns
enabled: false hides the overlay without uninstalling the bundle; the value range for refreshSeconds is 15–3600.
How it Works (Brief)¶
- Host Side (
index.js): Registers the prefix route/api/opencodego-statusto communicate with the OpenCode Console: device authorization and refresh (/console/auth/device/code,/console/auth/device/token) as well as/console/api/go/status. - Client Side (
client.js): Registers an item in theshell.overlayslot, polling/api/opencodego-status/statuswithout touching the access token. - No additional dependencies and no build steps; the client is pure JavaScript, with React sourced from the Harness browser module table.
The README notes that Console-related endpoints are not publicly documented APIs; if OpenCode changes its interface, the overlay will degrade to an error state with a Retry option, rather than crashing the entire Web UI.
Use Cases and Notes¶
Suitable for users who frequently develop within the Harness Web UI and need to keep an eye on the three types of OpenCode Go limits. Community plugin directories (such as the entry on SkillHub) are independent ecosystem sites and have no official affiliation with DeepSeek or High-Flyer.
For installation commands, configuration fields, and behavior, please refer to the GitHub repository: https://github.com/Assidefok/dsh-opencodego-status.