Repository Analysis

browser-use/web-ui

🖥️ Run AI Agent in your browser.

29.4 Moderate AI signal View on GitHub
29.4
Adjusted Score
29.4
Raw Score
100%
Time Factor
2026-05-15
Last Push
16,015
Stars
Python
Language
5,894
Lines of Code
34
Files
174
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 2LOW 172

Pattern Findings

174 matches across 7 categories. Click a row to expand file-level details.

Unused Imports92 hits · 88 pts
SeverityFileLineSnippet
LOWtests/test_agents.py14
LOWtests/test_agents.py17
LOWtests/test_agents.py21
LOWtests/test_agents.py25
LOWtests/test_agents.py167
LOWtests/test_agents.py171
LOWtests/test_agents.py330
LOWtests/test_agents.py330
LOWtests/test_playwright.py1
LOWtests/test_controller.py56
LOWtests/test_controller.py58
LOWsrc/utils/utils.py6
LOWsrc/utils/utils.py7
LOWsrc/utils/utils.py8
LOWsrc/utils/utils.py9
LOWsrc/utils/llm_provider.py2
LOWsrc/utils/llm_provider.py4
LOWsrc/utils/llm_provider.py5
LOWsrc/utils/llm_provider.py5
LOWsrc/utils/llm_provider.py11
LOWsrc/utils/llm_provider.py11
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py12
LOWsrc/utils/llm_provider.py22
LOWsrc/utils/llm_provider.py22
LOWsrc/utils/llm_provider.py22
LOWsrc/utils/llm_provider.py22
LOWsrc/utils/llm_provider.py22
LOWsrc/utils/llm_provider.py30
LOWsrc/utils/llm_provider.py31
LOWsrc/utils/llm_provider.py32
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py34
LOWsrc/utils/llm_provider.py49
LOWsrc/utils/llm_provider.py50
LOWsrc/agent/browser_use/browser_use_agent.py1
LOWsrc/controller/custom_controller.py1
LOWsrc/controller/custom_controller.py3
LOWsrc/controller/custom_controller.py8
LOWsrc/controller/custom_controller.py9
LOWsrc/controller/custom_controller.py10
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py11
LOWsrc/controller/custom_controller.py25
32 more matches not shown…
Excessive Try-Catch Wrapping38 hits · 36 pts
SeverityFileLineSnippet
LOWtests/test_agents.py154 except Exception:
LOWtests/test_agents.py316 except Exception:
LOWtests/test_agents.py392 except Exception as e:
LOWsrc/utils/utils.py36 except Exception as e:
MEDIUMsrc/utils/utils.py37 print(f"Error getting latest {file_type} file: {e}")
LOWsrc/utils/mcp_client.py41 except Exception as e:
LOWsrc/utils/mcp_client.py107 except Exception:
LOWsrc/agent/browser_use/browser_use_agent.py158 except Exception as script_gen_err:
LOWsrc/agent/deep_research/deep_research_agent.py434 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py446 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py402 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py413 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py457 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py1036 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py1201 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py1244 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py171 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py182 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py189 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py604 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py745 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py791 except Exception as e:
LOWsrc/agent/deep_research/deep_research_agent.py930 except Exception as e:
LOWsrc/controller/custom_controller.py104 except Exception as e:
LOWsrc/controller/custom_controller.py151 except Exception as e:
LOWsrc/webui/components/deep_research_agent_tab.py36 except Exception as e:
LOWsrc/webui/components/deep_research_agent_tab.py50 except Exception as e:
LOWsrc/webui/components/deep_research_agent_tab.py220 except Exception as e:
LOWsrc/webui/components/deep_research_agent_tab.py270 except Exception as e:
LOWsrc/webui/components/deep_research_agent_tab.py315 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py61 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py123 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py172 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py613 except Exception: # Catch task exceptions if it errors on stop
LOWsrc/webui/components/browser_use_agent_tab.py675 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py724 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py774 except Exception as e:
LOWsrc/webui/components/browser_use_agent_tab.py920 except Exception as e:
Deep Nesting17 hits · 16 pts
SeverityFileLineSnippet
LOWsrc/utils/utils.py20
LOWsrc/utils/mcp_client.py46
LOWsrc/utils/mcp_client.py134
LOWsrc/utils/llm_provider.py152
LOWsrc/agent/browser_use/browser_use_agent.py31
LOWsrc/agent/browser_use/browser_use_agent.py48
LOWsrc/agent/deep_research/deep_research_agent.py338
LOWsrc/agent/deep_research/deep_research_agent.py421
LOWsrc/agent/deep_research/deep_research_agent.py461
LOWsrc/agent/deep_research/deep_research_agent.py609
LOWsrc/agent/deep_research/deep_research_agent.py811
LOWsrc/agent/deep_research/deep_research_agent.py1085
LOWsrc/controller/custom_controller.py110
LOWsrc/webui/interface.py22
LOWsrc/webui/webui_manager.py97
LOWsrc/webui/components/deep_research_agent_tab.py57
LOWsrc/webui/components/browser_use_agent_tab.py275
Redundant / Tautological Comments11 hits · 16 pts
SeverityFileLineSnippet
LOWtests/test_agents.py358 task_id_to_resume = "" # Set this to resume a previous task ID
LOWsrc/utils/mcp_client.py67 # Check if parameter is required
LOWsrc/utils/mcp_client.py231 # Check if required
LOWsrc/agent/browser_use/browser_use_agent.py77 # Check if waiting for user input after Ctrl+C
LOWsrc/agent/browser_use/browser_use_agent.py82 # Check if we should stop due to too many failures
LOWsrc/agent/deep_research/deep_research_agent.py955 # Check if the current indices point to a valid pending task
LOWsrc/webui/components/browser_use_agent_tab.py599 # Check if agent stopped itself or stop button was pressed (which sets agent.state.stopped)
LOWsrc/webui/components/browser_use_agent_tab.py617 # Check if agent is asking for help (via response_event)
LOWsrc/webui/components/browser_use_agent_tab.py699 elif agent_task.exception(): # Check if task finished with exception
LOWsrc/webui/components/browser_use_agent_tab.py803 # Check if waiting for user assistance
LOWsrc/webui/components/browser_use_agent_tab.py821 # Check if a task is currently running (using _current_task)
Hyper-Verbose Identifiers9 hits · 9 pts
SeverityFileLineSnippet
LOWtests/test_agents.py166async def test_browser_use_parallel():
LOWsrc/utils/mcp_client.py17async def setup_mcp_client_and_tools(mcp_server_config: Dict[str, Any]) -> Optional[MultiServerMCPClient]:
LOWsrc/agent/deep_research/deep_research_agent.py438def _save_search_results_to_json(results: List[Dict[str, Any]], output_dir: str):
LOWsrc/agent/deep_research/deep_research_agent.py271def create_browser_search_tool(
LOWsrc/webui/components/deep_research_agent_tab.py376def create_deep_research_agent_tab(webui_manager: WebuiManager):
LOWsrc/webui/components/agent_settings_tab.py46def create_agent_settings_tab(webui_manager: WebuiManager):
LOWsrc/webui/components/browser_use_agent_tab.py972def create_browser_use_agent_tab(webui_manager: WebuiManager):
LOWsrc/webui/components/load_save_config_tab.py8def create_load_save_config_tab(webui_manager: WebuiManager):
LOWsrc/webui/components/browser_settings_tab.py30def create_browser_settings_tab(webui_manager: WebuiManager):
Over-Commented Block5 hits · 5 pts
SeverityFileLineSnippet
LOWtests/test_agents.py41 # temperature=0.6,
LOWtests/test_agents.py61 # llm = utils.get_llm_model(
LOWtests/test_agents.py181 # temperature=0.8,
LOWtests/test_controller.py21 # "run",
LOWtests/test_controller.py61 "mcpServers": {
AI Slop Vocabulary2 hits · 3 pts
SeverityFileLineSnippet
MEDIUMsrc/agent/deep_research/deep_research_agent.py876 """You are a professional researcher tasked with writing a comprehensive and well-structured report base
LOWsrc/webui/components/browser_use_agent_tab.py603 # Ensure the task coroutine finishes if agent just set flag