Skip to content

browser problem or model problem

github-actions[bot] edited this page Sep 3, 2026 · 2 revisions

Browser problem or model problem?

When an agent task fails, one of two very different things broke: the browser side (the page never arrived, or arrived hostile) or the model side (the page was fine and the model mishandled it). The fixes have nothing in common - network and identity on one side, model choice and instructions on the other - so misdiagnosing sends you shopping in the wrong store. People upgrade to a frontier model to fix a blocked page, and swap proxies to fix a model that clicks the wrong button, and both spend money to change nothing.

AIHawk gives you an unusually clean way to split the two, and it costs nothing: the keyless placeholder. uvx aihawk ui with no API key runs the full interface and the full stealth browser with no model in the loop at all - your typed commands go straight to the browser tools. Whatever happens in that mode happened without a model, so it cannot be a model problem. That is the instrument this page is built around.

The instrument: a browser with no model attached

Without a key, the interface swaps the model for a placeholder that understands a fixed set of literal commands - go <url>, read [selector], click <selector>, type <selector> <text>, tab, shot - and answers anything else with a help line. Each command is one real tool call on the same browser, over the same connection, that the real agent would use; the live pane on the right shows the page throughout. The keyless-mode page covers it in full; here it is a diagnostic probe: you can replay any single step of a failed task by hand and see exactly what the browser saw, with zero model behavior mixed in.

Symptoms that point at the browser side

These appear with any model, and with no model:

  • The page never loads. go times out or errors in placeholder mode too. Network, proxy, or the site itself. If a proxy is configured, suspect it first; if this is the first run ever, see the last symptom below.
  • A challenge page or block message appears instead of the content. read body in placeholder mode shows you verbatim what the site served. If the block is there before any automation logic has acted, no model change can touch it - work through why does my AI agent get blocked?, which separates fingerprint, IP reputation, volume and rhythm.
  • It works by hand in your normal browser, but not through AIHawk, on the same network. That narrows it to the agent's exit or identity rather than the site being down. The blocked page's checklist is the map.
  • It worked for many pages, then stopped. Volume or retries, not intelligence. Check the transcript for a retry burst; retry loops and rate limits is that failure's own page.
  • The very first instruction ever hangs for minutes. Probably not a failure at all: the browser engine, roughly a quarter of a gigabyte, downloads on the first request that needs a page. uvx invisible-playwright fetch in a terminal gets it over with where you can watch it.

Symptoms that point at the model side

These appear only with a model in the loop, on pages the placeholder handles fine:

  • The right page, the wrong element. The transcript shows the page loaded and the model clicked or typed somewhere defensible but wrong. Often a field-mapping problem - the forms page covers why look-alike fields invite it.
  • Loops. The same action, or the same failing submit, repeated with no change in between. A model that does not register that its last action changed nothing.
  • Giving up, or declaring victory early. An answer that does not match what the live pane showed, or a "done" with steps visibly left.
  • Misreading the task. It did something coherent, just not what you asked. Usually fixable with a more explicit instruction before it is a reason to change models.
  • The turn ceiling. An error saying the task did not finish within max_turns=25 means the model spent 25 turns without converging. On a genuinely long task, that is the task's problem; on a short one, it is the model wandering.
  • Unreadable tool arguments. The transcript notes the model's arguments were not valid JSON and it was told to retry. Occasional is tolerable; frequent is a model quality signal in itself.

The procedure

  1. Read the failed transcript first. The interface shows each step, what was called, and what came back; on the assistant path the same record is your assistant's own conversation. Most failures are legible there, and the split is often obvious: a block page in a tool result is browser-side, a wrong click on a healthy page is model-side.
  2. Replay the failing step in placeholder mode. Restart the interface with no key, go to the same URL, read what came back, click the same selector. If the failure reproduces with literal commands, it is browser-side, full stop - no model was present. If your hand-driven steps sail through, the page is drivable and the model is the variable.
  3. Same task, two models. If step 2 cleared the browser, run the identical instruction with --model set to something stronger, and pass the same --seed both times so the browser identity is constant and the model is the only thing you moved. One model failing where another succeeds, on the same page and identity, is the clean model-side verdict - and the moment to read which model to use.
  4. Change one thing at a time. Swapping model and proxy together tells you nothing whichever way it goes. This is the same discipline as the blocked checklist, because it is the same trap.

When it is honestly both

The two sides feed each other. A page that starts refusing mid-task makes a competent model look lost, because every read comes back strange; and a model that reacts to failure by hammering retries turns one soft refusal into a hard block, which then greets the next run too. If a transcript shows both, fix the browser side first: it is upstream, and model behavior on a hostile page is not evidence about the model. Then rerun before judging anything else.

Short answers to the questions that lead here

How do I know if my agent failed because of the site or the model? Replay the failing step with literal commands in keyless aihawk ui. Reproduces without a model: browser side. Works by hand: model side. That single test settles most cases.

The page shows a challenge or block - which side is that? Browser side, always: it was served before any model decision mattered. Work through the blocked page; changing models changes nothing there.

The agent clicks the wrong thing - which side? Model side, if the transcript shows the page loaded correctly. Try a sharper instruction first, then a stronger model on the same task and seed.

What does the max_turns error mean? The model used its 25-turn budget without finishing. On a short task, that is a model-side symptom; on a long one, split the task into smaller instructions before blaming anything.

Can I run this diagnosis without spending anything? The placeholder half, yes - keyless mode is free apart from the one-time engine download. The two-model comparison spends normal task tokens on each run.

Do I need the placeholder if I already have a key? It stays useful with a key precisely because it removes the model: any failure it reproduces is guaranteed browser-side, which is a certainty no model-driven run gives you.

Sources

All retrieved 2026-09-03.

  • feder-cr/AIHawk, this repository's source: src/aihawk/brain.py (the placeholder's command set and that each command is a real tool call), src/aihawk/agent.py (the shared loop, the turn ceiling, the invalid-arguments retry), and the README (the keyless mode, the engine download and prefetch command).

See also: why does my AI agent get blocked?, using AIHawk without an API key, which model to use with AIHawk, and agent retry loops and rate limits.


From the AIHawk wiki. The placeholder exists because the maintainer needed this exact split while debugging; it was kept as a feature because you will too.

Alternatives and Comparisons

When the Agent Gets Blocked

Using the Agent

Clone this wiki locally