Skip to content

Conversation

@lvndry
Copy link
Owner

@lvndry lvndry commented Feb 3, 2026

Description

Type of Change

  • πŸ› Bug fix
  • ✨ New feature
  • πŸ’₯ Breaking change
  • πŸ“š Documentation
  • ♻️ Refactoring
  • ⚑ Performance
  • βœ… Tests

Checklist

  • Code follows project style guidelines
  • Tests added/updated and passing
  • Documentation updated (if needed)

@gemini-code-assist
Copy link

Summary of Changes

Hello @lvndry, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the system's capabilities by integrating a new browser-use skill. This skill provides a powerful command-line interface for automating browser interactions, enabling tasks from simple navigation and form filling to complex data extraction and multi-session workflows. It aims to provide a robust tool for web-based operations, complementing existing functionalities. Additionally, a minor but important fix ensures proper state management within the LLM stream processing.

Highlights

  • New Browser Automation Skill: Introduced a new browser-use skill that provides a comprehensive command-line interface for automating browser interactions, including navigation, element interaction, state inspection, and data extraction.
  • Flexible Browser Modes: The browser-use skill supports various browser modes: headless Chromium for fast, isolated operations; 'real' Chrome for using existing user profiles with cookies and extensions; and 'remote' cloud-hosted browsers for advanced scenarios.
  • Advanced Interaction and Data Features: Added capabilities for persistent Python script execution within the browser context, AI agent tasks for complex workflows, and detailed cookie management, including syncing local Chrome profile cookies to cloud profiles with explicit user consent guidelines.
  • LLM Stream Processor Fix: Implemented a fix in src/services/llm/stream-processor.ts to correctly reset the reasoningSequence and reasoningStreamCompleted states after a tool call is completed, ensuring proper state management for subsequent reasoning streams.
Changelog
  • skills/browser-use/SKILL.md
    • Added a new skill definition file for browser-use, detailing its purpose, installation, usage, commands for navigation, interaction, state management, cookie handling, Python integration, agent tasks, and profile management.
  • src/services/llm/stream-processor.ts
    • Modified the StreamProcessor to reset reasoningSequence and reasoningStreamCompleted to their initial states upon the completion of a tool call, ensuring correct state for subsequent reasoning streams.
Activity
  • No specific activity (comments, reviews, etc.) has been provided for this pull request.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with πŸ‘ and πŸ‘Ž on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new browser-use skill with comprehensive documentation, and also includes a minor bug fix in the LLM stream processor. The documentation is well-structured, but I've identified a few examples that are inconsistent, potentially misleading, or confusing. My suggestions aim to improve the clarity and correctness of these examples to enhance user experience and prevent errors. The change to the stream processor appears to be a valid bug fix.

Comment on lines +280 to +282
# Sync additional domain to existing profile
browser-use --browser real --profile "Default" cookies export /tmp/cookies.json
browser-use --browser remote --profile <existing-id> cookies import /tmp/cookies.json

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The comment # Sync additional domain to existing profile is misleading. The provided command exports all cookies from the profile, not just those for a specific domain. This could lead to unintended data overwrites. The example should demonstrate how to correctly export cookies for a single domain, for example by using the --url flag.

Suggested change
# Sync additional domain to existing profile
browser-use --browser real --profile "Default" cookies export /tmp/cookies.json
browser-use --browser remote --profile <existing-id> cookies import /tmp/cookies.json
# Sync additional domain to existing profile
browser-use --browser real --profile "Default" cookies export /tmp/cookies.json --url https://domain-to-add.com
browser-use --browser remote --profile <existing-id> cookies import /tmp/cookies.json

browser-use cookies get # Get all cookies
browser-use cookies get --url <url> # Get cookies for specific URL
browser-use cookies set <name> <value> # Set a cookie
browser-use cookies set name val --domain .example.com --secure --http-only

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example for cookies set is confusing because name and val are used as placeholders without the standard <> notation, making them look like literal values. Using a concrete, realistic example would be clearer for the user.

Suggested change
browser-use cookies set name val --domain .example.com --secure --http-only
browser-use cookies set session_id "abc123xyz" --domain .example.com --secure --http-only

- `browser.click(index)` - Click element
- `browser.type(text)` - Type text
- `browser.screenshot(path)` - Take screenshot
- `browser.scroll()` - Scroll page

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an inconsistency in the documentation for browser.scroll(). Here it is listed without arguments, but the example on line 359 uses it with a direction argument (browser.scroll('down')). To avoid confusion, the method signature should reflect that it accepts an argument.

Suggested change
- `browser.scroll()` - Scroll page
- `browser.scroll(direction)` - Scroll page

Comment on lines +355 to +362
browser-use open https://example.com/products
browser-use python "
products = []
for i in range(20):
browser.scroll('down')
browser.screenshot('products.png')
"
browser-use python "print(f'Captured {len(products)} products')"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The example under 'Data Extraction with Python' is confusing as it initializes an empty products list but never populates it. Consequently, the final print statement will always show 'Captured 0 products', which does not demonstrate data extraction. To prevent misleading users, the example should be simplified to only show the actions it actually performs: scrolling and screenshotting.

Suggested change
browser-use open https://example.com/products
browser-use python "
products = []
for i in range(20):
browser.scroll('down')
browser.screenshot('products.png')
"
browser-use python "print(f'Captured {len(products)} products')"
browser-use open https://example.com/products
browser-use python "
for i in range(20):
browser.scroll('down')
browser.screenshot('products.png')
"

@lvndry lvndry merged commit c4e452e into main Feb 3, 2026
5 checks passed
@lvndry lvndry deleted the browser-use branch February 3, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants