• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

futpib-bot / claugrep / 23568719483
83%
master: 84%

Build:
Build:
LAST BUILD BRANCH: feat/diff-view
DEFAULT BRANCH: master
Ran 25 Mar 2026 11:07PM UTC
Jobs 1
Files 5
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2026 11:07PM UTC coverage: 89.015% (+2.2%) from 86.848%
23568719483

Pull #17

github

futpib-bot
feat: add --diff/-d flag to search for Edit tool unified diff view

When `--diff` is passed alongside `--tool-use`, any match against an Edit
tool call is rendered as a unified diff instead of the raw key/value format:

  --- a/src/lib.rs
  +++ b/src/lib.rs
  @@ -1,2 +1,2 @@
  -fn old_name() {}
  +fn new_name() {}

Non-Edit matches (Bash, Read, user messages, etc.) are unaffected.

- Parser: adds `EditDiff` struct and populates `edit_diff` on `ExtractedContent`
  for Edit tool calls that have all three fields (file_path, old_string, new_string)
- Search: carries `edit_diff` through to `SearchMatch`; adds `diff_mode` to options
- Output: adds `format_diff` rendering old lines with `-` and new lines with `+`,
  with ANSI colour (red/green); match highlights still work inside diff lines
- Main: wires `--diff`/`-d` flag through to the rendering path
- Tests: 8 new e2e tests covering the diff format, 3 new unit tests in parser
  and 4 new unit tests in output

Closes #16

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Pull Request #17: feat: add --diff/-d flag for Edit tool unified diff view

148 of 149 new or added lines in 4 files covered. (99.33%)

83 existing lines in 4 files now uncovered.

1410 of 1584 relevant lines covered (89.02%)

16.07 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
86.48
2.06% src/parser.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
98.13
0.02% src/search.rs
8
96.41
2.66% src/output.rs
36
86.22
4.01% src/main.rs
37
86.48
2.06% src/parser.rs
Jobs
ID Job ID Ran Files Coverage
1 23568719483.1 25 Mar 2026 11:07PM UTC 5
89.02
GitHub Action Run
Source Files on build 23568719483
  • Tree
  • List 5
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23568719483
  • Pull Request #17
  • PR Base - master (#23466822211)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc