<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Validate that the selected `browser-use-terminal` binary supports the
SDK server to avoid launching incompatible CLIs. We now probe `--help`
and only use binaries that advertise the `sdk-server` subcommand.
- **Bug Fixes**
- Check `--help` output (5s timeout) and require `sdk-server` to be
present.
- Accept binaries from `BUT_HOME` standalone, `BUT_INSTALL_DIR`, or PATH
only; drop local debug target paths to avoid picking outdated builds.
- Raise a clear error with the install hint if no valid binary is found.
- Fix discovery test to echo `sdk-server` on `--help` and set the stub
binary executable.
<sup>Written for commit b4e3fb833a.
Summary will update on new commits.</sup>
<a
href="https://cubic.dev/pr/browser-use/browser-use/pull/4996?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
<!-- This is an auto-generated description by cubic. -->
## Summary by cubic
Adds an opt‑in Rust-backed agent that runs via the terminal SDK server
while keeping the default Python `Agent` unchanged. Also adds Anthropic
model support/pricing, safer downloads and auto‑navigation, and deeper
Rust histories with reliable usage/cost and final‑result recovery.
- **New Features**
- New `browser_use.rust.Agent` (stdio SDK server) with session reuse;
exports `RustAgentError` (also via `browser_use.agent`) and
`find_browser_use_terminal_binary`; README quickstart and
`examples/rust_agent/basic.py`; adds
`RUST_AGENT_INTEGRATION_FEATURES.md` with feature/proof ledger.
- Richer Rust history and recovery: reconstructs streamed model/tool
output and deltas, structured tool outputs, exec output/errors/waits,
reasoning, screenshots/GIFs, artifacts, browser‑script URLs, and
sub‑agent events; handles rollbacks/compaction and cancellations;
dedupes live/projected events; bounds JSON‑RPC responses; recovers
finals from `agent.event`/projected SDK notifications; ignores internal
browser-control URLs; prices nested/sub‑agent usage and reasoning tokens
from provider `usage` or `token_count`.
- Anthropic in `get_llm_by_name` (`ANTHROPIC_API_KEY`) with
`anthropic_claude_sonnet_4_0`, `anthropic_claude_3_5_sonnet_latest`,
`anthropic_claude_3_5_haiku_latest`; custom pricing for
`claude-sonnet-4-6` and `claude-opus-4.6` (and `anthropic/...` aliases);
usage summary includes cache read and cache creation tokens/costs.
- **Bug Fixes**
- Downloads watchdog skips generic text attachments and only
auto‑downloads clear files (PDFs, named attachments, or file‑URLs).
- Auto‑navigation sanitizes URL candidates and skips placeholder hosts
like `https://xxx.xxx`.
<sup>Written for commit 03303510d8.
Summary will update on new commits.</sup>
<a
href="https://cubic.dev/pr/browser-use/browser-use/pull/4975?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->