⌨️--init Flag
Also known as claude --init, claude --init-only, --maintenance
It runs your Setup hooks before a session starts.
Think of it like
It is like you set the table before the meal starts.
Example
Lucy's repo has a Setup hook that puts tools in place for Claude. Her container runs claude --init-only once. Then each new session starts ready.
Why it matters
Setup work runs once, at the time you choose, not in the middle of someone's task.
Definition
Example code
bash
claude --init-onlyCommon mistake
Key takeaways
- 1--init. init Setup hooks.
- 2--maintenance. maintenance Setup hooks.
- 3--init-only. Run hooks, then exit.