Tool approval
Every built-in tool has a permission level. Tools marked auto run without asking; tools marked prompt ask a person first. Of the 70 built-in tools, 17 are marked prompt — the ones that write files, run shell commands, send email, commit or push code, create tickets, trigger DAGs or run SQL.
What asks, by default
| Behaviour | Tools |
|---|---|
| Never asks (read-only) | read_file, list_files, search_files, git_status, git_diff, git_log, web_fetch, perplexity_search, read_pdf, read_emails, search_emails, sharepoint_*, jira_search, jira_issue, Airflow and database read tools |
Controlled by AUTO_APPROVE_TOOLS | write_file, edit_file, bash |
| Always asks | send_email, git_commit, git_push, git_clone, browser_eval, playwright_run, create_docx, create_excel, create_pptx, airflow_trigger_dag, db_query, oracle_query, jira_create_issue, github_create_pr |
Run /tools in the REPL to list every registered tool.
The AUTO_APPROVE_TOOLS switch
AUTO_APPROVE_TOOLS is a single true/false setting, not a list of tool names.
# ~/.insightworker/.env
AUTO_APPROVE_TOOLS=true # default: write_file, edit_file and bash run without asking
AUTO_APPROVE_TOOLS=false # ask before each file write, file edit and shell command
The installer writes AUTO_APPROVE_TOOLS=true so multi-step runs are not interrupted. Set it to false if you want to confirm each write and shell command. Changing it does not affect the "always asks" group above.
bash also refuses a short list of destructive patterns (for example rm -rf /, mkfs, dd if=) whatever the setting.
How each surface asks
| Surface | What happens on a prompt tool |
|---|---|
| CLI REPL | A y/N question in the terminal. |
One-shot (insightworker -c) | No terminal to ask in: approved only if AUTO_APPROVE_TOOLS=true is set, otherwise denied with a message. |
| VS Code extension | Inline Allow / Deny buttons in the chat panel. |
| Desktop app | An Allow / Deny dialog, with options to always allow that tool for the rest of the session or for the current workspace (saved, and editable in Settings). |
Web mode (--web), app widget UI (--ui) and headless app run | Approved automatically. |
Scheduler daemon and schedule run | Approved automatically — nobody is present to ask. See Daemon mode. |
Unattended runs
Because the scheduler approves every tool call, limit what a schedule can reach at the operating-system level: run the daemon as a user with narrow permissions, and leave out credentials the schedules do not need. Use insightworker schedule run --dry-run <name> to preview outgoing email before enabling a schedule.
Enterprise policy
In enterprise mode (the CLI is signed in to an InsightWorker console), the organisation's tool policy is checked before any tool runs. A tool on the blocked list, or missing from the allowed list when one is set, is refused on every surface, including the daemon.
See also
- Loop detector & iteration safety
- Tools overview — full tool catalog
- Daemon mode — unattended runs