What is the dont-ask permission mode?
--permission-mode dont-ask is for print mode (line -p). Anything that would normally need approval is declined automatically instead of waiting for a person, so a script can never hang on a prompt.
line -p "summarize the open TODOs" --permission-mode dont-ask
Combine it with --allowed-tools to allow exactly what the job needs:
line -p "run the tests and report" --permission-mode dont-ask --allowed-tools "bash(npm test*)"
Declined actions appear as permission_denied events in stream-json output.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.