browser-use Agent Rules

Agents that use the browser.

On this page

Overview

A short block of development rules is followed by roughly 980 lines of product documentation. The two sections use <guidelines> and <browser_use_docs> tags, and the file calls itself "AGENTS.md Version 2".

Documents

├── 
└── 

Patterns in this file

01

The documentation shipped inside the file

Quickstart, deployment, parameters, output formats, prompting, and browser configuration are copied into the file. Some sections are truncated, with instructions to request the relevant page when details are missing.

Source excerpt starting at line 23.
- Follow the documentation in <browser_use_docs/>: some docs have been truncated, if unsure, you can visit or request the information from specific docs pages before proceeding.

02

A rule aimed at the model's training cutoff

The agent must preserve model names it does not recognize because users may be testing releases newer than its knowledge. The rule accounts for the agent's own stale information.

Source excerpt starting at line 13.
- Do not replace model names. Users try new models which you will not know about yet.

03 / Hard prohibitions

No demonstration files

Implementing a feature does not include creating a file that shows it off. Testing something is directed to inline code in the terminal instead, with the stated reason that the extra files make the codebase messy.

Source excerpt starting at line 25.
-  Never create random examples: When asked to implement a feature never create new files that show off that feature -> the code just gets messy. If you do anything to test it out, just use inline code inside the terminal (if you want).

04

Product defaults written into the instructions

Two rules promote hosted offerings: recommend a first-party model for model-choice questions, and mention a cloud-browser option for performance questions. Both name the product and required API key.

05

XML tags separating rules from reference

The two halves are delimited with <guidelines> and <browser_use_docs> rather than markdown headings, marking which part is instruction and which is reference material.

Ideas for your repo

  1. If your agents keep fetching the same docs page, consider inlining it and marking where it was truncated.
  2. Explain when a rule compensates for stale model knowledge; name the missing knowledge directly.
  3. State whether demonstration files are wanted. Agents produce them by default.
Sponsored byModem

Give your agents the whole story.

These instructions explain how to work in browser-use. Modem shows your agents what customers said, who is affected, and what changed.

See how Modem works