Repository navigation
Conversation
feat(): batch fixs + aws extended + filter quality batch
…master--components--rtk chore(master): release 0.35.0
…ters - Add Antigravity hook: project-scoped rules + global hooks.json mode - Add Kilo Code rules support (project-scoped only) - Add gsutil.toml, bq.toml filters and expand gcloud.toml subcommands - Harden hooks.json patching: backup-before-mutation, Result<()> over expect() - Document unverified global hook assumptions in README - Remove dead code: duplicate remove_var in trust.rs, orphan subcmd_savings - Fix let-else lints in hook_check.rs
…sting Real-environment testing against Antigravity 1.107.0 revealed that Antigravity is a Windsurf/Codeium fork with NO hooks.json support. The global hook mode (install_antigravity_hooks, patch_antigravity_hooks_json) was writing to a path Antigravity never reads. - Remove rtk-rewrite.sh, ANTIGRAVITY_DIR, and all hooks.json functions - --global now bails with guidance to use rtk init -g (Claude Code hooks) - Keep project-scoped rules (.agents/rules/) — confirmed working via Antigravity's ruleEditor registration for .agents/rules/**/*.md - Update README with verified integration paths Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Antigravity's Cascade runs pip/uv/conda with verbose progress bars that flood LLM context. Add TOML filters to strip download noise: - pip-install.toml: strip progress bars, download lines, version warnings - uv-sync.toml: expand from sync-only to init/add/lock (3 new filters) - conda.toml: strip solver, download, extract progress (install + list) - rules.rs: register python -m pip, uv init/add/lock, conda commands Filter count: 67 → 73 (+6 new filters) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Hello, Antigravity and KiloCode support already on develop branch and will be in next release. But new gcp filters are welcome ! Thanks for contributing |
…za/podman Wire 21 existing TOML filters that had no rules.rs entries (dead code): gcc, gradle, jq, oxlint, basedpyright, jira, jj, just, mise, nx, ollama, skopeo, spring-boot, ssh, stat, task, turbo, ty, xcodebuild, yadm Add 5 new ecosystem TOML filters (13 filter sections): - bun.toml: install, test, build (Bun runtime) - yarn.toml: install, test (Yarn package manager) - bazel.toml: build, test, query (Google build system) - flutter.toml: build, analyze, test, pub (Flutter/Dart) - eza.toml: modern ls replacement Add podman as alias to docker rule in rules.rs. Add python -m pip to pip rewrite rule. Filter count: 73 → 86 (+13 new). Rule count: +26 entries.
|
The upstream 1. Antigravity hardening — Tested against a local Antigravity 1.107.0 install and discovered it's a Windsurf/Codeium fork, not Cursor. The original commit assumed a 2. GCP ecosystem — Expanded 3. Broad filter coverage — Wired 21 existing TOML filters that had no Net: 58 → 86 TOML filters, 72 → 97 rules, 73.9% token savings measured on real sessions. |
|
|
||
| [filters.bazel-query] | ||
| description = "Compact bazel query output" | ||
| match_command = "^bazel\\s+query\\b" |
There was a problem hiding this comment.
| match_command = "^bazel\\s+query\\b" | |
| match_command = "^bazel(isk)?\\s+[ca]?query\\b" |
Also all of these should probably be made to handle startup flags between bazel and the verb.
| [[tests.bazel-build]] | ||
| name = "strips progress and action noise" | ||
| input = """ | ||
| Loading: 0 packages loaded | ||
| Analyzing: target //src:main (3 packages loaded, 12 targets configured) | ||
| INFO: Analyzed target //src:main (3 packages loaded, 12 targets configured). | ||
| INFO: Found 1 target... | ||
| [3 / 7] Compiling src/main.cc | ||
| [5 / 7] Linking src/main | ||
| INFO: Elapsed time: 4.234s, Critical Path: 2.31s | ||
| INFO: 7 processes: 3 internal, 4 darwin-sandbox. | ||
| INFO: Build completed successfully, 7 total actions | ||
| Target //src:main up-to-date: | ||
| bazel-bin/src/main | ||
| """ | ||
| expected = "INFO: Build completed successfully, 7 total actions\nTarget //src:main up-to-date:\n bazel-bin/src/main" |
| [filters.bazel-query] | ||
| description = "Compact bazel query output" | ||
| match_command = "^bazel\\s+query\\b" | ||
| strip_ansi = true |
There was a problem hiding this comment.
strip_ansi is going to be doing the wrong thing here. We do want to strip out colors, but bazel makes extensive use of ansi escape sequences to overwrite progress lines. It's possible that you can catch all such lines with regexes, but it would be more reliable to just remove anything that gets overridden, before proceeding to regex-match remaining lines that are not of interest. rtk arguably should just do that for everything, before it gets to the point of these regex matchers.
|
Heads-up: #988 adds native bun/deno command support (Rust filters, not TOML) and is close to landing. It overlaps two things here, and only two:
Not asking you to close this PR — the other 21 files (Antigravity/Kilo Code hooks, the GCP filters, bazel/conda/eza/flutter/pip-install/uv-sync/yarn, the One thing worth knowing if you'd rather keep a TOML path for bun: This PR is currently marked conflicting, so it needs a rebase regardless. |
|
Antigravity and Kilo Code support landed on develop with commit d0a3797 (2026-04-08), and #988 (merged 2026-09-03) added native Rust filters for bun, so bun.toml and the bun discover rule here are no longer needed. Most of the orphaned filters you wired also rewrite on develop now. What develop still lacks from this branch is the TOML filters and rewrite rules for yarn, bazel, flutter/dart, eza, gsutil, bq, conda and pip-install, the gcloud subcommand expansion, uv-sync init/add/lock, podman as a docker alias, the python -m pip rewrite, and the rewrite wiring for mise and ollama. Could you rebase onto current develop and narrow the PR to those parts? It currently conflicts with develop, so expect to resolve conflicts in src/discover/rules.rs and the init code, and to drop the release and version files. Thanks for all the work on these filters. |
Summary
Antigravity + Kilo Code agent support
.agents/rules/(confirmed against Antigravity 1.107.0)hooks.json— dead hook code removedrtk init --agent antigravity.agents/rules/antigravity-rtk-rules.mdrtk init -g~/.claude/settings.jsonPreToolUse (works inside Antigravity)GCP filters
gsutil.toml,bq.toml, expandgcloud.tomlwith 7 subcommand filterspip-install.toml, expanduv-sync.tomlwith init/add/lock,conda.tomlWire 21 orphaned TOML filters
gcc, gradle, jq, oxlint, basedpyright, jira, jj, just, mise, nx,
ollama, skopeo, spring-boot, ssh, stat, task, turbo, ty, xcodebuild, yadm
(all had TOML filters but no rules.rs entries — dead code until now)
New ecosystem TOML filters
bun.tomlyarn.tomlbazel.tomlflutter.tomleza.tomlOther
python -m pipto pip rewrite rulehook_check.rs, duplicateremove_varintrust.rsCloses #832 #902 #1030 #1034 #1061 #1098
Token Savings (measured on rtk repo)
cargo testcargo clippyls -la src/git statusgit log -20Stats
Test plan
cargo test— 1368 passed, 0 failedcargo clippy --all-targets— zero warnings from changed filespython3 -m piprtk init --agent antigravityverified against local Antigravity 1.107.0