Skip to content

feat: add grep/rg output truncation filter #725

@bug-ops

Description

@bug-ops

Parent: #717

Problem

grep -r and rg searches can return hundreds of matches. The agent needs representative results, not all of them.

Acceptance Criteria

  • Match grep, rg, ripgrep
  • If output > 100 lines: keep first 30 + last 10, show total match count
  • Config: [tools.filters.grep] with enabled, max_results (default 100)
  • Tests
  • Expected savings: 60-90%

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