Skip to content

Commit 173b563

Browse files
continue[bot]ContinueUsername
committed
docs: document CLI tool permissions and headless mode behavior
- Add info callouts explaining tool permission levels (allow/ask/exclude) - Document differences between TUI and headless mode tool availability - Clarify that 'ask' permission tools are excluded in headless mode - Provide guidance on choosing between TUI and headless modes - Reference PR #8416 implementation Fixes CON-4622 Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev> Co-authored-by: Username <nate@continue.dev>
1 parent cc2a6c3 commit 173b563

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

docs/cli/overview.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,21 @@ cn -p "Update documentation based on recent code changes"
7777
- **CI/CD and pipeline integration**
7878
- **Git hooks and automated workflows**
7979

80+
<Info>
81+
**Tool Permissions in TUI vs Headless Mode**
82+
83+
Continue CLI tools have three permission levels:
84+
- **allow**: Executes automatically without confirmation
85+
- **ask**: Prompts for user confirmation before execution (e.g., `writeFile`, `runTerminalCommand`)
86+
- **exclude**: Tool is not available to the AI
87+
88+
**In headless mode**, tools with "ask" permission are automatically excluded to prevent the AI from seeing tools it cannot call. This ensures reliable automation without user intervention.
89+
90+
**In TUI mode**, tools with "ask" permission are available and will prompt for confirmation when the AI attempts to use them.
91+
92+
💡 **Tip**: If your workflow requires tools that need confirmation (like file writes or terminal commands), use TUI mode. For fully automated workflows with read-only operations, use headless mode.
93+
</Info>
94+
8095
### Development Workflow: TUI → Headless
8196

8297
<Tip>

docs/cli/quick-start.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,16 @@ cn -p "Update version numbers and create release branch"
121121
✅ **Git hooks** for automated checks
122122
✅ **Scheduled tasks** that run unattended
123123
124+
<Info>
125+
**Tool Permission Differences Between Modes**
126+
127+
Tools requiring user confirmation ("ask" permission) like `writeFile` and `runTerminalCommand` are:
128+
- **Available in TUI mode** - AI can use them with your approval
129+
- **Excluded in headless mode** - AI cannot see or call them
130+
131+
This prevents the AI from attempting operations that require user interaction when running in automated environments. Choose TUI mode if your workflow needs tools that modify files or run commands.
132+
</Info>
133+
124134
### Available Slash Commands
125135
126136
Common slash commands available in CLI:

0 commit comments

Comments
 (0)