[FEATURE] add time to JSONL "usage" property
Status Open
Maintainer reply None cached
Activity 3 comments · opened Jun 28, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
The JSONL log is useful. It records agent usage in tokens, but not the time Claude is "thinking". I would like that to be recorded in the JSONL log.
In Claude Code we frequently see status updates like this:
* Channelling… (2m 8s · ↓ 369 tokens)
and the tokens count shows up in the JSONL log, but the time Claude is "thinking" is not included, and it should be.
Proposed Solution
Existing usage property in example JSONL entry :
"usage":{"input_tokens":3,"cache_creation_input_tokens":37097,
"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":37097,"ephemeral_1h_input_tokens":0},
"output_tokens":3}
Add another item in this dictionary:
"usage":{"input_tokens":3,"cache_creation_input_tokens":37097,
"cache_read_input_tokens":0,"cache_creation":{"ephemeral_5m_input_tokens":37097,"ephemeral_1h_input_tokens":0},
"output_tokens":3,"duration_ms":3307}
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗