Skip to content

docs(agents): send browser-shaped requirements to the browser team - #814

Merged
joway merged 1 commit into
devfrom
zhuoweiwang/agents-md-browser-first
Nov 26, 2026
Merged

joway merged 1 commit into
devfrom
zhuoweiwang/agents-md-browser-first

Conversation

@joway

@joway joway commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a "What Belongs in the Browser" section to AGENTS.md. When a requirement is a better fit for the ego lite browser than for this SDK, an agent working in this repo should not work around the bindings in the SDK. It should stop, tell the user, and draft the requirement so the user can pass it to the browser team.

Why

The SDK has collected several workarounds for things the browser could report or do itself. They run on every call, have to be kept in step with the browser's own rules, and stay after the browser closes the gap. The latest example was the SDK re-validating every snapshot locator over CDP, removed in #813: it took 75–89% of snapshot time on pages with many locators and removed nothing once the browser verified locators itself.

What the section says

  • How to recognize such a requirement: the browser has the information but the binding does not return it; the SDK would need extra CDP round trips, polling, retries or timeouts; the SDK would re-check or repair a binding's output; or the SDK would keep state on disk, or a placeholder, only to make up for what the browser does not keep or report.
  • What the draft for the user contains: current browser behavior, what the SDK would have to do instead and its cost per call, the proposed interface, and the SDK code it would remove.
  • When the task cannot wait: the user decides whether to add a stopgap, and a stopgap carries a comment naming the missing browser capability so it can be removed later.

Reviewer notes

  • Documentation only; no code or Skill text changes.
  • This changes how agents behave in this repo: they will pause and ask instead of implementing some requests directly.

🤖 Generated with Claude Code

Add a section to AGENTS.md: when a requirement is a better fit for the
ego lite browser, do not work around the bindings in the SDK. Stop, tell
the user, and draft the requirement for the browser team. It lists how
to recognize such a requirement, what the draft contains, and how to
mark a stopgap when the task cannot wait.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🤖 Codex Review · 1a3ea19c

2026-11-26 05:49 UTC · generated automatically by openai/codex-action

No issues found that require changes.

@joway
joway merged commit b692ba1 into dev Nov 26, 2026
3 checks passed
@joway
joway deleted the zhuoweiwang/agents-md-browser-first branch November 26, 2026 05:50
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.

1 participant