feat(gradle): Start implementing Gradle filter module with task-type detection#709
feat(gradle): Start implementing Gradle filter module with task-type detection#709Nava2 wants to merge 1 commit intortk-ai:developfrom
Conversation
dcc8777 to
f922de2
Compare
|
Hey We are cleaning up the codebase and improving the project structure for better onboarding. As part of this effort, PR #826 reorganizes No logic changes — only file moves and import path updates. What you need to doRebase your branch on git fetch origin && git rebase origin/developGit detects renames automatically. If you get import conflicts, update the paths: use crate::git; // now: use crate::cmds::git::git;
use crate::tracking; // now: use crate::core::tracking;
use crate::config; // now: use crate::core::config;
use crate::init; // now: use crate::hooks::init;
use crate::gain; // now: use crate::analytics::gain;Need help rebasing? Tag @aeppling |
Add GradleConfig struct with user_packages, extra_drop_patterns, and drop_frame_packages for configurable gradle output filtering. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
f922de2 to
cdcf230
Compare
|
@aeppling rebased and reorganized :) |
|
Probably related to #381 |
|
@osipxd yes, though we definitely took it a few steps further for more in-depth layout and better reporting :) |
|
@aeppling is there somewhere to collaborate on this better? I know this, like most open source repos are being spammed. We're using this in our background agent infra to great success. I want to make sure it's also in the right style of both for review and for delivery. :) |

Overview
This PR series adds a Rust-native Gradle filter module that replaces the existing
src/filters/gradle.tomlTOML filter (~60% savings) with 85-99% token savings through task-type detection, stack trace intelligence, and batch processing.Tested on Faire's production Gradle monorepo. Upstreamed from Faire's fork where it has been in use since January 2026.
Value over existing
gradle.tomlThe upstream TOML filter does basic noise stripping. This Rust module adds:
drop_frame_packages)> Taskboundaries, applies per-section filtersuser_packages,extra_drop_patterns,drop_frame_packagesvia config.toml or.rtk.tomlToken Savings
Staging PRs (internal review)
Each filter is a separate PR for focused review in Faire/rtk:
instadepPerformance
RegexSetfor single-pass matching (global: 37 patterns, compile: 4, detekt: 3)lazy_static!Open Questions
insta1.46 for snapshot testing. Is this acceptable? Dev-only (not in release binary). Used for 16 snapshot files validating filter output format.Size
~2,800 lines code + 13 fixtures + 16 snapshots (across 10 Rust files)
🤖 Generated with Claude Code