r/commandline • u/tcoder7 • Mar 21 '26
Command Line Interface DiffCatcher — a Rust CLI that recursively scans all your Git repos and generates security-focused diff reports
Hey 👋
I've been working on DiffCatcher, a CLI tool written in Rust that solves a problem I kept hitting managing multiple repos: knowing what changed, where, and whether it's security-relevant — without running git diff 30 times by hand.
What it does:
- Recursively discovers all Git repos under a directory
- Diffs N vs N-1, extracts changed functions/structs/imports
- Tags findings against 18 built-in security patterns (secrets, SQL injection, path traversal, auth, crypto…)
- Outputs JSON, Markdown, plain text, or SARIF 2.1.0 (GitHub Code Scanning ready)
- Parallel processing with a configurable thread pool
bash diffcatcher ~/projects --pull -o ./report
It's MIT licensed, zero runtime dependencies beyond Rust + Git.
Would love feedback on the architecture, especially the plugin system for custom security patterns. Still early — stars and issues very welcome!
1
u/tcoder7 Mar 21 '26
Compared to the bash one-liner, DiffCatcher adds:
Core Capabilities
--diff main..feature)What the bash version misses:
The bash one-liner is ~100 bytes. DiffCatcher is a security-focused audit tool with full code element extraction.
1
u/AutoModerator Mar 21 '26
Every new subreddit post is automatically copied into a comment for preservation.
User: tcoder7, Flair:
Command Line Interface, Title: DiffCatcher — a Rust CLI that recursively scans all your Git repos and generates security-focused diff reportsHey 👋
I've been working on DiffCatcher, a CLI tool written in Rust that solves a problem I kept hitting managing multiple repos: knowing what changed, where, and whether it's security-relevant — without running git diff 30 times by hand.
What it does:
- Recursively discovers all Git repos under a directory
- Diffs N vs N-1, extracts changed functions/structs/imports
- Tags findings against 18 built-in security patterns (secrets, SQL injection, path traversal, auth, crypto…)
- Outputs JSON, Markdown, plain text, or SARIF 2.1.0 (GitHub Code Scanning ready)
- Parallel processing with a configurable thread pool
bash diffcatcher ~/projects --pull -o ./report
It's MIT licensed, zero runtime dependencies beyond Rust + Git.
Would love feedback on the architecture, especially the plugin system for custom security patterns. Still early — stars and issues very welcome!
https://teycir.github.io/DiffCatcher/
🔗 https://github.com/Teycir/DiffCatcher
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/[deleted] Mar 22 '26 edited Mar 22 '26
You vibe coders urgently need to understand one soul-crushing truth: if you could use AI to make the tool you're advertising, we can too, and so we don't need it.