Skip to content

Phase 3: polish - #129

Merged
rcholic merged 2 commits into
bu_phase2from
bu_phase3
Jan 9, 2026
Merged

Phase 3: polish#129
rcholic merged 2 commits into
bu_phase2from
bu_phase3

Conversation

@rcholic

Copy link
Copy Markdown
Contributor

7. Implementation Roadmap

Approach: Ship v0 minimal slice first (see Appendix B.10), then expand.

Phase 1: v0 Proof of Concept

  • Implement CDPTransport protocol and BrowserUseCDPTransport
  • Implement CDPBackendV0 (10 methods from B.10.1)
  • Implement BrowserUseAdapter.get_transport()
  • Load Sentience extension into browser-use via --load-extension
  • Upgrade click_async with scroll handling (B.10.7)
  • Test on 3-5 representative pages

Phase 2: Full Integration

  • Add type_async, scroll_async actions using Sentience grounding
  • Refactor existing actions.py and snapshot.py to use backend protocol
  • Create PlaywrightBackend wrapper for backwards compatibility
  • Add snapshot caching with staleness detection
  • Write comprehensive tests

Phase 3: Polish

  • Documentation and examples
  • Performance benchmarking vs. baseline browser-use
  • Error handling for extension loading failures

8. Risks and Mitigations

RiskLikelihoodMitigation
Extension injection fails (CSP)MediumFall back to CDP-only mode
Snapshot too slow (<500ms target)LowCache snapshots, only refresh on navigation
API key management complexityLowUse env vars, match browser-use patterns
CDP vs Playwright API driftLowAbstract via adapter layer

@rcholic
rcholic marked this pull request as ready for review January 9, 2026 05:49
@rcholic
rcholic merged commit b662c4e into bu_phase2Jan 9, 2026
@rcholic
rcholic deleted the bu_phase3 branch January 9, 2026 05:49
rcholic pushed a commit that referenced this pull request Jan 10, 2026
Sign up for freeto 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.

1 participant

@rcholic