-
Notifications
You must be signed in to change notification settings - Fork 897
More agent presets #339
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
More agent presets #339
Changes from all commits
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 |
|---|---|---|
|
|
@@ -21,6 +21,15 @@ interface PresetTemplate { | |
| } | ||
|
|
||
| const PRESET_TEMPLATES: PresetTemplate[] = [ | ||
| { | ||
| name: "Claude (Danger Mode)", | ||
| description: "Claude Code with permissions auto-approved", | ||
| preset: { | ||
| name: "Claude Danger", | ||
| cwd: "", | ||
| commands: ["claude --dangerously-skip-permissions"], | ||
| }, | ||
| }, | ||
| { | ||
| name: "Codex (Danger Mode)", | ||
| description: "OpenAI Codex with full sandbox access and high reasoning", | ||
|
|
@@ -33,12 +42,21 @@ const PRESET_TEMPLATES: PresetTemplate[] = [ | |
| }, | ||
| }, | ||
| { | ||
| name: "Claude (Danger Mode)", | ||
| description: "Claude Code with permissions auto-approved", | ||
| name: "Gemini CLI (YOLO)", | ||
| description: "Google Gemini CLI with auto-approve all actions", | ||
| preset: { | ||
| name: "Claude Danger", | ||
| name: "Gemini YOLO", | ||
| cwd: "", | ||
| commands: ["claude --dangerously-skip-permissions"], | ||
| commands: ["gemini --yolo"], | ||
| }, | ||
| }, | ||
|
Comment on lines
44
to
+52
Contributor
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. 🧩 Analysis chain🌐 Web query:
💡 Result: The --yolo (short: -y) flag enables "YOLO mode" in the Gemini CLI: it auto-approves all actions the agent would otherwise prompt for (file edits, shell commands, tool runs), i.e., it disables interactive permission prompts for rapid/headless automation. It can also be selected via --approval-mode=yolo. Use with extreme caution (run only in trusted/sandboxed environments). Example: gemini --yolo "Fix failing tests" or gemini -p "Refactor X" --approval-mode=yolo. [1][2][3] Sources:
🌐 Web query:
💡 Result: Use the --yolo flag or the --approval-mode flag. Examples:
References: Gemini CLI docs and CLI API reference. [1] [2] Remove or warn users about the inherent risks of the The 🤖 Prompt for AI Agents |
||
| { | ||
| name: "Cursor Agent", | ||
| description: "Cursor AI agent for terminal-based coding assistance", | ||
| preset: { | ||
| name: "Cursor Agent", | ||
| cwd: "", | ||
| commands: ["cursor-agent"], | ||
| }, | ||
| }, | ||
| ]; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 8312
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 91
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 91
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 91
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 453
🏁 Script executed:
rg -n "commands\[" apps/desktop/src/renderer -C 3Repository: superset-sh/superset
Length of output: 1027
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
# Check PresetRow component for any warnings cat -n apps/desktop/src/renderer/screens/main/components/SettingsView/PresetsSettings/PresetRow.tsxRepository: superset-sh/superset
Length of output: 188
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 755
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 32033
🏁 Script executed:
# Check the presets hook/query cat -n apps/desktop/src/renderer/react-query/presets.tsRepository: superset-sh/superset
Length of output: 144
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 3536
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 645
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 2260
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 2230
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 2408
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 3652
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 18782
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 2952
🏁 Script executed:
cat -n apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/Terminal.tsx | head -100Repository: superset-sh/superset
Length of output: 5020
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 8443
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 50376
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 1737
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 5069
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 656
🏁 Script executed:
Repository: superset-sh/superset
Length of output: 46
Add confirmation dialog when executing presets with dangerous flags.
These presets execute immediately without any warning or confirmation when selected:
--dangerously-skip-permissions--ask-for-approval never--yoloThe commands are written directly to the terminal via
setupDataHandlerinsession.ts(line 166-167) with no validation or user confirmation. Add anAlertDialoginTabsCommandDialogto warn users before executing presets containing dangerous flags.