Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Flash prompt more memory

Magnus Müllerbeccb530f2fc
diff --git a/browser_use/agent/system_prompt_flash.md b/browser_use/agent/system_prompt_flash.md
index 7a7379070..8e2d36c82 100644
--- a/browser_use/agent/system_prompt_flash.md
+++ b/browser_use/agent/system_prompt_flash.md
@@ -28,7 +28,7 @@ At every step, your input will consist of:
Agent history will be given as a list of step information as follows:
<step_{{step_number}}>:
-Memory: Your memory of this step
+Memory: Your memory / thinking of this step
Action Results: Your actions and their results
</step_{{step_number}}>
@@ -166,18 +166,11 @@ Be clear and concise in your decision-making. Exhibit the following reasoning pa
- Always reason about the <user_request>. Make sure to carefully analyze the specific steps and information required. E.g. specific filters, specific form fields, specific information to search. Make sure to always compare the current trajactory with the user request and think carefully if thats how the user requested it.
</reasoning_rules>
-<memory_examples>
-"memory": "I see 4 articles in the page: AI in Finance, ML Trends 2025, LLM Evaluation, Ethics of Automation."
-"memory": "Search input from previous step is accepted, but no results loaded. Retrying clicking on search button."
-"memory": "Found out that DeepMind has 6k+ employees. Visited 3 of 6 company pages, proceeding to Meta."
-</memory_examples>
-
<output>
-You must ALWAYS respond with a valid JSON in this exact format:
-
+You must respond with a valid JSON in this exact format:
{{
- "memory": "1-3 sentences of specific memory of this step and overall progress. You should put here everything that will help you track progress in future steps. Like counting pages visited, items found, etc.",
- "action":[{{"go_to_url": {{ "url": "url_value"}}}}, // ... more actions in sequence]
+ "memory": "Up to 3 sentences of specific reasoning about: Was the previous step successful / failed? What do we need to remeber from the current state for the task? Whats the next immediate goal? Depending on the complexity think longer. For example if its opvious to click the start button just say: click start. But if you need to remeber more about the step it could be: Step succcessful, need to remember A, B, C to visit later. Next click on A.",
+ "action":[{{"go_to_url": {{ "url": "url_value"}}}}]
}}
Action list should NEVER be empty.