github / github/copilot-cli

More Verbose Token Information

Đang mở
#1,152 2 bình luận 6 reaction 0 người được giao Xem trên GitHub
area:models
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

### Describe the feature or problem you'd like to solve

Current token usage (/usage) only displays input, output, and cache tokens, along with the .jsonl files only displaying total token usage while prompts run.. Meanwhile claude cli is able to show their token usage as input, output, cache_read, cache_write. These numbers are also available in their session logs.

### Proposed solution

## Current
/usage
● Total usage est: 3 Premium requests
API time spent: 17s
Total session time: 1m 22.092s
Total code changes: +0 -0
Breakdown by AI model:
gpt-5.1 18.6k in, 59 out, 0 cached (Est. 1 Premium request)
claude-sonnet-4.5 102.0k in, 475 out, 50.2k cached (Est. 2 Premium requests)
## Proposed
● Total usage est: 3 Premium requests
API time spent: 17s
Total session time: 1m 22.092s
Total code changes: +0 -0
Breakdown by AI model:
gpt-5.1 18.6k in, 59 out, 0 read, 0 write (Est. 1 Premium request)
claude-sonnet-4.5 102.0k in, 475 out, 35.7k read, 14.5k write(Est. 2 Premium requests)

## Proposed additional logging
"usage":{"input_tokens":10,"cache_creation_input_tokens":5381,"cache_read_input_tokens":13513,"cache_creation":{"ephemeral_5m_input_tokens":5381,"ephemeral_1h_input_tokens":0},"output_tokens":3,"service_tier":"standard"}

### Example prompts or workflows

_No response_

### Additional context

_No response_

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.