# diff-focus Review only the added/changed code in a diff ## Installation This is a CmdForge tool. Install it from the registry: ```bash cmdforge connect diff-focus ``` ## Usage Pipe git diff output or any diff content to filter and review only the added or changed lines: ```bash git diff | diff-focus git diff main..feature-branch | diff-focus git show HEAD | diff-focus ``` The tool extracts only the additions and modifications from the diff, removing context lines and deletions, then analyzes the changes. ## Arguments This tool takes no arguments. ## How It Works 1. **Extract Changes** (code step): Parses the diff input and extracts only lines that represent additions or modifications (lines starting with `+` but not `+++`), filtering out context and deleted code. 2. **Analyze** (prompt step): Sends the extracted changes to Claude Haiku for review and analysis, providing insights about the code changes. The pipeline focuses your review on what was actually added or changed, cutting through the noise of context lines and removed code.
Reviews
Login to reviewNo reviews yet.
Issues
No issues reported for this tool.
Write a Review
Share your experience with this tool.
0/2000
Report an Issue
Help improve this tool by reporting bugs or security issues.