rtk-ai/rtk
在 GitHub 查看Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze)
Open
#1,098 建立於 2026年4月9日
area:clieffort-mediumenhancementhelp wantedpriority:medium
倉庫指標
- Star
- (48,085 star)
- PR 合併指標
- (平均合併 11天 1小時) (30 天內合併 45 個 PR)
描述
Feature Request: Flutter & Dart Support
Context
I'm using RTK extensively and ran rtk discover, which showed significant missed savings from Flutter and Dart commands.
Unhandled Commands
- flutter pub (30x)
- flutter analyze (30x)
- dart analyze (5x)
Example usage:
- flutter pub get 2>&1
- flutter analyze --no-pub 2>&1
- dart analyze lib/... 2>&1
Problem
These commands generate large outputs, especially:
- flutter analyze → very verbose lint + diagnostics
- dart analyze → similar static analysis output
Currently RTK does not optimize or filter these outputs, leading to unnecessary token usage.
Suggested Solution
Add support similar to existing commands like rtk grep / rtk read, for example:
-
rtk flutter analyze- Summarize issues (errors, warnings, info)
- Group by file
- Collapse repeated diagnostics
- Show counts + top issues
-
rtk flutter pub- Filter install logs
- Highlight only:
- errors
- dependency conflicts
- version changes
-
rtk dart analyze- Same approach as flutter analyze
Expected Benefit
From rtk discover:
~65 executions → significant token savings (flutter analyze alone is very heavy)
Additional Notes
Flutter/Dart workflows are common, so this could benefit a large number of developers using RTK.
Happy to help test or provide sample outputs if needed.