Repository navigation
v0.1.6 - Multi-agent TPS Tracking
What's New
Multi-Agent TPS Tracking
- Per-agent display: Each background agent (explore, librarian, etc.) now shows its own TPS instead of combined values
- Agent name caching: Uses
info.agentfrommessage.updatedevents for proper labels - Explicit primary session: Stores primarySessionId instead of iteration-based detection
- Show/hide logic: Main TPS line hidden when only background agents are active
TPS Spike Prevention
- 3-level burst smoothing:
- Normal streaming: 500ms half-life
- Medium bursts (50-200 tokens): 3000ms half-life
- Large bursts (200+ tokens): 5000ms half-life
- Initial TPS cap: Max 100 TPS on first reading to prevent startup spikes
UI Improvements
- Shorter IDs: Reduced from 8 to 4 characters for more compact display
- Timer-based fallback: Shows TPS after 250ms even if stream pauses
Testing
- Added 33 comprehensive tests for multi-agent scenarios
- All tests passing
Installation
npm install opencode-tps-meter@0.1.6Or in OpenCode config:
{
"plugins": ["opencode-tps-meter@0.1.6"]
}