You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for Flutter & Dart commands (flutter pub, flutter analyze, dart analyze) #1098
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.
Reacted by Andrii Banyk, Paul Zarudnev, fiatcode, Douglas Brito de Medeiros, LucasRibP, CrystailX, Mouad Zizi, thangdao, Dariusz Mikulski, Johannes Vedder and 11 more
Reacted by Steven Barragán Naranjo, Vivek Kartha and Quentin Klein
Reacted by KIRILL GOLIKOV and qqtb
Reacted by Steven Barragán Naranjo and Quentin Klein
Feature request to add RTK support for flutter pub, flutter analyze, and dart analyze commands; already being addressed by PR #1128 which includes flutter/dart support.
Triaged automatically by wshm · This is an automated analysis, not a human review.
Flutter 3.41 / Dart 3.11 monorepo (iOS + Android), Bun + Elysia.js API. We run flutter test and flutter analyze in every QA cycle — they're the two biggest output spammers in our workflow.
Happy to provide raw sample outputs from each command if useful for implementing the Rust module.
Pre-captured samples are in samples/ — no Flutter install needed to reference them.
flutter pub get → samples/flutter_pub_get.txt
58 packages resolved. Includes individual package lines, the Changed N dependencies! summary, and the outdated packages notice.
flutter analyze → samples/flutter_analyze.txt
20 issues (18 info, 2 warning) across 3 files. Covers avoid_print, unused_element, unused_local_variable, always_declare_return_types, and more.
flutter test → samples/flutter_test.txt / expanded reporter
11 passed, 3 failed. Includes unit test failures, widget test failures with the Flutter exception format, and the Failing tests: summary block.
flutter analyze lib/models/cart.dart → samples/flutter_analyze_no_issues.txt
Clean file, no issues — shows the exact No issues found! (ran in 0.1s) format that RTK can use as a short-circuit match.
For Dart/Flutter, I think the right split is to rewrite semantic output and filter pure noise. dart test/flutter test and analyze produce structured information the LLM actually needs, like pass/fail status, failure blocks with file/line, warnings. So stripping lines blindly risks dropping useful signal. Summarizing that output instead would keep the meaningful parts while cutting the progress dots, stack frames, and redundant context.
For pub get, build, and build_runner, I think a declarative TOML filter is the better fit because the output is almost entirely progress noise. There's no semantic state to preserve, so a filter that caps lines and strips known spam patterns is simpler and just as effective.
On the test/analyzer side, using the JSON or machine reporter when available would make the rewrite much more reliable than parsing free-form ANSI output. A green run could collapse to a single summary line, and failures could stay bounded to a handful of blocks. That feels like the best balance between token efficiency and keeping the signal intact.
What do you think?
Reacted by devsdocs, Steven Barragán Naranjo, qqtb and Rômulo Santos
Activity
pszymkowiak commentedon Apr 10, 2026
🔍 Automated Triage
featuremediumSummary
Feature request to add RTK support for flutter pub, flutter analyze, and dart analyze commands; already being addressed by PR #1128 which includes flutter/dart support.
Triaged automatically by wshm · This is an automated analysis, not a human review.
XtheWiz commentedon Apr 19, 2026
Production data from a Flutter + Bun monorepo (30-day rtk discover)
Adding real numbers to bump priority — our project has significantly higher usage than the original report.
flutter testflutter test 2>&1flutter runflutter run --dart-define=ENV=prod -d 04CACC81-746D-4001-A0FE-E54636235370flutter analyzeflutter analyze 2>&1flutter buildflutter build ios --release 2>&1flutter pubflutter pub getTotal: ~1,146 flutter calls/month unoptimized → estimated ~150K+ tokens/month in avoidable output.
What we'd want from each
rtk flutter test(highest priority — 551 runs)N tests, M failures, K skipped(mirrorrtk jestbehavior)rtk flutter run(261 runs)Reloaded N of M libraries,Flutter run key commands)rtk flutter analyze(200 runs)No issues found!noisertk flutter build(99 runs)Stack context
Flutter 3.41 / Dart 3.11 monorepo (iOS + Android), Bun + Elysia.js API. We run
flutter testandflutter analyzein every QA cycle — they're the two biggest output spammers in our workflow.Happy to provide raw sample outputs from each command if useful for implementing the Rust module.
rajat-ventura commentedon Apr 30, 2026
hey @azulmouad could you please share samples? i'd like to pick this up
carlosfiori commentedon May 26, 2026
Hey! I put together a Flutter example project with real command outputs to help implement this feature.
Repo: https://github.com/carlosfiori/rtk_flutter
Pre-captured samples are in
samples/— no Flutter install needed to reference them.flutter pub get→samples/flutter_pub_get.txt58 packages resolved. Includes individual package lines, the
Changed N dependencies!summary, and the outdated packages notice.flutter analyze→samples/flutter_analyze.txt20 issues (18 info, 2 warning) across 3 files. Covers
avoid_print,unused_element,unused_local_variable,always_declare_return_types, and more.flutter test→samples/flutter_test.txt/expanded reporter11 passed, 3 failed. Includes unit test failures, widget test failures with the Flutter exception format, and the
Failing tests:summary block.dart run build_runner build→ 3 scenarios:build_runner_build.txt— fresh build with compilation progress and per-builder timingbuild_runner_cached.txt— incremental run with everything skippedbuild_runner_errors.txt— SEVERE error with file/line pointer and fix suggestionsHappy to add more scenarios if useful (e.g.
dart analyze, specific failure types, etc.).carlosfiori commentedon May 26, 2026
Adding one more scenario for
flutter analyze:flutter analyze lib/models/cart.dart→samples/flutter_analyze_no_issues.txtClean file, no issues — shows the exact
No issues found! (ran in 0.1s)format that RTK can use as a short-circuit match.carlosfiori commentedon May 26, 2026
@rajat-ventura I've added some examples, see if they help.
vivekkartha commentedon Jun 15, 2026
I've raised a PR to support flutter #2456
Olyno commentedon Jul 11, 2026
Hi there!
For Dart/Flutter, I think the right split is to rewrite semantic output and filter pure noise.
dart test/flutter testandanalyzeproduce structured information the LLM actually needs, like pass/fail status, failure blocks with file/line, warnings. So stripping lines blindly risks dropping useful signal. Summarizing that output instead would keep the meaningful parts while cutting the progress dots, stack frames, and redundant context.For
pub get,build, andbuild_runner, I think a declarative TOML filter is the better fit because the output is almost entirely progress noise. There's no semantic state to preserve, so a filter that caps lines and strips known spam patterns is simpler and just as effective.On the test/analyzer side, using the JSON or machine reporter when available would make the rewrite much more reliable than parsing free-form ANSI output. A green run could collapse to a single summary line, and failures could stay bounded to a handful of blocks. That feels like the best balance between token efficiency and keeping the signal intact.
What do you think?
elana-voss commentedon Oct 5, 2026
Would be very nice to have. Thank you.