Nikodem5/dsh-web-terminal--packages-terminal ↗★ 4
@nikodem5/dsh-web-terminal
Multi-terminal workspace inside the DeepSeek Harness web GUI: draggable PTY windows for running several coding agents side by side, with one-click Claude Code and Antigravity CLI launchers, attention states, usage stats, command blocks and SSH.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add @nikodem5/dsh-web-terminal说明文档
阅读完整 README ↗Usage and the stats endpoint
The same settings file also sets Claude's statusLine to node lib/statusline.js /signal/usage (a few
times a second while a prompt runs, otherwise every refreshInterval seconds, 10 unless your own status line sets
one). The wrapper POSTs Claude's status JSON to /signal/usage (same secret header, same limits) and runs your
statusLine command from ~/.claude/settings.json (or $CLAUDE_CONFIG_DIR) with the same stdin, printing its
output, so your status line looks the same. It needs node on PATH; without it the entry is left out and your own
status line keeps working (/stats then reports statusLine.enabled: false).
GET /api/dsh-web-terminal/stats returns
{ ok, limits: { fiveHour, sevenDay: { usedPct, resetsAt /*ms*/, outAt /*ms forecast or null*/ } | null, sampledAt },
cost: { totalUsd, terminals }, tokens: { total, input, output, cacheRead, cacheCreation, asOf } | null,
statusLine: { enabled, reason } }
limitsare account-wide, from the newest status-line sample.outAtis when usage reaches 100% at the recent pace (last hour for 5h, last 24 h for 7d; the average since the window or the first sample when there is too little history),nullwhen the limit lasts until the reset or there is no pace.costsums the latesttotal_cost_usdof each live terminal that reported one.tokensis the lifetime total from~/.claude/stats-cache.jsonplus transcript usage in~/.claude/projects(sub-agents included) after the cache's last computed local day, de-duplicated by message id. Rescanned at most once a minute in the background;nulluntil the first scan finishes.- Limits and tokens are saved to
~/.dsh/web-terminal/usage.jsonso they survive a restart.