﻿# Continue headless mode excludes tools that require a prompt

A Continue CLI task without an interactive session cannot wait for tool approval: ask-permission tools are excluded, so an unattended request may lack needed write capabilities.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-continue-headless-ask-excluded/
Language: en

## Recognize the missing interaction

A task that edits a file in an interactive Continue session produces only an explanation when moved into a script. The change may be a permission difference rather than a weaker prompt. The [headless guide](https://docs.continue.dev/cli/headless-mode) says tools requiring approval are automatically excluded because no user is present to answer. The agent cannot perform a tool operation that the headless request does not expose.

## Translate the required operation into tools

The [permission reference](https://docs.continue.dev/cli/tool-permissions) distinguishes automatically allowed tools, tools that ask and excluded tools. Write tools and terminal execution normally require a prompt. For a bounded automated edit, identify which tools are necessary and explicitly allow the intended capabilities. A request to “fix the file” expresses the desired outcome but does not independently override the active permission policy. Keep the allowed set proportional to the operation.

## Compare with the interactive approval path

In [TUI mode](https://docs.continue.dev/cli/tui-mode), the user can approve a specific tool call, reject it or save a persistent choice. Headless execution has no equivalent live decision for an `ask` operation. Do not interpret a missing approval prompt as implicit consent or as proof that the operation completed. Inspect the reported outcome and actual file state, particularly when an automation treats any final natural-language response as success.

## Design a bounded unattended check

Use a disposable example file and a simple requested revision with an obvious expected diff. First establish the effective permissions, then inspect whether the intended tool was available and whether the file changed. Separate inability to call a tool from a tool failure after invocation. If additional terminal execution is necessary, justify it through the task requirements rather than broadening every automation to unrestricted tools by default.

## Define completion outside the final prose

An automated caller should verify the expected artifact and relevant check before advancing its pipeline. The [task-contract guide](/journal/learn-codex-task-contract/) describes a concrete deliverable; [tool observations](/journal/learn-codex-tool-observation/) keep availability, attempted execution and resulting state distinct. Preserve the permission choices with the automation configuration. A workflow that previously relied on a human's judgment at each prompt needs an explicit replacement decision, not merely removal of the visible interface.
