ua-fallback
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
After a curl or wget an automated-client filter answered 403 or 429, gives the model the browser User-Agent to retry with, and the two cases where it must not.
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Watches Bash calls that run curl or wget. When the output shows a 403 or 429 from an automated-client filter, it tells Claude to retry once with a browser User-Agent, and not to do so when testing your own app or to get around authentication. It shows a short line about the host, once per host per session, and only stores whether it is switched on.
Review details
Static review of the source at the pinned commit; not run. Registers session.start (registers the /ua-fallback command, reads the enabled setting), command.run for /ua-fallback (status, on, off) and tool.call for Bash. The tool.call handler lets the call run, skips denied calls, then matches the command against curl/wget and the output (stdout, stderr or error text) against fixed 403/429 patterns using plain regexes. For a refused fetch without its own User-Agent it appends one context note for Claude (suggested browser User-Agent string, three agent User-Agent names, and two limits: not while testing your own application, and never a way around authentication) and shows a line through $.sidebar.set or $.ui.log. It only suggests the retry; any command Claude then runs still goes through the normal permission prompt. Runtime calls: $.store.get and $.store.set for the enabled flag, $.sidebar.set, $.ui.log, $.command.register. It makes no network calls, reads no files, runs no programs, and keeps the reported hosts only in memory. The note nudges Claude to present itself as a browser or as other vendors' agents, which some sites forbid; the code limits this itself. No npm dependencies are imported. eslint.config.js and Makefile in the folder are not loaded by the plugin and were not read.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: no
- Runs programs on your machine: no
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/ua-fallback/)