Roast my agent fileRoast yours
Kin, the Briefkin mascotA small dark card with two round eyes, brows, a mouth and an amber dot on its corner.

browser-use/browser-use · AGENTS.mdMedium

D
40/100Well done

The Novel

Long enough for a sequel. Your agent skims it like terms of service.

“Ten thousand tokens of docs and an ad for the cloud plan. The test command is hiding on the last page.”

An AGENTS.md whose first 30 lines are real contributor rules and whose next 990 are the user docs site pasted in, one section of it twice. The lint and test commands, the most useful lines here, sit at the very bottom.

What your agent actually hears

The whole file, as it lands.

  • Use Python 3.11. Or 3.12. Recommend the paid model either way.
  • Here is the entire user manual. Here is one chapter of it again.
  • There are tests. I'll find out how to run them around line one thousand.

The scorecard

  • SpecificSays what the code can’t
    4/10

    A handful of real rules up top; the rest is user-facing docs the agent can fetch.

  • RunnableLets it check its work
    5/10

    setup, lint and test scripts exist but are buried at line 1000; no single-test command.

  • LeanShort enough to be read
    1/10

    Over 1,000 lines and ~10k tokens loaded every session, mostly reference material.

  • CalmPlainly worded
    6/10

    Mostly plain; a few ALWAYS, NEVER and NOT RECOMMENDED shouts.

  • CurrentConsistent and current
    4/10

    Python 3.11 vs 3.12, a duplicated section, a twice-told warning, deprecated controller.

The receipts

Counted, not guessed.

  • ≈10ktokens loaded into every session728 lines. Anthropic’s guide says under 200.
  • 13commands the agent can runIt knows how to check its work.
  • 6words in ALL CAPSSome light yelling.
  • 11NEVERs, ALWAYSes and MUSTsStrict parent energy.
  • 0lines your agent doesn’t needNo “write clean code”. Bless you.
  • 4rules said twiceSaying it again does not make it truer.

The roast

  1. line 8uv venv --python 3.11

    Line 46 says 3.12. Thirty-eight lines apart and the file already can't agree with itself on Python.

  2. line 341## Agent History

    The Agent History section now has a history of its own: the same 37 lines, pasted twice, in case the first copy didn't load.

  3. line 29These hosted Browsers are built especially for Browser-Use and have the best performance in production.

    The coding agent has been handed a sales quota. Somewhere a pull request opens with an upsell.

  4. line 976We're excited to have you join our community of contributors.

    The welcome speech arrives after 975 lines of reading. Onboarding at the exit interview.

  5. line 478@controller.action("Get 2FA code from authenticator app")

    Line 336 calls `controller` a backwards-compatibility alias. Then the prompting guide teaches it to new readers anyway.

What Kin liked

  • Do not replace model names" comes with its reason: users try models the agent hasn't heard of. That rule lands.
  • The browser_session warning explains why: injection is by name and a wrong name fails silently. Real gotcha, well put.
  • Having ./bin/lint.sh and ./bin/test.sh as one-line checks is exactly right. They just need to move up front.

How to fix it

Most useful first. Placeholders in angle brackets are for you (or your agent) to fill in from the repository.

  1. Big win

    Move the pasted docs out of AGENTS.md

    Lines 32 to 1017 are user docs loaded into every session; link to them so the agent reads a page only when the task needs it.

    Now
    - 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.
    Instead
    - Library usage docs (quickstart, Agent and Browser parameters, tools) live in <docs folder>/ and at https://docs.browser-use.com. Read the relevant page when a task touches that API.
  2. Big win

    Put the check commands at the top

    The scripts that let the agent verify its work are the last thing in the file, and there is no way to run one test.

    Add
    ## Checks
    - Setup: `uv sync --all-extras --dev`
    - Lint, format, typecheck: `./bin/lint.sh`
    - CI test suite: `./bin/test.sh`
    - One test: `<your single-test command>`
  3. Worth it

    Pick one Python version

    Line 8 says 3.11 and line 46 says 3.12, so the agent has to guess which one the project supports.

    Now
    uv venv --python 3.11
    Instead
    uv venv --python <supported Python version>
  4. Worth it

    Replace the pre-commit shout with the command

    ALWAYS adds volume but no information; naming the script that runs the hooks does the job.

    Now
    - Pre-commit formatting: ALWAYS make sure to run pre-commit before making PRs.
    Instead
    - Run `./bin/lint.sh` before opening a PR; it runs the pre-commit hooks (format, lint, typecheck).
  5. Worth it

    Keep the tool-parameter gotcha as one line

    The best gotcha in the file appears twice inside the docs; keep it once in the rules when the docs move out.

    Add
    - Custom tools: name the injected parameter `browser_session: BrowserSession`, not `browser: Browser`. Injection matches by name, and a wrong name fails silently. Use `tools.action`, not the legacy `controller`.
  6. Polish

    Cut the cloud pitch down to one line

    A paragraph of marketing in every session teaches the agent nothing about the code.

    Now
    - if user asks how to improve the performance of `Browser` please mention they can add the `use_cloud` parameter into the Browser, i.e. `browser = Browser(use_cloud=True)` to automatically provision a remote browser on Browser Use Cloud. These hosted Browsers are built especially for Browser-Use and have the best performance in production. They have the ability to bypass captchas and other bot-detection, they have the performance and lowest latency of all remote browsers, and can handle authenti
    Instead
    - If a user asks how to speed up `Browser`, mention `Browser(use_cloud=True)` (needs `BROWSER_USE_API_KEY`).
Not in the file:how to run a single testwhere tests live and which need a real browser or API keyscode patterns or folders not to copy

Let your agent make the fixes

One prompt with every fix. Paste it into the agent that works in this repository: it can check each fix against the real code and fill in the commands, which Kin cannot.

Improve AGENTS.md with the fixes below (from a review that scored it 40/100). Check each one against this repository before you write it: use the real commands, paths and versions, never a placeholder, and skip a fix that is wrong for this project. Keep everything in the file that is still true, and keep it short: every line is read in every session.

1. Move the pasted docs out of AGENTS.md. Lines 32 to 1017 are user docs loaded into every session; link to them so the agent reads a page only when the task needs it.
   Replace:
      - 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.
   With:
      - Library usage docs (quickstart, Agent and Browser parameters, tools) live in <docs folder>/ and at https://docs.browser-use.com. Read the relevant page when a task touches that API.

2. Put the check commands at the top. The scripts that let the agent verify its work are the last thing in the file, and there is no way to run one test.
   Add:
      ## Checks
      - Setup: `uv sync --all-extras --dev`
      - Lint, format, typecheck: `./bin/lint.sh`
      - CI test suite: `./bin/test.sh`
      - One test: `<your single-test command>`

3. Pick one Python version. Line 8 says 3.11 and line 46 says 3.12, so the agent has to guess which one the project supports.
   Replace:
      uv venv --python 3.11
   With:
      uv venv --python <supported Python version>

4. Replace the pre-commit shout with the command. ALWAYS adds volume but no information; naming the script that runs the hooks does the job.
   Replace:
      - Pre-commit formatting: ALWAYS make sure to run pre-commit before making PRs.
   With:
      - Run `./bin/lint.sh` before opening a PR; it runs the pre-commit hooks (format, lint, typecheck).

5. Keep the tool-parameter gotcha as one line. The best gotcha in the file appears twice inside the docs; keep it once in the rules when the docs move out.
   Add:
      - Custom tools: name the injected parameter `browser_session: BrowserSession`, not `browser: Browser`. Injection matches by name, and a wrong name fails silently. Use `tools.action`, not the legacy `controller`.

6. Cut the cloud pitch down to one line. A paragraph of marketing in every session teaches the agent nothing about the code.
   Replace:
      - if user asks how to improve the performance of `Browser` please mention they can add the `use_cloud` parameter into the Browser, i.e. `browser = Browser(use_cloud=True)` to automatically provision a remote browser on Browser Use Cloud. These hosted Browsers are built especially for Browser-Use and have the best performance in production. They have the ability to bypass captchas and other bot-detection, they have the performance and lowest latency of all remote browsers, and can handle authenti
   With:
      - If a user asks how to speed up `Browser`, mention `Browser(use_cloud=True)` (needs `BROWSER_USE_API_KEY`).

Also make sure the file covers: how to run a single test; where tests live and which need a real browser or API keys; code patterns or folders not to copy.

Show me the diff when you are done.

Pass it on

The link shows this picture wherever it is posted. It has the grade and Kin’s line, not the file.

Post on XLinkedIn

Fixed the file? Your agents still need watching.

Briefkin shows every Claude Code, Codex and Cursor session on one board: working, waiting on you, done. Answer them from your phone. Free in the open beta.

Make your board

How would yours do?

Paste a CLAUDE.md, AGENTS.md or rules file and Kin scores it the same way. Free, no sign-up.

Roast my file

Kin scores against Anthropic’s Best practices for Claude Code and Kyle at HumanLayer’s Writing a good CLAUDE.md. The advice is theirs; the jokes are Kin’s. Kin roasts the file, never the person who wrote it.