From the source
Amp CLI introduced shell mode, allowing users to execute shell commands directly in the prompt input by starting a message with $.
- Commands and their output are included in the context window for the agent.
- An incognito mode ($$) executes commands without including them in the context.






