Skip to content

Commit bc2ae94

Browse files
authored
Merge pull request #8467 from continuedev/continuebot/con-4622
2 parents 6017c82 + 173b563 commit bc2ae94

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)