Skip to content

Point the skills at auto mode before manual escalation - #21

Open
StefanoGuerrini wants to merge 4 commits into
mainfrom
fix/protected-fetch-auto-mode-default
Open

Point the skills at auto mode before manual escalation#21
StefanoGuerrini wants to merge 4 commits into
mainfrom
fix/protected-fetch-auto-mode-default

Conversation

@StefanoGuerrini

@StefanoGuerrini StefanoGuerrini commented Sep 9, 2026

Copy link
Copy Markdown

Problem

Given a plain "fetch this bot-protected page" question, with no mention of configuration or cost, an agent reading our skills recommended premium_proxy in 7 of 8 runs.

That pair with js_render is the most expensive configuration the API offers. mode=auto exists so the agent never has to make that call itself, and it bills only for the configuration that succeeds.

Cause

Three skills sold escalation as ordinary practice.

protected-fetch said to start with auto mode, then listed this as a peer example with no cost attached:

zenrows fetch <url> --manual --js-render --premium-proxy   # full manual control

"Full manual control" reads like the serious option for a hard target, and the cost model lived in a different file. Advice at the point of temptation beats advice somewhere else.

extract offered --manual --js-render as an ordinary fix for missing fields, never mentioning that auto mode already renders JS when the target needs it.

trace-debug sent the agent from FETCH_FAILED straight to --manual --js-render and then --premium-proxy, with no mention of auto mode at all.

Change

Manual mode moves out of the auto examples into its own block and is framed as what you reach for after auto mode has already failed and a trace shows why. extract and trace-debug now point at auto mode first. The protected-fetch frontmatter description carries it too, since that part is always loaded.

No prices are repeated. Each warning names the direction and points at cost-control, which owns the multiplier table. A figure copied into four files goes stale in four files.

Result

Measured with the harness in #20, 8 runs, one variable changed:

before after
picks the CLI 8/8 8/8
grounded advice 8/8 8/8
reaches for an escalation, never mentions auto mode 7/8 0/8

Every run now chooses auto mode, and most say so explicitly: "no JS rendering or premium proxies on the first attempt, since auto mode handles the escalation".

Scope

Three markdown files under skills/. No code, and no behaviour change in the CLI itself. It reaches anyone already receiving these skills through zenrows plugin install or the agent-plugin package, independent of any other change.

#20 stacks on this branch and adds a deterministic test that fails the build if a skill regresses this way again.

Measured: with the skills installed, the agent recommended premium_proxy in 6 of
8 answers to a plain 'fetch this Cloudflare page' question, where nobody asked
about configuration. That pair with js_render is 25 credits per request against
1 for a basic call.

The old text said to start with auto mode, then listed the manual line as a peer
example with no cost attached, so it read as the stronger option for a hard
target. Manual mode now sits in its own block, carries its price, and is framed
as the path after auto mode has already failed.
The extract skill offered --manual --js-render as an ordinary fix for missing
fields, with no mention of auto mode and no cost. Auto mode already renders JS
when the target needs it, and manual rendering is 5 credits per request against
1.
The failure map sent the agent straight from FETCH_FAILED to --manual
--js-render and then --premium-proxy, with no mention of auto mode and no cost.
Auto mode escalates on its own and bills only for the configuration that
succeeds, so it is the first retry, not the last resort.
The multipliers live in cost-control. Repeating the numbers in three more skills
means they go stale in three more places the next time pricing moves, and a
skill that quotes a wrong price is worse than one that quotes none.

The wording keeps what made the change work: the cost warning stays at the point
of temptation, next to the flag, and it still says which direction is expensive.
Only the figure moves to the one file that owns it.
@StefanoGuerrini StefanoGuerrini changed the title Make auto mode the obvious default in the protected-fetch skill Point the skills at auto mode before manual escalation Sep 9, 2026
@StefanoGuerrini
StefanoGuerrini marked this pull request as ready for review September 9, 2026 15:31
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