Published: 2026-11-29
Summary
Summary
Five ways to stop a false "tests pass" in Claude Code: locked checks, an answer key and hard limits
Chapters / key moments (click to jump — plays here on the page)
The video's theme is that writing code is now the easy part and knowing it works is the hard part. The examples about Anthropic's own teams are the video's account of Anthropic articles; the commands below are checked against Claude Code's docs.
Source video
"Anthropic Just Revealed 5 NEW Rules For Building With Claude (Master In 14 Mins)" by Bart Slodyczka — Watch on YouTube →
Step-by-Step Breakdown
- Give Claude an end-to-end check it cannot edit. A check that opens the app and uses it is hard to fool. Add a deny rule for edits to the tests folder so Claude cannot rewrite what grades it.
- Check the checker. Break the work on purpose and confirm the check fails. For AI review, require the exact line behind every point and read a sample of reviews yourself.
- Use the old version as the answer key. Save real inputs and the old outputs before a rewrite, require the new version to match, and keep the old one until it does. Reject any "fix" that copies old output into the new code.
- Say what needs you, then give one clear number. List hard-to-undo actions under "ask me first" in CLAUDE.md (schema changes, deleting files, new libraries) and give Claude a clean score to improve, such as end-to-end tests passing.
- Back judgment with fixed limits. Deny rules, hooks and the sandbox still hold when a judgment call goes wrong. A line in CLAUDE.md is only a request.
Commands & Code Shown
/verify # build and run the app to confirm a change works
/run-skill-generator # record how to launch your project for /run and /verify
/sandbox # turn on the shell sandbox (macOS, Linux, WSL2)
/ship # open a pull request, review it, work on failing checks
Per the skills docs, /verify works without setup, and when it has to work out how to drive your app it writes what worked to .claude/skills/verify/SKILL.md. Per the /ship docs, you still merge the pull request yourself.
{
"permissions": {
"deny": ["Edit(tests/**)", "Read(./.env)"]
}
}
Examples the video gives
- A Python-to-Rust rewrite of part of Anthropic's API passed about 98% of tests while only about a quarter of real requests matched; more than 100 checks had been weakened while porting.
- The same model scored up to 34 points apart on safety questions when only the test setup changed.
- Before leaving a session to harden a new service, an engineer listed which decisions needed approval.
Gotchas & Caveats
- Adjust the deny paths to your layout, and confirm a blocked edit really is refused.
/shiplooks for secrets by file name such as.env, and Anthropic's docs warn that a Read deny rule does not keep a file out of the commit.- If a change can modify the check that judges it, treat the check as broken.
- The video also mentions team-wide pull request agents limited to certain plans; check your plan's docs before relying on that.





