← Back to library

Let coding agents fetch docs into local Markdown

Jessica Doering, writing on DEV Community, got tired of copying documentation into projects by hand for coding agents. The fix was a four-tool server named pulpie-mcp, one of which crawls an entire docs section into clean local Markdown. In a cold-start test it saved a sixty-page site as sixty searchable Markdown files in under a minute.

  • OutcomeStop manually fetching docs for an agent by giving it a tool that crawls a documentation section into clean Markdown it can search later.
  • SetupUnder an hour
  • LevelIntermediate
  • CreditJessica Doering
View original
Works with
ClaudeCustom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

When should you use it?

  • You keep fetching docs for a coding agent by hand
  • Your agent needs full references, not summaries
  • You want docs saved locally for reuse

Not for: Crawling sites whose terms forbid it; Expecting summarized docs, since this keeps full content

What do you need, and what do you get?

You need

  • An MCP server the agent can call
  • A documentation URL to crawl
  • A local folder to save Markdown

You get

  • A documentation section saved as clean Markdown
  • Files stamped with origin URL, title and when they were fetched
  • A local library the agent searches on its own

How does it work, step by step?

  1. Give the agent the toolExpose crawl, fetch, save and list tools through an MCP server.
  2. Point it at the docsAsk it to pull a library's docs into the project's reference folder.
  3. Let it crawl smartlyIt checks robots and sitemaps, stays under the start path and runs workers in parallel.
  4. Keep content intactKeep pages, tables, code and links intact rather than summarizing, so references stay usable.
  5. Reuse the local libraryHave it open just the files it needs rather than loading everything into context.

The prompt

Our own prompt, inspired by Jessica Doering and written to work in Claude and Custom agent. Values in lime are placeholders.

Prompt0 variables
Using your documentation tools, pull the docs for [library] at [URL] into the reference folder under DOCS/ as clean Markdown. Keep full content, tables, code blocks and links rather than summarizing, and stamp each file with origin URL, title and when it was fetched. Do not load every page into context; write them to disk and then open just the pages relevant to [task]. Tell me what you saved.

Inspired by Jessica Doering: I Gave My AI Agents Their Own Documentation Crawler, and Pulled 60 Pages of Clean Markdown in 49 Seconds. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • It writes to disk rather than dumping pages into context; expect metadata back, not full text.
  • Respect each site's robots and terms; the crawler follows sitemaps but you own the choice to crawl.

Our take

The architectural choice in pulpie-mcp is the reason it works: crawling writes pages to disk and returns only metadata, so sixty pages of documentation never flood the agent's context. The agent fetches a section once, then searches and opens only the files relevant to the task, which keeps sessions focused and cheaper. Jessica Doering's other principle matters just as much. Extraction should be faithful, with full content and frontmatter, not summaries, because when an agent needs an API reference it needs the exact parameter names and types, and a summary is where those details get lost or invented. If you adopt this or something like it, store the docs in a folder per library and version, record the source URL and fetch date in each file, and refresh them when you upgrade dependencies, since stale docs mislead as badly as none. Respect site terms and robots rules, crawl politely with limits, and keep the library out of your published repository if the documentation's license does not allow redistribution.

Where the time goes back: The chore of hand-feeding documentation to an agent disappears, and it builds its own searchable local reference in under a minute.

FAQ

Why not just let the agent read the live site?
You wanted the real reference saved locally and searchable, not re-fetched or summarized each time.
How fast is a crawl?
About fifty seconds for sixty pages in the test, including cold startup.

Source and credit

Inspired by Jessica Doering. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
I Gave My AI Agents Their Own Documentation Crawler, and Pulled 60 Pages of Clean Markdown in 49 Seconds
Creator
Jessica Doering
Published on
DEV Community (dev.to)
Original date
Oct 5, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecurityPrompt✓ AI dry run

Question an agent's pull request instead of skimming reviews

Have a fresh agent list every concrete change in an agent-written pull request (schema, scheduled jobs, features, new services, settings, endpoints and removals) without judging it, then press it on each item you cannot explain, give it the product context it lacks, and cut whatever nobody can justify before you merge.

Credit: u/EstablishmentGood414 on r/codex

Minutes
IT & SecurityWorkflow✓ AI dry run

Review your agents' past sessions for security slips

Have Claude read finished agent sessions against what each agent was allowed to do, and get a ranked list of the ones a person should look at.

Credit: Anthropic

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Self-editing agent with snapshots and automatic rollback

Let an agent rewrite itself in a container while a protected runner snapshots, validates and rolls back every change it makes.

Credit: PedroMFernandes on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Review code continuously before a human looks

Keep up with the volume of agent-written code by running review continuously, so a person only spends time on what automation cannot catch.

Credit: Addy Osmani

An afternoon+