You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autonomous mode allows Kilo Code to run in automated environments like CI/CD pipelines without requiring user interaction.
218
-
219
-
```bash
220
-
# Run in autonomous mode with a prompt
221
-
kilocode --auto "Implement feature X"
222
-
223
-
# Run in autonomous mode with piped input
224
-
echo"Fix the bug in app.ts"| kilocode --auto
225
-
226
-
# Run in autonomous mode with timeout (in seconds)
227
-
kilocode --auto "Run tests" --timeout 300
228
-
229
-
# Run in autonomous mode with JSON output for structured parsing
230
-
kilocode --auto --json "Implement feature X"
231
-
```
232
-
233
-
### Autonomous Mode Behavior
234
-
235
-
When running in Autonomous mode (`--auto` flag):
236
-
237
-
1. **No User Interaction**: All approval requests are handled automatically based on configuration
238
-
2. **Auto-Approval/Rejection**: Operations are approved or rejected based on your auto-approval settings
239
-
3. **Follow-up Questions**: Automatically responded with a message instructing the AI to make autonomous decisions
240
-
4. **Automatic Exit**: The CLI exits automatically when the task completes or times out
241
-
242
-
### JSON Output Mode
215
+
## Auto-approval settings
243
216
244
-
Use the `--json` flag with `--auto`to get structured JSON output instead of the default terminal UI. This is useful for programmatic integration and parsing of Kilo Code responses.
217
+
Auto-approval allows the Kilo Code CLI to perform operations without first requiring user confirmation. These settings can either be built up over timein interactive mode, or by editing your config file using `kilocode config` or editing the file directly at `~/.kilocode/config.json`.
245
218
246
-
```bash
247
-
# Standard autonomous mode with terminal UI
248
-
kilocode --auto "Fix the bug"
249
-
250
-
# Autonomous mode with JSON output
251
-
kilocode --auto --json "Fix the bug"
252
-
253
-
# With piped input
254
-
echo"Implement feature X"| kilocode --auto --json
255
-
```
256
-
257
-
**Requirements:**
258
-
259
-
- The `--json` flag requires `--auto` mode to be enabled
260
-
- Output is sent to stdout as structured JSON for easy parsing
261
-
- Ideal for CI/CD pipelines and automated workflows
262
-
263
-
### Auto-Approval Configuration
264
-
265
-
Autonomous mode respects your auto-approval configuration. Edit your config file with `kilocode config` to customize:
219
+
### Default auto-approval settings
266
220
267
221
```json
268
222
{
269
223
"autoApproval": {
270
224
"enabled": true,
271
225
"read": {
272
226
"enabled": true,
273
-
"outside": true
227
+
"outside": false
274
228
},
275
229
"write": {
276
230
"enabled": true,
@@ -353,6 +307,12 @@ The `execute.allowed` and `execute.denied` lists support hierarchical pattern ma
353
307
}
354
308
```
355
309
310
+
## Interactive Mode
311
+
312
+
Interactive mode is the default mode when running Kilo Code without the `--auto` flag, designed to work interactively with a user through the console.
313
+
314
+
In interactive mode Kilo Code will request approval for operations which have not been auto-approved, allowing the user to review and approve operations before they are executed, and optionally add them to the auto-approval list.
315
+
356
316
### Interactive Command Approval
357
317
358
318
When running in interactive mode, command approval requests now show hierarchical options:
@@ -374,6 +334,58 @@ Selecting an "Always run" option will:
374
334
375
335
This allows you to progressively build your auto-approval rules without manually editing the config file.
376
336
337
+
## Autonomous mode (Non-Interactive)
338
+
339
+
Autonomous mode allows Kilo Code to run in automated environments like CI/CD pipelines without requiring user interaction.
340
+
341
+
```bash
342
+
# Run in autonomous mode with a prompt
343
+
kilocode --auto "Implement feature X"
344
+
345
+
# Run in autonomous mode with piped input
346
+
echo"Fix the bug in app.ts"| kilocode --auto
347
+
348
+
# Run in autonomous mode with timeout (in seconds)
349
+
kilocode --auto "Run tests" --timeout 300
350
+
351
+
# Run in autonomous mode with JSON output for structured parsing
352
+
kilocode --auto --json "Implement feature X"
353
+
```
354
+
355
+
### Autonomous Mode Behavior
356
+
357
+
When running in Autonomous mode (`--auto` flag):
358
+
359
+
1. **No User Interaction**: All approval requests are handled automatically based on configuration
360
+
2. **Auto-Approval/Rejection**: Operations are approved or rejected based on your auto-approval settings
361
+
3. **Follow-up Questions**: Automatically responded with a message instructing the AI to make autonomous decisions
362
+
4. **Automatic Exit**: The CLI exits automatically when the task completes or times out
363
+
364
+
### JSON Output Mode
365
+
366
+
Use the `--json` flag with `--auto` to get structured JSON output instead of the default terminal UI. This is useful for programmatic integration and parsing of Kilo Code responses.
367
+
368
+
```bash
369
+
# Standard autonomous mode with terminal UI
370
+
kilocode --auto "Fix the bug"
371
+
372
+
# Autonomous mode with JSON output
373
+
kilocode --auto --json "Fix the bug"
374
+
375
+
# With piped input
376
+
echo"Implement feature X"| kilocode --auto --json
377
+
```
378
+
379
+
**Requirements:**
380
+
381
+
- The `--json` flag requires `--auto` mode to be enabled
382
+
- Output is sent to stdout as structured JSON for easy parsing
383
+
- Ideal for CI/CD pipelines and automated workflows
384
+
385
+
### Auto-Approval in Autonomous Mode
386
+
387
+
Autonomous mode respects your [auto-approval configuration](#auto-approval-settings). Operations which are not auto-approved will not be allowed.
388
+
377
389
### Autonomous Mode Follow-up Questions
378
390
379
391
In Autonomous mode, when the AI asks a follow-up question, it receives this response:
0 commit comments