<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku" -->

---
title: I built Agent Cache: Turn any docs URL into clean...
description: Agent Cache is an open-source tool that converts any documentation URL into clean, structured Markdown bundles for use by coding agents like Claude Code,...
canonical: https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: I built Agent Cache: Turn any docs URL into clean Markdown bundles for coding agents | daily.dev
og:description: Agent Cache is an open-source tool that converts any documentation URL into clean, structured Markdown bundles for use by coding agents like Claude Code,...
og:url: https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku
og:image: https://api.daily.dev/og/posts/RXcWPLAku.png
og:image:alt: I built Agent Cache: Turn any docs URL into clean Markdown bundles for coding agents
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# I built Agent Cache: Turn any docs URL into clean Markdown bundles for coding agents

**[Awais Alwaisy](https://daily.dev/sources/wegt0tq33c8k5yaokinns)** · [@alwaisy](https://daily.dev/alwaisy) · 3 min read · 10 upvotes · 6 comments

## Summary

Agent Cache is an open-source tool that converts any documentation URL into clean, structured Markdown bundles for use by coding agents like Claude Code, Cursor, and Codex. It uses a five-phase acquisition pipeline (resolver, ladder probing for llms.txt, topology mapping across docs engines like Docusaurus and Mintlify, concurrent crawling, and packaging into ZIP archives with indexes). Benchmarked on 100+ YC developer tool docs sites, it achieves roughly 75% deterministic extraction success, near 100% on standard docs engines, with the gap largely from JS-rendered SPAs and bot-protected sites. The creator is considering adding an LLM-assisted fallback (Gemini 1.5 Flash / Claude Haiku) to push accuracy toward 90%+ and is soliciting feedback. Built with Hono, Bun, Turso, and Cloudflare R2, and released under MIT license.

## Content

Live Website: [https://agentcache.run](https://agentcache.run)

GitHub Repository: https://github.com/osspakistan/agent-cache-web

Every time Claude Code, Cursor, or Codex needs documentation, they either search the web live, get stuck on paywalls / bot protection, or hit context limits with garbage HTML navigation and footers.

I built and open-sourced **Agent Cache** (https://agentcache.run): paste any docs URL, and it discovers all pages, converts them into clean, structured Markdown, and bundles them into an offline ZIP with full indexes and `meta.yaml`.

### How It Works

Instead of generic web scraping, Agent Cache uses a 5-phase acquisition ladder:

1. **Resolver:** Normalizes deep URLs, finds the canonical documentation base, and tests reachability.
2. **Ladder Probing:** Checks for `llms.txt`, `llms-full.txt`, raw `.md` endpoints, and GitHub source links first before touching HTML.
3. **Topology Mapping:** Extracts the real site tree and nested navigation (handles Docusaurus, VitePress, Mintlify, Starlight, GitBook, Nextra, etc.).
4. **Concurrent Crawler:** Fetches pages with concurrent workers, strips HTML chrome/navbars/scripts, and extracts high-signal Markdown.
5. **Packager:** Generates numbered directory trees, `INDEX.md` tables of contents, `_map.json`, and `meta.yaml` metadata, then packages everything into an instant ZIP archive.

### Features

• **Instant Bundle Downloads:** Download organized ZIPs ready to drop into your repo (`.cursorrules`, `@docs`, Claude context, etc.).

• **Interactive Docs Tree:** Browse discovered page hierarchies online with direct links back to source pages.

• **Zero-Garbage Markdown:** Clean code blocks, tables, and front matter without tracking scripts or sidebar clutter.

• **Real-Time Job Telemetry:** Live streaming logs via Server-Sent Events (SSE) at `/dingdong/{job-id}`.

• **Open API & Discovery:** Full REST API (`/api/jobs`, `/api/probe`), OpenAPI 3.0 spec, and published `llms.txt`.

• **Public Docs Library:** Community archive of previously extracted libraries and frameworks (`/docs`).

• **Built-in Cockpit Telemetry:** Private radar tracking real-time visitor journeys and coding agent traffic without 3rd-party cookies.

### Current Accuracy & Success Rate

• **Where the numbers come from:** I benchmarked the pipeline across **100+ Y Combinator developer tools startup documentation sites**.

• **Current Success Rate:** **~75%** on deterministic crawling. Sites built on standard docs engines (Docusaurus, VitePress, Mintlify, Starlight, GitBook, Nextra, or raw GitHub markdown) hit near 100% clean extraction. Heavily custom JS-rendered SPAs, aggressive Cloudflare challenges, or paywalled sites account for the missing ~25%.

• **Instant Feedback on Every Job:** I added a "something missing? →" feedback button directly on every generated bundle page so you can report extraction bugs or failed pages right away. Real-world user docs are the true stress test.

• **How It Compares:** I put together breakdowns comparing Agent Cache against alternative tools and approaches (Context7, Firecrawl, Tavily, llms.txt, etc.) on our comparison page: **https://agentcache.run/compare**

### Should I Keep Working on This?

Right now extraction is purely deterministic (fast, zero LLM cost, zero memory footprint).

I'm thinking about adding an **LLM-assisted fallback extraction phase** (to parse messy JS-rendered SPAs and dynamic navigation). That could push extraction success rate from **75% to 90%+**.

Would you find that useful for your coding agent workflow, or do you prefer pure deterministic crawling? Let me know in the comments!

### Tech Stack

• Server & SSR: Hono v4 + JSX + htmx

• Runtime: Bun

• Database: Turso (libsql / SQLite)

• Object Storage: Cloudflare R2

• Reverse Proxy: Docker + Caddy

• License: MIT (100% Free & Open Source)

### Try It Out

- Live Website: https://agentcache.run
- Comparisons: https://agentcache.run/compare
- GitHub Repo: https://github.com/osspakistan/agent-cache-web

Feedback and critique are welcome!

#webdev, #opensource, #ai, #javascript, #typescript, #devtools

## Community discussion

Top comments from developers on daily.dev.

**@alwaisy** · 3 upvotes

> Should I Keep Working on This?
>
> Right now extraction is purely deterministic (fast, zero LLM cost, zero memory footprint).

**@mivbox** · 1 upvotes

> Will definitely try this out, I was intending todo exactly the same concept as a side project!!

## Similar posts on daily.dev

- [Agents grew up, so did our docs](https://daily.dev/posts/agents-grew-up-so-did-our-docs-rucdfhfyl) · Neon · 0 upvotes · 0 comments
- [I Gave My AI Agents Their Own Documentation Crawler, and Pulled 60 Pages of Clean Markdown in 49 Seconds](https://daily.dev/posts/i-gave-my-ai-agents-their-own-documentation-crawler-and-pulled-60-pages-of-clean-markdown-in-49-sec-qjyw0wj4p) · DEV · 2 upvotes · 0 comments
- [Making the API Evangelist Network Agent-Readable](https://daily.dev/posts/making-the-api-evangelist-network-agent-readable-b3qa0tf7w) · API Evangelist · 7 upvotes · 0 comments
- [Cloudflare’s new Markdown support shows how the web is evolving for AI agents](https://daily.dev/posts/cloudflare-s-new-markdown-support-shows-how-the-web-is-evolving-for-ai-agents-q2znpd5ib) · The New Stack · 2 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#bun](https://daily.dev/tags/bun)

[View this post on daily.dev](https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku","headline":"I built Agent Cache: Turn any docs URL into clean Markdown bundles for coding agents","text":"Agent Cache is an open-source tool that converts any documentation URL into clean, structured Markdown bundles for use by coding agents like Claude Code, Cursor, and Codex. It uses a five-phase acquisition pipeline (resolver, ladder probing for llms.txt, topology mapping across docs engines like Docusaurus and Mintlify, concurrent crawling, and packaging into ZIP archives with indexes). Benchmarked on 100+ YC developer tool docs sites, it achieves roughly 75% deterministic extraction success, near 100% on standard docs engines, with the gap largely from JS-rendered SPAs and bot-protected sites. The creator is considering adding an LLM-assisted fallback (Gemini 1.5 Flash / Claude Haiku) to push accuracy toward 90%+ and is soliciting feedback. Built with Hono, Bun, Turso, and Cloudflare R2, and released under MIT license.","url":"https://daily.dev/posts/i-built-agent-cache-turn-any-docs-url-into-clean-markdown-bundles-for-coding-agents-rxcwplaku","datePublished":"2026-09-25T13:50:26.783Z","dateModified":"2026-09-26T01:28:13.040Z","author":{"@type":"Person","name":"Awais Alwaisy","url":"https://daily.dev/alwaisy","image":"https://avatars.githubusercontent.com/u/102944304?v=4","description":"Biggest loser in my career","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":5155}},"image":"https://media.daily.dev/image/upload/s--zYaqY3ES--/f_auto/v1790344522/posts/RXcWPLAku?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":10},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"comment":[{"@type":"Comment","text":"Should I Keep Working on This?\nRight now extraction is purely deterministic (fast, zero LLM cost, zero memory footprint).","datePublished":"2026-09-26T01:29:30.683Z","url":"https://daily.dev/posts/RXcWPLAku#c-1VptV0eWv","author":{"@type":"Person","name":"Awais Alwaisy","url":"https://daily.dev/alwaisy","image":"https://avatars.githubusercontent.com/u/102944304?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}},{"@type":"Comment","text":"Will definitely try this out, I was intending todo exactly the same concept as a side project!!","datePublished":"2026-10-01T15:44:22.046Z","url":"https://daily.dev/posts/RXcWPLAku#c-7MhHFrufX","author":{"@type":"Person","name":"Mitchel Box","url":"https://daily.dev/mivbox","image":"https://lh3.googleusercontent.com/a/ACg8ocL91SsOmb4CDmoFD4VEPzLcjYxb4GKHF1JNg0OWQbpqT_F8MYVi=s96-c"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/wegt0tq33c8k5yaokinns","name":"Awais Alwaisy"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Awais Alwaisy","item":"https://daily.dev/sources/wegt0tq33c8k5yaokinns"},{"@type":"ListItem","position":3,"name":"I built Agent Cache: Turn any docs URL into clean Markdown bundles for coding agents"}]}
```

