⌨️--restricted Flag
Also known as claude --restricted, Restricted mode
It starts a locked session for a shared box.
Think of it like
It is like a guest room. The guest may read, but may not cook or use the tools.
Example
Emma's team scores models on a shared server. Each run uses --restricted, so Claude cannot run commands or read anyone's settings on that box.
Why it matters
A shared machine stays safe even when the prompt asks for something it should not.
Definition
Example code
bash
claude --restricted -p "Answer the question in task.md"Common mistake
Key takeaways
- 1No shell, no code. Unless named.
- 2Working folders only. For files.
- 3No bypass, no cloud. Refused.