Claude Code's deny rules catch more than edits.
I denied edits to my migrations folder, then had Claude try 5 ways to write a migration file.
4 were blocked (echo >>, tee, cp, sed -i). A python one-liner got through.
Setup and results
https://t.co/hKGj0dtXLr
Before an AI agent sends, spends, signs or deletes anything, a person should say yes.
Not in the prompt. In the code that runs its tools.
The two-question rule, plus a 30-line approval gate in Python.
https://t.co/T1ZP2RXSCf
I asked Claude Code to add a column to an old migration file.
It was blocked. Then it suggested the right fix on its own: a new migration.
One deny rule and a few small hooks did that. All free, all tested:
https://t.co/T9qHk7rYHh
My Postgres transaction was read-only. I checked.
Then this ran inside it:
SET TRANSACTION READ WRITE; DELETE FROM orders WHERE id = 7
Order 7 was gone.
Three locks between Claude and a database. One of them opened from the inside.
The fix was one keyword argument: a server-side cursor. Postgres then accepts exactly one SELECT, so the query can't switch the transaction to read-write first.
I built the Claude Code setup I wish I'd had on day one.
One command installs it. Then Claude Code:
- won't commit to main
- won't write an API key to a file
- won't say "done" while tests fail
10 hooks, 5 subagents, 5 templates, 108 automated checks. Link below.
Last week the maintenance system running 1,700 ships changed owner. Nobody aboard was asked.
We don't buy software. We charter it.
Every charterparty has a redelivery clause โ what stays, what leaves with you.
We read it for ships. Never for data.
A thousand AI agents built an OS in 8 days. Same week, a thousand agents formalised Fermat's Last Theorem in Lean.
What both have in common: a machine can check the answer for free.
That's what you can parallelise. Everything else bottlenecks on one human reading it.
I told Claude Code to add one comment to a script. Nothing else.
It was about to say "done" when a hook ran the tests. One was already failing. Claude went back, fixed the real bug, and told me it had gone beyond the ask.
No prompt did that. A 46-line bash script did.
My SQL filter blocked DELETE. It blocked stacked queries. Then `WITH x AS (SELECT 1) DELETE FROM orders` walked straight past it.
The data survived because of 5 characters in the connection string.
An MCP server Claude can read but never write:
https://t.co/rVhcXYxrNt
The lesson: checking the SQL text is a courtesy. Opening the connection read-only (`mode=ro`) is the lock. Text filters fail on the case you didn't imagine, and the model has seen more SQL than you.
Somebody just paid $126m for 41% of a crew manager.
Not ships. Not software. People.
Every AI deck in shipping promises automation absorbs the seafarer shortage. Real money just bet the other way.
Both can't be right.
The reward for burning cleaner fuel in shipping roughly halved this year.
FuelEU surplus pool price: โฌ213 in Jan โ โฌ108.60 in Sep (OceanScore index).
A rule built to reward going first is, for now, making it cheaper to wait.
MEPC 85 opens 30 Nov.
Last week: critical flaws in PHP, Node.js, GitLab, a certificate authority โ and a tampered AI tooling release.
AI helped find some of them. The same capability helps attackers automate.
The next big AI race might not be about smarter AI. It might be about safer AI.
3 a.m. The GPS goes blank. Who on your bridge can tell you where the ship is, without the screen?
UK MCA this month: practise without GPS. Same day, a headline: "Shipping cuts training when it needs it most."
The last backup on any ship is a person who remembers how.