Repository navigation
Squidbrake v0.2.0: reads commands, catches prompt injection, proves it
A day after launch, six things that make Squidbrake stop more real damage while asking you less.
Reads what a command really does
ls && rm -rf ~/, bash -c "...", rmdir /s /q d:\, $(...) and curl ... | sh are split and read before they run (never executed).
- Blocked: wiping a drive or home folder,
mkfs,ddonto a disk,chmod -R 777 / - Held for you:
rm -r,git push --force,git reset --hard,terraform destroy,kubectl delete, cloud deletes,DROP TABLE - Just runs:
ls,cat,grep,git status/log/diff(asks you less)
Catches prompt injection without a model
If an agent sends data to an address, URL, account or repo that only a web page, email or issue mentioned (not you, not your own systems), it's held and the approver is told exactly where that address came from. Uploads from the shell count too. Claude Code prompts are now recorded to tell the difference.
Sequence rules with a "because"
Judge an action by what came before it: "Destroying data right after its backups were turned off. Because earlier: Bash aws rds modify-db-instance --backup-retention-period 0 (12 minutes ago)." Plus limits like "more than 10 refunds an hour" for agents stuck in a loop.
Stop one conversation
Stop a single session from any event's details: its next action is blocked, pending approvals are rejected, and Claude Code ends its turn.
Shadow mode
mode: shadow blocks nothing and records what it would have blocked or held, so a team can try it on real work first.
Evidence anyone can check
Every decision records the fingerprint of the rules that made it. Download one evidence file and check it anywhere: python verify.py evidence.json. The tamper check now also catches actions edited in the database afterwards.
Also from the community: numeric rule conditions (refunds over $100 need a person) by @i-sayankh, a FAQ by @srikark549-del, and reliability fixes.
Upgrade: pull and restart; the database updates itself. Re-run connect.py claude-code to add the prompt-recording hook.