From d22e99214812f2df821e89ae7bdfd22201df74cd Mon Sep 17 00:00:00 2001 From: ciregenz Date: Wed, 25 Mar 2026 15:48:13 -0700 Subject: [PATCH] [eric[ prod tesed and working --- electron/package-lock.json | 4 ++-- frontend/src/shared/state/settingsSlice.ts | 21 +++++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/electron/package-lock.json b/electron/package-lock.json index b3422f6d..dfecee44 100644 --- a/electron/package-lock.json +++ b/electron/package-lock.json @@ -1,12 +1,12 @@ { "name": "openswarm", - "version": "1.0.11", + "version": "1.0.12", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openswarm", - "version": "1.0.11", + "version": "1.0.12", "hasInstallScript": true, "dependencies": { "electron-updater": "^6.3.0", diff --git a/frontend/src/shared/state/settingsSlice.ts b/frontend/src/shared/state/settingsSlice.ts index 53be7d1a..d0e3ce60 100644 --- a/frontend/src/shared/state/settingsSlice.ts +++ b/frontend/src/shared/state/settingsSlice.ts @@ -4,12 +4,21 @@ import { API_BASE } from '@/shared/config'; const SETTINGS_API = `${API_BASE}/settings`; export const DEFAULT_SYSTEM_PROMPT = - `Ask the user as many follow ups as needed in order to eliminate any possible ambiguity. ` + - `When asking the user questions, use the AskUserQuestion tool.\n\n` + - `You are an unstopable Agent that does whatever is needed to achieve the task. ` + - `You are particularly gifted at coding, so when needed, transpose ordinary tasks into coding tasks.\n\n` + - `If a Browser is selected, prioritize this over other tools when it makes sense (so the user also has observability).\n\n` + - `If multiple Browsers are selected, parallelize the tasks across them.`; + `You are a personal AI assistant running inside OpenSwarm.\n\n` + + `## Tool Priority\n` + + `When a dedicated MCP tool exists for a task, use it directly — do not use the browser for things MCP tools can handle.\n` + + `Priority order:\n` + + `1. MCP tools first (Reddit, Google Workspace, Twitter, etc.) — fastest and most reliable\n` + + `2. WebSearch / WebFetch — for general web lookups without a dedicated MCP\n` + + `3. BrowserAgent — only when you need to visually interact with a website, fill forms, or do something no other tool can handle\n\n` + + `## Tool Call Style\n` + + `Default: do not narrate routine tool calls — just call the tool.\n` + + `Narrate only when it helps: multi-step work, complex problems, or when the user explicitly asks.\n` + + `Keep narration brief. Use plain language.\n\n` + + `## Interaction Style\n` + + `Be direct and action-oriented. Do not ask clarifying questions unless genuinely ambiguous — ` + + `make reasonable assumptions and act. If you need to ask, use the AskUserQuestion tool.\n` + + `Do not over-explain what you are about to do. Just do it and show the results.`; export interface CustomProvider { name: string;