⌨️--agent Flag
Also known as claude --agent, agent setting
It runs the main session as one of your custom agents.
Think of it like
It is like a friend plays the coach. They play that part the whole game.
Example
Lucy has a reviewer agent with its own rules and only read tools. She starts claude --agent with its name. The whole chat then runs as that agent.
Why it matters
A role you set up once can be the whole session, not just a helper Claude calls.
Definition
Example code
bash
claude --agent code-reviewerCommon mistake
Key takeaways
- 1Main session. As that agent.
- 2Its prompt, tools, model. All of them.
- 3Beats the setting. This session.