[PR #12823] feat(insight): Ensure insights template runs opencode stats. #14390

Open
opened 2026-02-16 18:19:11 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12823

State: open
Merged: No


What does this PR do?

Make the previously-added insights command actually collect real usage data by invoking the opencode stats tool so reports are evidence-backed rather than purely templated.

Updated the insights prompt template at packages/opencode/src/command/template/insights.txt to run opencode stats $ARGUMENTS inline (using the !backtick`` shell invocation) and include the raw output for analysis.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12823 **State:** open **Merged:** No --- ### What does this PR do? Make the previously-added insights command actually collect real usage data by invoking the opencode stats tool so reports are evidence-backed rather than purely templated. Updated the insights prompt template at packages/opencode/src/command/template/insights.txt to run opencode stats $ARGUMENTS inline (using the !backtick`` shell invocation) and include the raw output for analysis. **If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!** ### How did you verify your code works?
yindo added the pull-request label 2026-02-16 18:19:11 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14390