opencode-usage-coach 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -10
- package/dist/tui.js +0 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,15 +13,16 @@ the loop** — and ships a harness agent mode + a deterministic orchestrator.
|
|
|
13
13
|
- Senses z.ai quota windows via the `codexbar` CLI.
|
|
14
14
|
- On STOP threshold: blocks tool calls (`tool.execute.before` throws) → the agent self-stops.
|
|
15
15
|
- Injects coaching (how to use right now) into the system prompt (double defense).
|
|
16
|
-
- Surfaces a sidebar panel: quota meters + harness task states +
|
|
16
|
+
- Surfaces a sidebar panel: per-provider quota meters + harness task states + coaching.
|
|
17
17
|
- Defensive: any plugin error never breaks opencode.
|
|
18
18
|
|
|
19
|
-
**Harness (
|
|
20
|
-
-
|
|
21
|
-
unclear → clarify; substantive → generate
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
**Harness (agent mode, 1 terminal):**
|
|
20
|
+
- The `usage-coach-harness` agent triages each request — trivial → do directly;
|
|
21
|
+
unclear → clarify; substantive → generate→grade→revise→advance.
|
|
22
|
+
- Multi-model via plugin tools `generate`/`grade`: run the configured generator/grader model
|
|
23
|
+
(from `harness.config.json`) in a new session on the same server — no second terminal.
|
|
24
|
+
e.g. GLM generation + free mimo grading in one opencode session.
|
|
25
|
+
- Reports progress via `task_update` → the sidebar panel shows live task states.
|
|
25
26
|
|
|
26
27
|
## Requirements
|
|
27
28
|
- opencode (tested on 1.17.13) with a z.ai coding-plan provider configured.
|
|
@@ -118,8 +119,8 @@ opencode's bundled solid); TUI plugins must be compiled + loaded via `tui.json`
|
|
|
118
119
|
`codexbar` must be called via `spawn` (the `$` BunShell leaks output to the TUI).
|
|
119
120
|
|
|
120
121
|
## Status
|
|
121
|
-
- ✅ M0–M2 quota guardian + TUI panel
|
|
122
|
-
- ✅ M3 harness: agent mode (triage)
|
|
123
|
-
-
|
|
122
|
+
- ✅ M0–M2 quota guardian + TUI panel (per-provider coach view, colors, collapsible Alt+H)
|
|
123
|
+
- ✅ M3 harness: agent mode (triage) with generate/grade model-specific tools (1 terminal, multi-model)
|
|
124
|
+
- ✅ M4 npm packaging (`opencode plugin install opencode-usage-coach`)
|
|
124
125
|
|
|
125
126
|
License: MIT.
|
package/dist/tui.js
CHANGED
|
@@ -379,17 +379,6 @@ function initializeTui(api, disposeRoot) {
|
|
|
379
379
|
return _el$72;
|
|
380
380
|
})();
|
|
381
381
|
}
|
|
382
|
-
},
|
|
383
|
-
home_footer(ctx) {
|
|
384
|
-
try {
|
|
385
|
-
return panel(ctx);
|
|
386
|
-
} catch {
|
|
387
|
-
return (() => {
|
|
388
|
-
var _el$74 = _$createElement("text");
|
|
389
|
-
_$insertNode(_el$74, _$createTextNode(`usage-coach`));
|
|
390
|
-
return _el$74;
|
|
391
|
-
})();
|
|
392
|
-
}
|
|
393
382
|
}
|
|
394
383
|
}
|
|
395
384
|
});
|
package/package.json
CHANGED