Skip to content

Commit eea9965

Browse files
Add Reset to Default buttons and improve system prompts with detailed tool usage instructions
- Added Reset to Default buttons for Actioner, Planner, and Coordinator prompts - Completely rewrote default system prompts with comprehensive tool usage guides - Actioner prompt now includes detailed examples, correct tool call formats, and common mistakes to avoid - Added step-by-step workflow examples for common tasks (opening apps, clicking buttons, browser automation) - Emphasized mandatory use of window handles for all keyboard/mouse operations - Added visual formatting with emojis for better readability - Planner prompt now includes iterative planning approach (one step at a time) - Coordinator prompt updated with clearer routing guidelines - All prompts now emphasize observation-first approach (CaptureWholeScreen before acting) - Added static methods in ToolConfig to retrieve default prompts: GetDefaultActionerPrompt(), GetDefaultPlannerPrompt(), GetDefaultCoordinatorPrompt() This should significantly improve the agents' ability to use tools correctly.
1 parent c4df871 commit eea9965

3 files changed

Lines changed: 568 additions & 158 deletions

File tree

FlowVision/ToolConfigForm.Designer.cs

Lines changed: 42 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FlowVision/ToolConfigForm.cs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,58 @@ private void chkPluginStatus_CheckedChanged(object sender, EventArgs e)
832832
// Update status indicators when any plugin checkbox changes
833833
UpdateStatusIndicators();
834834
}
835+
836+
// Reset button event handlers
837+
private void btnResetActioner_Click(object sender, EventArgs e)
838+
{
839+
if (MessageBox.Show(
840+
"Are you sure you want to reset the Actioner system prompt to default?\n\nThis will overwrite your current prompt.",
841+
"Reset to Default",
842+
MessageBoxButtons.YesNo,
843+
MessageBoxIcon.Question) == DialogResult.Yes)
844+
{
845+
txtActionerSystemPrompt.Text = ToolConfig.GetDefaultActionerPrompt();
846+
MessageBox.Show(
847+
"Actioner system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
848+
"Reset Complete",
849+
MessageBoxButtons.OK,
850+
MessageBoxIcon.Information);
851+
}
852+
}
853+
854+
private void btnResetPlanner_Click(object sender, EventArgs e)
855+
{
856+
if (MessageBox.Show(
857+
"Are you sure you want to reset the Planner system prompt to default?\n\nThis will overwrite your current prompt.",
858+
"Reset to Default",
859+
MessageBoxButtons.YesNo,
860+
MessageBoxIcon.Question) == DialogResult.Yes)
861+
{
862+
txtPlannerSystemPrompt.Text = ToolConfig.GetDefaultPlannerPrompt();
863+
MessageBox.Show(
864+
"Planner system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
865+
"Reset Complete",
866+
MessageBoxButtons.OK,
867+
MessageBoxIcon.Information);
868+
}
869+
}
870+
871+
private void btnResetCoordinator_Click(object sender, EventArgs e)
872+
{
873+
if (MessageBox.Show(
874+
"Are you sure you want to reset the Coordinator system prompt to default?\n\nThis will overwrite your current prompt.",
875+
"Reset to Default",
876+
MessageBoxButtons.YesNo,
877+
MessageBoxIcon.Question) == DialogResult.Yes)
878+
{
879+
txtCoordinatorSystemPrompt.Text = ToolConfig.GetDefaultCoordinatorPrompt();
880+
MessageBox.Show(
881+
"Coordinator system prompt has been reset to default.\n\nDon't forget to click 'Save' to apply the changes!",
882+
"Reset Complete",
883+
MessageBoxButtons.OK,
884+
MessageBoxIcon.Information);
885+
}
886+
}
835887
}
836888

837889
// Simple input dialog for profile name entry

0 commit comments

Comments
 (0)