⌨️Compound Command
Also known as && command, chained command
Commands joined with && or a pipe, each part checked on its own.
Think of it like
It is like a ticket for two rides. Each ride still checks it.
Example
Claude writes cd api && npm test. The cd is safe and npm test is allowed, so it runs. Had it ended in git push, Jack would be asked.
Why it matters
Without the split, one safe command could sneak a bad one in behind it.
Definition
Example code
console
$ npm test && git push
# npm test matches an allow rule
# git push does not, so Claude Code asksCommon mistake
Key takeaways
- 1Split first. &&, ||, ;, pipe.
- 2Each part must pass. Or it asks.
- 3Any deny wins. For the whole.