Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/clarify-permission-mode-copy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@moonshot-ai/kimi-code": patch
---

Clarify which actions YOLO and Auto permission modes approve automatically across the CLI and TUI.
4 changes: 2 additions & 2 deletions apps/kimi-code/src/cli/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export function createProgram(
)
.option('-c, --continue', 'Continue the previous session for the working directory.', false)
.addOption(new Option('-C').hideHelp().default(false))
.option('-y, --yolo', 'Auto-approve regular tool calls; the agent may still ask questions.', false)
.option('--auto', 'Start in auto permission mode: fully autonomous, the agent will not ask questions.', false)
.option('-y, --yolo', 'Auto-approve regular tools; sensitive actions may still need approval, and the agent may ask.', false)
.option('--auto', 'Run unattended: auto-approve permission prompts and never ask questions.', false)
.addOption(
new Option(
'-m, --model <model>',
Expand Down
8 changes: 4 additions & 4 deletions apps/kimi-code/src/tui/commands/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export async function handleYoloCommand(host: SlashCommandHost, args: string): P
}
await session.setPermission('yolo');
host.setAppState({ permissionMode: 'yolo' });
host.showNotice('YOLO mode: ON', 'Tool actions auto-approved; the agent may still ask you questions.');
host.showNotice('YOLO mode: ON', 'Regular tools auto-approved; sensitive actions may still need approval, and the agent may ask.');
return;
}

Expand All @@ -153,7 +153,7 @@ export async function handleYoloCommand(host: SlashCommandHost, args: string): P
} else {
await session.setPermission('yolo');
host.setAppState({ permissionMode: 'yolo' });
host.showNotice('YOLO mode: ON', 'Tool actions auto-approved; the agent may still ask you questions.');
host.showNotice('YOLO mode: ON', 'Regular tools auto-approved; sensitive actions may still need approval, and the agent may ask.');
}
}

Expand All @@ -174,7 +174,7 @@ export async function handleAutoCommand(host: SlashCommandHost, args: string): P
}
await session.setPermission('auto');
host.setAppState({ permissionMode: 'auto' });
host.showNotice('Auto mode: ON', 'All actions auto-approved; the agent will not ask you questions.');
host.showNotice('Auto mode: ON', 'Permission prompts auto-approved; the agent will not ask you questions.');
return;
}

Expand All @@ -197,7 +197,7 @@ export async function handleAutoCommand(host: SlashCommandHost, args: string): P
} else {
await session.setPermission('auto');
host.setAppState({ permissionMode: 'auto' });
host.showNotice('Auto mode: ON', 'All actions auto-approved; the agent will not ask you questions.');
host.showNotice('Auto mode: ON', 'Permission prompts auto-approved; the agent will not ask you questions.');
}
}

Expand Down
4 changes: 2 additions & 2 deletions apps/kimi-code/src/tui/commands/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ export const BUILTIN_SLASH_COMMANDS = [
{
name: 'yolo',
aliases: ['yes'],
description: 'Toggle YOLO mode: auto-approve tool actions, but the agent may still ask questions.',
description: 'Toggle YOLO mode: auto-approve regular tools; sensitive actions may still need approval, and the agent may ask.',
priority: 101,
availability: 'always',
},
{
name: 'auto',
aliases: [],
description: 'Toggle Auto mode: fully autonomous, agent decides everything without asking.',
description: 'Toggle Auto mode: run unattended, auto-approve permission prompts, and never ask questions.',
priority: 99,
availability: 'always',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ const PERMISSION_OPTIONS: readonly ChoiceOption[] = [
{
value: 'manual',
label: 'Manual',
description: 'Approve every action yourself.',
description: 'Review actions that require approval.',
},
{
value: 'yolo',
label: 'YOLO',
description: 'Auto-approve tool actions, but the agent may still ask questions.',
description: 'Auto-approve regular tools; sensitive actions may still need approval, and the agent may ask.',
},
{
value: 'auto',
label: 'Auto',
description: 'Fully autonomousagent decides everything without asking.',
description: 'Run unattendedauto-approve permission prompts and never ask questions.',
},
];

Expand Down
2 changes: 1 addition & 1 deletion apps/kimi-code/src/tui/controllers/session-replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ export class SessionReplayRenderer {
if (mode === 'yolo') {
this.host.appendTranscriptEntry(
replayEntry(context, 'status', 'YOLO mode: ON', 'notice', {
detail: 'Tool actions auto-approved; the agent may still ask you questions.',
detail: 'Regular tools auto-approved; sensitive actions may still need approval, and the agent may ask.',
}),
);
return;
Expand Down