opencode
opencode copied to clipboard
[Feature Request] Implement /stats command for visual usage insights (similar to Claude Code)
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Feature Request:
I would like to request a visual statistics dashboard command (e.g., /stats), similar to the one implemented in Claude Code.
Like this:
Proposed Functionality:
When the user runs /stats, the interface should display a visual overview of their coding activity, including:
- Activity Heatmap: A GitHub-style contribution graph showing usage intensity over the last few months.
-
Usage Metrics:
- Total tokens used (e.g., "19.9m").
- Favorite model usage.
- Active days and current streaks.
-
Session Insights:
- Longest session duration.
- Peak coding hours.
- Fun comparisons (e.g., "You've used ~27x more tokens than War and Peace").
Why this is useful:
- Transparency: Helps users track their API/Token consumption easily.
- Gamification: Streaks and stats encourage users to stay engaged with the tool.
- Insight: Helps users understand their peak productivity times.
This feature adds a polished, professional feel to the tool and greatly enhances the user experience.