You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’d like opencode to provide detailed telemetry for each interaction with the model so I can see exactly what is sent and received. Specifically:
Per-request and per-response token counts.
A breakdown of the input composition (prompt/system/instructions/user messages, tool calls, agent/subagent messages, and any injected context).
Visibility into response tokens and any truncation or context-window warnings.
Option to enable/disable verbose logging and to redact sensitive user content. This will help tune agents/subagents and manage context size to reduce costs and avoid hitting token limits.
Priority: Medium — useful for debugging and cost optimization.
Possible implementation notes: expose structured logs or a debug mode that outputs a JSON telemetry object per interaction with fields such as total_tokens, prompt_tokens, completion_tokens, messages[], truncated (bool), and redaction markers.
From what I've check the current logs (even in debug mode) don't include all information.
Is this mode already supported ?
jamescorbett, rfhold, Clete2, booya, jeantil and 5 more