Troed Sångberg 36fcaa27a1 feat: v0.0.40 - per-slot PP calculation from /slots endpoint
- Fix PP calculation: use per-slot n_prompt_tokens during prefill state
  instead of global llamacpp:prompt_tokens_total from /metrics
- Add isPrefilling flag and prefill tracking state (slotId, capturedTokens, startAt)
- Add dedicated formatters: formatPps, formatTps, formatAvg, pad4
- Replace formatRate suffixes with raw number formatters
- Display: PP | TPS | AVG with fixed-width 4-char padding
- Slot polling every 2s with model query parameter
- Debug logging to /tmp/oc-ls-stats-debug.log
- Add .npmignore, TUIPLUGIN.md, test-debug-log.jsonl
- Update AGENTS.md with slot state phases, PP calculation docs
2026-06-13 22:52:31 +02:00
2026-04-04 17:24:59 -04:00
2026-06-13 21:15:31 +02:00
2026-04-05 02:34:21 -04:00

oc-tps

Displays live TPS (tokens per second), average TPS, and average TTFT (time to first token) in the OpenCode session prompt.

Demo

Installation

Install from the CLI:

opencode plugin oc-tps@latest --global

Requires opencode 1.3.14 or newer.

S
Description
No description provided
Readme
6.4 MiB
Languages
TypeScript 100%