Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

LangChain 7 min read Announcement mediumAdept

Browser Use in Managed Deep Agents

Managed Deep Agents in LangSmith now runs a remote browser in its own sandbox and gives agents Stagehand-based tools: browser_snapshot (accessibility tree with element IDs), browser_run (batched actions or Playwright-style JavaScript in one call to keep page content out of context), browser_screenshot, and browser_handoff for letting a human sign in without exposing credentials. Sessions can be scoped per thread or per user so logins persist, and a private localhost bridge lets the browser reach apps running in the agent's sandbox for end-to-end testing, with passing runs exportable as Playwright scripts. On 100 WebVoyager tasks the toolset passed 90% for $1.98 total, versus 89% at 9x the cost for Browserbase's MCP server.

Assumes: LLM agent tool callingPlaywright basics

Related posts

  • How We Optimized Browser Use for Deep Agents

    LangChain mediumAdept

    Tool design dominated cost and speed for browser agents: across seven toolsets on 100 WebVoyager tasks, pass rates ranged 78–90%, but Stagehand passed 90% for $1.98 total while Playwright MCP passed 78% for $26.71 at three times the latency. The gains came from code mode (one `run` call batches many actions and keeps intermediate page data out of context, averaging 10 steps versus 26), compact accessibility-tree snapshots with element IDs instead of raw HTML or screenshots, and running inside the browser to avoid per-action CDP round trips. Accepting Playwright-style code beat Stagehand's native API by 5.3 points, and truncating snapshots after the fact didn't help because agents just re-fetched. Replacing fixed sleeps with a 500 ms network-quiet settle wait cut median HardBench time from 182 s to 124 s with no accuracy loss, all validated through trace-driven iteration and evals.

  • Managed Deep Agents v0.10: Browser Use and Async Subagents

    LangChain mediumAdept

    Managed Deep Agents v0.10 adds browser use, so agents can operate websites without APIs, and async subagents that run long tasks in the background while the orchestrator keeps talking to the user. The browser runs in a LangSmith sandbox scoped per thread or per user. It exposes snapshot, run, screenshot and handoff tools, and the handoff tool gives a person control of the window for logins so credentials never enter model messages or traces. Async subagents notify the orchestrator instead of being polled: results arrive mid-run, wake an idle agent, or wait behind a pending approval. Other changes include thread-origin records for replying in Slack, a Stop button, Slack event handlers, resolveUser identity mapping, and breaking changes to how MCP connectors are declared.

  • Managed Deep Agents delivers a better user experience for agents in production

    LangChain mediumAdept

    Managed Deep Agents 0.8 adds user-level memory, user-owned credentials, HTTP webhook channels, Slack file transfer and built-in Parallel web search. User memory is mounted at /memories/user/ keyed to the caller's authenticated identity, separate from shared agent memory at /memories/agent/, both backed by LangSmith Context Hub. Default access policies allow user memory only in Slack one-to-one DMs, so personal context does not leak into group threads or HTTP runs. Connections can be scoped per agent (e.g. web search) or per user (e.g. GitHub, Salesforce) so tools act with the caller's own permissions.

  • We gave cloud agents a phone to QA

    incident.io mediumAdept

    incident.io's Cursor cloud agents now QA React Native pull requests by driving an iOS simulator (EAS Simulator) or Android emulator in the cloud against a per-agent copy of the Go backend with seeded Postgres data, tunnelled back to the agent's VM, and attach claims linked to screenshots and a session recording. Making the app drivable required fixing the accessibility tree across 163 files (roles, testIDs, labels, enforced by lint), deep links for 100+ Expo Router routes, and a dev-only seeded sign-in. Runs take about 11 minutes median, and QA-only runs cost around $7 each. Over two weeks, 42 PRs were QA'd and agents increasingly started runs on their own PRs, while humans still decide whether a change is correct.

  • Deterministic AI Testing with Session Recording in cagent

    Docker mediumAdept

    cagent's session recording applies the VCR pattern to AI agents. It proxies requests to the model provider, saves each request/response cycle to a YAML cassette, and replays matching requests from that file, so test runs are deterministic, cost nothing in API calls and finish in milliseconds. The --record and --fake flags support CI testing without API keys, cheap prompt iteration against one recording, sharing reproducible bug reports, and capturing multi-agent delegation. Tool call IDs are normalized so replay matching works, and auth headers are stripped so cassettes can be committed to version control.

The quest for software engineering knowledge.

Look:
Layout: