-
Notifications
You must be signed in to change notification settings - Fork 11.7k
fix: allow ask_user tool in interactive yolo mode
#18541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
20ab418
c7c4527
1075dc6
897cafc
72b80b6
981206c
6593bf1
f1c4d6a
c0d53f8
654d63f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,7 @@ export interface SystemPromptOptions { | |
| planningWorkflow?: PlanningWorkflowOptions; | ||
| operationalGuidelines?: OperationalGuidelinesOptions; | ||
| sandbox?: SandboxMode; | ||
| interactiveYoloMode?: boolean; | ||
| gitRepo?: GitRepoOptions; | ||
| } | ||
|
|
||
|
|
@@ -111,6 +112,8 @@ ${ | |
|
|
||
| ${renderOperationalGuidelines(options.operationalGuidelines)} | ||
|
|
||
| ${renderInteractiveYoloMode(options.interactiveYoloMode)} | ||
|
|
||
| ${renderSandbox(options.sandbox)} | ||
|
|
||
| ${renderGitRepo(options.gitRepo)} | ||
|
|
@@ -312,6 +315,25 @@ export function renderSandbox(mode?: SandboxMode): string { | |
| return ''; | ||
| } | ||
|
|
||
| export function renderInteractiveYoloMode(enabled?: boolean): string { | ||
| if (!enabled) return ''; | ||
| return ` | ||
| # Autonomous Mode (YOLO) | ||
|
|
||
| You are operating in **autonomous mode**. The user has requested minimal interruption. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It'd be great to have 1-3 evals to cover the major scenarios.
These can be a bit of a pain to implement so I think it's also fine if you just wanted to add one. |
||
|
|
||
| **Only use the \`${ASK_USER_TOOL_NAME}\` tool if:** | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We may find we get better behavior with at least one example. |
||
| - A wrong decision would cause significant re-work | ||
| - The request is fundamentally ambiguous with no reasonable default | ||
| - The user explicitly asks you to confirm or ask questions | ||
|
|
||
| **Otherwise, work autonomously:** | ||
| - Make reasonable decisions based on context and existing code patterns | ||
| - Follow established project conventions | ||
| - If multiple valid approaches exist, choose the most robust option | ||
| `.trim(); | ||
| } | ||
|
|
||
| export function renderGitRepo(options?: GitRepoOptions): string { | ||
| if (!options) return ''; | ||
| return ` | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.