Scan commits for security bugs before they land
Use Claude Code to inspect each commit for secrets, injection flaws, and migration risks before it reaches the repository.
- What they did
- A developer wired Manta into a local git hook so it reviews commits before they are recorded. The setup spins up 11 Claude Code CLI agents to search for exposed secrets, web security issues like SQL and XSS injection, async and query mistakes, code quality problems, and migration changes that could cause trouble. When a commit looks unsafe, the tool can halt it and point to a possible fix, but a person still needs to judge anything complicated.
- How it went
- The benefit is catching dangerous changes earlier, before they land in the repo. Manta is free, open source, and uses Claude Sonnet through the Claude Code free tier, but it is not standalone and it adds a few seconds to commit time.
- Tips
- Treat the output as a filter, not the final word, especially for business logic and edge cases. You will need Claude Code CLI available locally, and the pre-commit step will slow each commit a little.
Try it yourself with Claude Code
Create a pre-commit check for [repo path] that uses Claude Code to review the staged changes before a commit can finish. Ask it to flag hardcoded secrets, SQL/command/XSS injection risks, unsafe migration edits, and obvious async or query issues. If it finds a problem, block the commit and report the file, line number, and a short fix. Show me the script first and pause for approval before installing it or making any irreversible changes.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Move WordPress posts into MDX files
Pauline used Claude Code to pull a WordPress archive into MDX and sort it into year folders.
Use Claude as an async coding partner
They paired with Claude and Jules while coding locally, then copied changes back and forth instead of sharing a live editor.
Use Claude Code to maintain NixOS server configs
A developer uses Claude Code to edit one NixOS config repo for several self-hosted machines, then reviews the diff and applies changes by hand.
Use Copilot to scaffold a full-stack app
They let GitHub Copilot start a new full-stack app, then kept fixing setup issues until the React interface was styled and usable.
Talk your way to software for an Apple IIe
Benj Edwards used Claude to discuss a program idea and have it turned into code for an Apple IIe setup.
Monitor account caps and move chats across tools
teivz built a local app that watches Codex and Claude Code account usage and shifts a chat to another account when one reaches its cap.