Agents365-ai

Claude Code PostToolUse hook: when WebFetch hits Cloudflare/403, transparently retry through CloakBrowser headlessly and inject clean markdown via defuddle.

15
1
69% credibility
Found May 20, 2026 at 16 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

cloakFetch is a helpful add-on for AI assistants that helps them access websites that normally block automated tools. Many popular websites (science journals, news sites, research platforms) use protection systems that reject simple requests — even though a regular person using a browser would be able to see the content just fine. This tool automatically retries blocked requests using a real web browser that can pass through those protection checks, then returns the clean readable content. It works completely invisibly in the background, so your AI assistant can fetch information from almost any public website without you ever seeing an error message.

How It Works

1
🤔 You discover your AI assistant hits walls online

You ask your AI assistant to look up something on a popular website, but it comes back saying the page is blocked.

2
🔧 You install the cloakFetch tool

You copy a few simple files into your AI assistant's setup folder so it knows how to handle blocked websites.

3
Your assistant gets a secret upgrade

Now when your assistant tries to fetch a page and gets blocked, it automatically tries again with a smarter browser that can pass through the protection.

4
Two ways this can happen
Automatic path

The tool catches every blocked request and retries it invisibly — your assistant never even knows there was a problem.

🎯
Manual path

Your assistant notices the error, remembers the special skill, and decides to try again with the smarter browser.

5
🌐 The smarter browser does its work

A real web browser opens the page, waits for any protection checks to clear, and reads the actual content.

6
📄 Clean text is extracted and returned

The page content is cleaned up and turned into easy-to-read text, then handed back to your assistant.

🎉 You get the information you asked for

Instead of an error, your assistant successfully shares the article, research paper, or content you wanted — just like if you opened it in your own browser.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 16 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is cloakFetch?

cloakFetch is a transparent fallback system for Claude Code that automatically bypasses Cloudflare and similar bot protection when the built-in web fetch hits a 403. It works by routing blocked URLs through CloakBrowser, a stealth Chromium that passes JS challenges, then extracting the rendered content as clean markdown via trafilatura. The project ships as both a PostToolUse hook for fully automatic operation and a SKILL.md skill for other agent frameworks.

Why is it gaining traction?

The core pain is real: Claude Code's web fetch fails silently on a huge chunk of the web, especially scientific publishers, news sites, and anything running Cloudflare's stricter challenges. Developers who rely on agents to research, summarize, or extract data from these sources hit a wall fast. cloakFetch solves this without changing agent behavior or adding new surface area for URLs. The transparent hook approach means the agent never knows it failed, and the skill approach works across multiple agent platforms.

Who should use this?

Developers using Claude Code for research-heavy workflows, automated documentation, or any task that requires pulling content from protected sites. Data engineers building pipelines that ingest web content will find this useful. Anyone running agents like OpenClaw, Codex, or OpenCode who needs reliable web access beyond what standard HTTP clients can handle.

Verdict

This fills a legitimate gap for Claude Code users, and the dual-path design (hook vs skill) shows thoughtful engineering for different agent ecosystems. However, with 15 stars and a credibility score of 0.699999988079071%, this is early-stage software from a relatively unknown author. The dependency on CloakBrowser adds setup friction, and the 25-40 second latency on every triggered fallback is a real cost. Worth trying if you hit Cloudflare blocks regularly, but validate that CloakBrowser is maintained before betting a production workflow on it.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.