-
Notifications
You must be signed in to change notification settings - Fork 1
Labels
enhancementNew feature or requestNew feature or request
Description
Motivation
The current filter system covers 6 command families (cargo test/clippy/build, git, ls, log dedup). Real-world agent sessions involve dozens of CLI tools producing verbose output that wastes context tokens. Expanding filter coverage can reduce token consumption by 60-95% across typical workflows.
Architecture
PR #734 migrated all hardcoded filters to a declarative TOML engine with 9 built-in strategy types (strip_noise, truncate, keep_matching, strip_annotated, test_summary, group_by_rule, git_status, git_diff, dedup). New filters are added as TOML rules in default-filters.toml — no Rust code changes needed for simple cases.
Current Coverage (19 rules in default-filters.toml)
| Rule | Commands | Status |
|---|---|---|
| cargo-build | cargo build/run/check |
done (#734) |
| cargo-test | cargo test/nextest |
done (#734) |
| cargo-clippy | cargo clippy |
done (#734) |
| git-status | git status |
done (#734) |
| git-diff | git diff |
done (#734) |
| git-log | git log |
done (#734) |
| git-push | git push |
done (#734) |
| ls | ls |
done (#734) |
| log-dedup | journalctl, tail -f, docker logs |
done (#734) |
| docker-build | docker build |
done (#734) |
| docker-compose | docker compose |
done (#734) |
| npm-install | npm/yarn/pnpm install |
done (#734) |
| pip-install | pip install |
done (#734) |
| make | make/cmake |
done (#734) |
| pytest | pytest |
done (#734) |
| go-test | go test/build |
done (#734) |
| terraform-plan | terraform plan/apply |
done (#734) |
| kubectl-get | kubectl |
done (#734) |
| brew-install | brew install |
done (#734) |
Remaining
- feat: add find output truncation filter #722
findoutput truncation filter - feat: add grep/rg output truncation filter #725
grep/rgtruncation filter - feat: add curl/wget output filter #726
curl/wgetfilter - feat: add du/df/ps output filter #727
du/df/psfilter - feat: add JS test runner output filter (jest/mocha/vitest) #732 JS test runners (jest/mocha/vitest)
- feat: add generic linter output filter (eslint/ruff/mypy/pylint) #733 Generic linter filter (eslint/ruff/mypy/pylint)
Reactions are currently unavailable
Sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request