Offsend vs Gitleaks, TruffleHog & secret scanners
Secret scanners find leaked credentials in git and PRs. Offsend also scans for keys and tokens — but its main job is the AI context boundary: what Cursor, Claude Code, and similar agents may read or pass into tools.
Short answer
Keep Gitleaks for fast offline gates, TruffleHog when you need live verification (and broader sources), and GitHub secret scanning for platform alerts. Use Offsend for day-to-day agent hygiene: path audits, one team policy for every AI ignore file, workspace content checks, and gates on prompts / reads / shell / MCP. Overlap on scanning; different job on AI context.
Tools in this comparison
- Gitleaks — Fast regex/entropy scanner for git history, files, staged changes, and CI.
- TruffleHog — Finds secrets and verifies many of them live against providers; also scans beyond git.
- GitHub secret scanning — Platform scanning for known secret patterns in GitHub repos and PRs.
- git-secrets / detect-secrets — Pre-commit style scanners that block or flag credential patterns.
Offsend sources: GitHub README · CLI docs.
Where they overlap
Offsend is not “anti-scanner.” offsend check scans files, staged diffs, or stdin for secret-shaped values. That sits next to Gitleaks and peers for pre-commit/CI — but each tool still differs on history depth, verification, and where it runs.
| Capability | Offsend | Gitleaks | TruffleHog | GitHub | Pre-commit |
|---|---|---|---|---|---|
| Scan file contents for keys & tokens | |||||
| Scan staged diffs / pre-commit | |||||
| CI on every PR / push | |||||
| Local-first CLI (no upload required) | |||||
| Custom rules / allowlists |
Where Offsend differs
The gap most scanners leave open: even after a token is rotated and .env is gitignored, will an agent still pull that file into context? Offsend answers with path policy, ignore materialization, and runtime gates. Where scanners win instead — especially TruffleHog on verification and Gitleaks on fast history — stays visible per column.
| Capability | Offsend | Gitleaks | TruffleHog | GitHub | Pre-commit |
|---|---|---|---|---|---|
| AI context boundary (.offsend.yml → AI ignore files) | |||||
| Path audit: what AI can see (without reading secrets) | |||||
| Runtime gates for coding agents | |||||
| Audit / scrub local agent transcripts | |||||
| Reversible seal of secrets in text | |||||
| Browser chat masking / macOS Safe Paste | |||||
| Deep git history / dump scanning | |||||
| Live secret verification | |||||
| Scan beyond git (S3, Docker, …) |
Concrete example
A .env is committed. Gitleaks or TruffleHog can flag the token (and TruffleHog may verify it is still live) so you can rotate and scrub history. Offsend covers the follow-up: even after the file is gitignored, will Cursor or Claude Code still read it from disk? offsend show surfaces that exposure; offsend protect / sync promote the path into .offsend.yml and materialize AI ignore files; offsend check can still catch secret-shaped content in the tree; hooks add friction on supported editor paths.
When to use both
Common setup: Gitleaks and/or TruffleHog (plus GitHub secret scanning) for leak detection and verification; Offsend CLI + GitHub Action for AI-context hygiene and workspace content checks on every PR. Complementary — not substitutes.
Related
- Install the CLI —
offsend show,init,protect,sync,check - Check a public repo without installing
- Radar — path-level research on AI-context risk signals
- GitHub Action — same offsend check in CI
- Browser extension — mask secrets in AI chats