rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Jfreey/dsh-opencode-go-usage
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A lightweight DSH plugin built for one job: showing your OpenCode Go usage. It adds one pill to the composer dock and one page to Settings — no other surface, no dependencies, no build step.


Go [bar] 5h 13% pill, left of the Turn-count
pill. The bar can be hidden, the level it tracks (5h / week / month) is
configurable, and it can rotate between levels on a timer.The repository is itself an installable bundle (package.json declares
dsh.bundle). Point the Harness plugin manager at this directory or the GitHub
repository. After installing, reload the page: the Go pill appears under the
composer and an "OpenCode Go" section appears in Settings.
Requires DeepSeek Harness 0.2.x (the dsh.client, ctx.slots and ctx.locale
contracts).
Resolved per request, in this order — no key needs to be written into the plugin:
config.apiKey on the plugin row, if set.config.apiKeyEnv (default OPENCODE_GO_API_KEY) — the
same key the Models page stores for the opencode-go provider.- id: opencode-go-usage
name: 'dsh-opencode-go-usage'
config:
apiKeyEnv: OPENCODE_GO_API_KEY # credential reference
# apiKey: oc_sk_... # literal key, not recommended
path: /dsh-opencode-go/usage # Host read-only route
cacheSeconds: 60 # host cache window, also the dock poll period
dock: true # dock pill on/off
bar: true # progress bar inside the pill
level: rolling # tracked level: rolling (5h) | weekly | monthly
rotate: false # rotate the tracked level
rotateSeconds: 5 # rotation period (minimum 2s), only with rotate: true
level also accepts week/w/周 and month/m/月; anything unknown falls back
to rolling. Changes require reloading the Harness (restart the app or re-enable
the bundle).
| Surface | Request | Behaviour |
|---|---|---|
| Dock pill | GET /dsh-opencode-go/usage |
Every 60s; served from the host cache while it is fresh |
| Panel "Refresh" | GET …?refresh=1 |
Skips the cache, queries upstream |
| Settings opened | GET …?cache=1 |
Uses whatever is cached, even if old; queries only when nothing was cached |
| Settings open | GET /dsh-opencode-go/usage |
Every 60s, same rhythm as the dock |
| Settings "Refresh" | GET …?refresh=1 |
Queries upstream immediately |
A credential change (credentials/reference-updated) drops the cache, so a new key
is read on the next request instead of showing the previous account's numbers.
GET /dsh-opencode-go/usage (?refresh=1 forces, ?cache=1 cache-only):
{
"ok": true,
"fetchedAt": "2026-11-04T12:40:00.000Z",
"credentialSource": "stored",
"dock": true,
"display": { "bar": true, "level": "rolling", "rotate": false, "rotateSeconds": 5 },
"servedFromCache": true,
"stale": false,
"usage": {
"rolling": { "status": "ok", "percent": 12.5, "resetsAt": "2026-11-04T17:33:21.000Z" },
"weekly": { "status": "ok", "percent": 4.1, "resetsAt": "2026-11-09T00:00:00.000Z" },
"monthly": { "status": "ok", "percent": 1.2, "resetsAt": "2026-12-04T12:23:50.000Z" }
}
}
Failures return { "ok": false, "error": { "code": "NO_KEY|UNAUTHORIZED|FORBIDDEN|TIMEOUT|NETWORK|UPSTREAM|SHAPE", "message": "…" } }.
https://opencode.ai/zen/go/v1/usage with the key you already
stored. The key never reaches the page: the browser only receives percentages
and reset times.--dsw-alias-*), so light and dark themes both
apply.MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。