Repository navigation
Conversation
New commands: - `rtk context`: combined git status + diff + log in one call with session dedup (prints one-liner if output unchanged since last call) - `rtk watch <cmd>`: runs command and shows only what changed since last run (resolved/new lines), great for iterative test workflows - `rtk dedup [cmd]`: deduplicate noisy command output (compile lines, npm warnings, pip satisfied, progress bars) — reads from stdin or runs command - `rtk watch-clear`: reset watch diff history Infrastructure: - dedup.rs: 20+ noise pattern regexes (Cargo, npm, pip, Go, Vite, progress bars) with consecutive-line collapsing and identical-line dedup - auto_filter.rs: multi-stage filter pipeline (ANSI strip → CR overwrite strip → decorative separator strip → noise dedup → identical dedup → smart truncate with head+tail preservation) - `rtk proxy -f`: new --filter flag applies auto_filter pipeline to proxy output for generic noise reduction 27 new tests across all modules. Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: bz00qa <[email protected]>
70b9a54 to
8539b94
Compare
…docs and tests Remove scope creep from PR rtk-ai#550: - Restore rules.rs/registry.rs to develop baseline, keep only in-scope changes - Remove strip_verbose_flags(), proxy -f routing, expanded subcommands - Remove bun/deno/bunx from COMMAND_REGISTRY (unmerged PR rtk-ai#548) - Remove context/watch/dedup from COMMAND_REGISTRY (non-existent PR rtk-ai#553) - Remove detect_patterns() and normalize_cmd_base() (deferred) - Remove PatternOpportunity from report Add missing tests: consumer_base(), effective_idx Add docs: CHANGELOG.md, README.md gain section, ARCHITECTURE.md discover module Fix clippy warnings in new test code (vec![] → array, single_match) Co-Authored-By: Claude Opus 4.6 <[email protected]>
Carve out the proxy --filter enhancement to keep this PR focused on the new context, watch, and dedup commands. The auto_filter module was only used by proxy --filter and is removed entirely. Add CHANGELOG.md and README.md documentation for the new commands. Signed-off-by: bZ00qa <[email protected]> Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
This PR has merge conflicts with git fetch upstream develop
git rebase upstream/develop
git push --force-with-leaseLabeling |
|
|
|
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 |
|
Closing this PR for inactivity — the CLA was never signed and there's been no activity since March. This isn't a judgment on the change itself. If you'd still like to land it, just sign the CLA (https://cla-assistant.io/rtk-ai/rtk) and ping a maintainer to reopen — happy to pick it back up. Thanks for the contribution! |
Summary
rtk context: Combined git status + diff + log in a single call with session dedup — prints one-liner if output unchanged since last call, reducing round-trip overhead for LLMsrtk watch <cmd>: Runs command and shows only changed lines since last run (resolved/new), ideal for iterative test-fix workflowsrtk dedup [cmd]: Deduplicates noisy output (compile lines, npm warnings, pip satisfied, progress bars) — reads from stdin or runs command directlyrtk watch-clear: Resets watch diff historyrtk proxy -f: New--filterflag applies auto-filter pipeline to proxy output for generic noise reductionInfrastructure
dedup.rs: 20+ noise pattern regexes covering Cargo, npm/pnpm, pip, Go, Vite/Webpack/Turbo, progress bars/spinners with consecutive-line collapsing and identical-line dedupauto_filter.rs: Multi-stage filter pipeline — ANSI strip → CR overwrite strip → decorative separator strip → noise dedup → identical dedup → smart truncate (head+tail preservation, skip truncation on failure to preserve error context)Tests
27 new tests across all modules covering edge cases, token savings verification, and diff computation.
Test plan
cargo fmt --allpassescargo clippy --all-targetspasses (no new warnings)cargo test— 914 passed, 27 new tests all greenrtk contextin a git repo shows combined status/diff/logrtk watch cargo testshows full output first run, diff on subsequent runsrtk dedupwith piped build output collapses noise linesrtk proxy -f <cmd>applies auto-filter to output🤖 Generated with Claude Code