A small, dependency-free toolkit for opencode: a night-shift session supervisor and a local usage console.
| Component | What it is | Where |
|---|---|---|
| Night Shift | opencode plugin — keeps armed sessions working while you sleep, then clocks off at an end time. Multi-session, busy-aware, an evidence-gated completion protocol, idle detection, zero dependencies, 37 tests. | packages/night-shift/ · npm opencode-night-shift (coming soon) |
| Console | Local web console — a cost ledger with DeepSeek official CNY pricing (cache- and peak-aware), per-round cost attribution, subagent roll-up, session analytics and night-shift controls. Reads your local opencode data only; no network calls. | dashboard/ |
Night Shift (plugin):
# in this repo
cp packages/night-shift/src/night-shift.js ~/.config/opencode/plugins/
# restart opencode; then arm sessions via the console or the config fileConsole (dashboard):
node dashboard/server.js # then open http://127.0.0.1:8787
# on Windows: dashboard\start.bat- Night Shift —
v0.1.0tagged, CI green (Linux + Windows × Node 20/22); npm publishing soon. - Console — open-source hardening in progress (auto-detected paths, schema checks, provider boundary).
MIT