Skip to content

epic: expand tool output filter coverage #717

@bug-ops

Description

@bug-ops

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

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions