DeepSeek Harness Web Scraping: MCP, Skills, and CLI
DeepSeek Harness (dsh) is an open-source agent runtime released in August 2026 under the MIT license, where models, tools, and skills all load as plugins. The plugin model means external data sources mount cleanly, but the built-in fetch and search tools still return blocked pages, empty JavaScript shells, and geo-wrong results on real sites. No commercial scraping provider has shipped a dsh integration yet, so this walkthrough uses tested config instead. You'll leave with three tested ways to give a dsh agent structured data from live sites.
Zilvinas Tamulis
Last updated: Aug 07, 2026
21 min read

TL;DR
- Decodo's plugin installs with one command and replaces the provider behind web_fetch, so the agent keeps calling the same tool.
- dsh reads the Anthropic skill format and scans ~/.agents/skills with no configuration, so skills built for other agents port over unchanged.
- Any CLI already on your machine works through the agent's built-in shell tool, the lowest-friction path if you already have a working scraper.
- Built-in web search and fetch handle open pages fine; blocked, client-rendered, or geo-varying targets need a dedicated scraping tool like Decodo instead.
What DeepSeek Harness is and why its plugin model matters for data work
DeepSeek Harness runs on a micro-kernel built on the Cordis framework, where model adapters, tool registries, sandboxes, session handlers, and even the interface all load as independent plugins rather than fixed parts of the runtime. Composition is declarative: you add or swap a capability in config, and the harness source itself stays untouched. Every message, tool call, token count, and subagent dispatch gets written to an append-only event log. This matters later, like when a scrape returns nothing, and you need to see what the agent actually received rather than what it reported. dsh launched on 13 August 2026 under the MIT license, and it's still a developer preview, so expect breaking changes between releases.
The architecture is why mounting an external data source here is easy: a scraping provider is just another plugin, not a fork or a patch.
The runtime ships four modes, but only one of them matters for scraping. Standard mode is the full agent, with file editing, shell access, web search, skills, planning, and subagents, and it's where scraping tools belong. Code mode exposes tools through the Code Mode SDK, so the model composes multi-step operations as a single TypeScript program, worth knowing about for the batch scraping example later in this guide. Minimal mode strips the agent down to persistent bash and str_replace_editor, with no web layer at all. Creator mode adds preset authoring and runtime inspection, and it's the mode to test a new plugin or skill in before promoting it to Standard.
For the broader context of pairing an agent with external data, see what AI scraping is. If you're weighing dsh against other agent CLIs before committing to one, our roundup of AI coding tools covers the wider field.
Why dsh agents fail on real websites
Four failure modes account for most of it, and each one leaves a distinct trace if you know where to look:
- Empty JavaScript shells. The fetch tool returns the page's raw HTML skeleton, before any script has run, so a page that's genuinely full of products comes back looking empty. The agent reports there's nothing there. Confirm this one by diffing the raw response against what DevTools shows after rendering; if the two don't match, this is your cause.
- Anti-bot challenges. The tool gets back a challenge page or a 403, and the agent treats that response like real content, summarizing the challenge HTML as if it answered the prompt. Nothing in the response tells the model it failed.
- Geo-restricted or personalized results. Pricing, stock, and rankings shift with the datacenter IP the agent happens to be running from. This one is worse than the first two because nothing is missing. The data just isn't correct.
- Rate limiting mid-task. The first several pages of a crawl succeed, then the rest start returning 429, and the agent quietly finishes with a partial dataset that looks complete.
Why the agent makes it worse
An agent has no way to tell that a page came back wrong. A blocked response is still a successful HTTP transaction, so the loop keeps running and the model reasons over garbage as if it were data. That gets worse under subagent delegation: a subagent reads a challenge page, summarizes it, and hands that summary up. The parent agent never sees the raw response, so it has nothing to audit against.
The countermeasure is the same for all four. Read the event log and check the raw tool response, not the model's summary of it. This is where dsh's trajectory logging earns its place, since it's the only place in the loop where you can see what the tool actually returned before the model started interpreting it.
For the detection landscape behind challenge pages and geo-blocking, see our anti-bot systems guide. If empty JavaScript shells are the failure you're hitting, the headless browser guide covers the rendering side of the problem.
Three ways to connect a scraping tool to dsh
Pick one of these based on what you're actually trying to reach, rather than working through all three in sequence.
Option
What it gives the agent
Setup effort
Where it breaks
Best for
Built-in web search and fetch
Basic search and page retrieval, no setup required
None, ships with dsh
Blocked, client-rendered, or geo-varying pages
Open documentation, blogs, public APIs
Community search plugins (dsh-web-search-pro, dsh-search-free, argo, dsh-mediacrawler)
Broader search coverage across many domains
Low: install and mount a plugin
Same blocking and rendering limits as built-in tools, just wider reach
Broad research across domains with no blocking problem
MCP server
Structured extraction, with retry, rendering, and IP logic handled outside the agent loop
Moderate, one plugin config entry
Misconfigured serverName or transport, timeouts on heavy targets
Sites that block, render client-side, or vary by region
Agent skill
Tells the agent when to reach for a scraping tool instead of plain fetch
Low, drop a folder into ~/.agents/skills
Does nothing on its own without a mounted tool to point to
Making sure a mounted tool actually gets used
CLI through the shell tool
Any CLI already on PATH, callable like a shell command
Lowest, no plugin config or skill file needed
No structured tool schema, so the agent gets less guidance on arguments
Testing and one-off jobs
Decision rules
- Open documentation, blogs, and public APIs. Built-in tools are enough. Don't over-engineer this.
- Broad research across many domains with no blocking problem. A community search plugin is the cheapest path.
- Structured extraction from sites that block, render client-side, or vary by region. Install the Decodo fetch plugin. The agent keeps calling web_fetch, and retrieval happens outside the agent loop.
- You want the agent to know when to escalate. Add a skill. A mounted tool the agent never reaches for is dead weight.
- You already have a working CLI or scraper. Expose it through the shell tool or your own MCP server rather than rebuilding it.
These combine in practice. The realistic production setup pairs a plugin or MCP server for the tool itself with a skill that tells the agent when to use it, rather than picking one option and stopping there.
Option 1: Install the Decodo fetch plugin
dsh ships a built-in web_fetch tool with a swappable provider behind it. Decodo's plugin, @decodo/dsh-web-fetch, registers at that seam and pins itself as the fetch provider for the profile you install it into. The agent keeps calling web_fetch with the same name and schema, and gets the same output format back. The only change is where the page comes from: Decodo's Web Data API retrieves it instead of a direct request from your machine.
That makes this the lowest-effort route for blocked pages. There's no new tool for the agent to choose, so nothing needs to teach it when to escalate from plain fetch. The plugin doesn't touch web_search, so search stays with the provider your profile already uses.
Install the plugin
You need a Decodo account, a Web Data API key from the dashboard, and pnpm 10.x alongside the Node.js version you already have for dsh. Then run:
web is the profile dsh created on first run. Install into each profile you want covered. A profile like headless works the same way for one-shot runs. Export the key in the terminal you launch dsh from, then start dsh.
For authentication, the plugin reads DECODO_API_KEY and sends it as Bearer auth. If your plan predates API keys and only has a basic auth token, export it as SCRAPER_API_TOKEN instead.
What the install changes
- Tool-web row. Turns on fetch and raises fetchTimeoutMs to 60 seconds, since dsh's 30-second default is short for protected sites.
- Web row. Pins fetchProvider: decodo, so Decodo holds up even while the built-in http provider stays mounted. The patch also sets searchProvider: deepseek-official on this row, so check that value after installing if your profile uses a different search provider.
- New web-fetch-decodo row. Contains the plugin's own settings.
Settings worth knowing
- output. Defaults to markdown, so the model gets clean text. Set it to html for the raw page, which dsh then converts.
- maxFetchesPerSession. Defaults to 200 requests per dsh process, and 0 turns the cap off. Failed attempts count too. Past the cap, the tool returns an error and makes no more API calls until dsh restarts. Agent loops are the main way to burn through a plan unexpectedly, so leave this on while testing.
- maxContentChars. Defaults to 200000. Longer bodies are cut and flagged as truncated.
- requestTimeoutMs. Defaults to 60000. Keep it at or below fetchTimeoutMs.
To change any of them, override the row in cordis.patch.yml. A patch replaces the row's entire config, so restate every field you want to keep:
Verifying the install
- Run dsh --profile web --dump-config and look for fetch: true, fetchProvider: decodo, and the web-fetch-decodo row.
- Start a session and ask the agent to fetch a page that blocks direct requests, and to report the status and first heading. The plugin's own README uses zillow.com for this.
- Check the raw tool output in the event log, not the agent's summary. An HTTP 200 alone doesn't show which provider handled the fetch, so the pinned provider in the config dump is the proof.
Limits to know
- Bot protection is handled through the API, but some sites may still reject a request.
- Every URL the agent fetches is sent to Decodo and retrieved from Decodo infrastructure, not from your machine.
- Fetched pages are untrusted input and can carry prompt-injection text.
- The plugin has no location setting, so geo-sensitive targets need the proxy approach covered later in this guide.
Skip the config guesswork
Decodo's MCP server is the tested config this walkthrough uses; one plugin entry and you're mounted.
Option 2: Install a scraping skill
The quotable fact first: skills you've already written for another agent CLI work here unchanged. No conversion, no rewriting, just a copy.
Where skills live
dsh reads the same skill format Anthropic uses, and it scans for skills in three places automatically, with nothing to configure.
- ~/.agents/skills. Global, available to every project.
- ~/.dsh/skills. Also global, a dsh-specific location.
- <project>/.agents/skills. Scoped to just the project you're currently in.
The official dsh repo ships its own .agents/skills folder, which is a strong signal that this is the intended way to extend the agent, not a side door.
Practically, this means a skill you wrote for a different agent CLI is a copy-and-paste away from working in dsh.
Installing the Decodo scraping skill
A skill is just a folder, and it lives in Decodo's agent skills repo. Get it onto your machine first, then copy it into place.
That last line copies the whole decodo-web-scraping folder into the global skills directory. dsh reads the skill catalog once, when a session starts, so restart dsh the same way as before (Ctrl+C, then relaunch), then open a new session. The skill should show up under the Skills group in the command palette.
Why a scraping skill earns its place
Mounting the MCP server from Option 1 only gets you halfway. Without a skill telling it otherwise, the agent still defaults to the cheapest tool available, which is plain fetch, and plain fetch is exactly what returns the blocked page in the first place.
A skill fixes this by giving the agent an explicit rule for when to escalate. Something like: use plain fetch for static docs and text pages, but switch to the scraping tool when the response comes back under a certain size, contains a challenge marker, or the target is a site you already know is dynamic.
Here's what that looks like as an actual skill file, using the same quotes.toscrape.com target from earlier in this series, so you can see the shape of a minimal one:
Confirming the skill is picked up
Before relying on it, check that the agent actually sees it. Start a new session and ask something that should trigger the skill, like "collect the quotes from quotes.toscrape.com." If the agent reaches for the mcp__decodo__ tool instead of plain fetch on its own, the skill is working. If it still reaches for plain fetch, double-check that the folder landed in the right place and that its SKILL.md frontmatter actually describes the trigger clearly enough for the agent to match it.
If the agent still isn't reaching for it, the most common cause isn't a misplaced file; it's forgetting the restart. Skills installed mid-session don't appear until the next one starts.
Test new skills in Creator mode first, since that's the mode built for runtime inspection, and only move a skill into your regular Standard profile once you've confirmed it behaves the way you expect.
Decodo's agent skills repo is at github.com/Decodo/agent-skills. For the output format this skill is producing, scraping a website to Markdown covers why that's usually the format agents handle best.
Option 3: Call a scraping CLI from the shell tool
This is the shortest of the three options. dsh Standard mode already ships a shell tool, so anything installed on your machine and reachable on PATH is something the agent can already run.
How it works
If a CLI is installed and callable from your terminal, the agent can call it too, the same way it runs any other shell command. There's no separate setup step specific to dsh here, since this isn't a plugin or a skill; it's just the agent using a tool it already has.
Concretely, set your credential as an environment variable in the same terminal dsh runs in:
Once that's set, the agent can call the CLI directly, either the installed command or through npx:
You don't need to relaunch dsh for this one. Environment variables set in the terminal before you start dsh are just part of the process environment the shell tool inherits, not something dsh has to load or scan.
The trade-off
An MCP tool comes with a schema, telling the agent exactly what arguments exist and what they do. A shell command doesn't. The agent has to infer the CLI's usage from whatever it can see, like a --help output or general familiarity with the tool, which means less reliable argument use than Option 1 gives you. That makes this a good fit for testing something quickly or running a one-off job, and a weaker fit for a pipeline you're going to run repeatedly and trust.
If you do end up keeping this as your long-term setup rather than just testing with it, pair it with a skill. The skill can supply exactly the usage guidance a shell command has no schema to carry on its own, closing the gap Option 2 already solves for the MCP approach.
The Decodo CLI itself lives atgithub.com/Decodo/cli.
Handling blocked pages, rendering, and rate limits
JavaScript-rendered targets
Before adding any rendering layer, confirm that's actually the problem. Check the raw response your fetch tool returns against what DevTools shows after the page finishes loading. If they don't match, that's client-side rendering, and the fix belongs here. If they do match, the failure is something else, most likely a block, and adding a headless browser won't touch it.
Once confirmed, there are two paths. In-house, you run a headless browser behind a thin HTTP wrapper and mount that wrapper as a local stdio MCP server, the same shape covered in Option 1. This works, but you now own the browser's lifecycle: crashes, memory growth, and keeping it alive across long sessions become your problem, not the agent's. The managed alternative is a scraping API that renders server-side, so the dsh tool call itself stays a plain request that comes back with parsed data, no browser process for you to babysit on your own machine.
IP reputation and geo-accuracy
Anything running inside a container or CI runner defaults to a datacenter IP, and consumer-facing sites score those accordingly, often serving a challenge page before your scraper does anything else.
Residential IPs matter here for a reason beyond just getting through: correctness. Pricing, stock levels, and rankings are location-dependent, so the wrong IP doesn't return an error; it returns data that looks completely plausible and is simply wrong. That's the failure an agent has no way to catch on its own, since nothing about a wrong-but-valid response looks broken.
For anything behind a login or a multi-step flow, use sticky sessions too, so the IP doesn't rotate out from under you mid-flow and invalidate the session it's in.
Rate limits and crawl pacing
Cap in-flight requests at the tool layer itself rather than trusting the agent to pace things on its own. Left unconstrained, the model will parallelize aggressively if the tool lets it, which is exactly what triggers rate limiting in the first place.
When a 429 comes back, surface it to the agent as an explicit error, never as ordinary content. A silent partial dataset, where the crawl looks complete but quietly isn't, is the worst outcome an agentic scrape can produce, precisely because nothing about it looks wrong.
Worth watching from a cost angle too: every retried page gets re-read by the model, not just re-fetched. Keep an eye on the event log's token metrics so a retry loop shows up as a cost spike before it shows up as a bad dataset.
When you need to scale
At some point, maintaining a browser pool, a proxy rotation layer, and challenge handling just to keep one agent supplied with data starts to look like rebuilding a scraping API around that agent. The build-versus-buy line here isn't about capability; it's about where you want that ongoing maintenance to sit: on your own infrastructure, or behind a single endpoint someone else keeps running.
Decodo's Web Data API is that single-endpoint option, handling rendering, proxies, and challenge pages together rather than as three separate things you're wiring up yourself. And where the agent specifically needs consumer-grade IPs for geo-accurate results rather than just access, Decodo's residential proxies are the layer that addresses that correctness problem directly.
The operational side of running this at real volume, beyond what a single agent needs, is really its own topic, and mismatched IP location on a proxied request is one of the more common ways an otherwise-working setup starts returning quietly wrong data.
Worked example: a dsh agent that builds a product dataset
This ties Options 1 and 2 together into one real run, using books.toscrape.com as the target, the same site used earlier. It has 1,000 books spread across 50 pages, 20 per page, which gives you a known total to check your final dataset against.
This assumes dsh is already installed and running, picking up right where the earlier sections left off.
Step 1: Define the goal in the prompt
Open a new session and state the task plainly, including the output shape you want. Something like this works:
For now, you don't need to input this anywhere; just jot it down in a note. Being explicit about the fields and the output format here matters. It's what the skill in Step 3 will reference, and what makes the final output checkable in Step 6.
Step 2: Add the plugin entry and verify the tool list
If you haven't already mounted the Decodo MCP server from Option 1, do that now: add the insert-wrapped block to ~/.dsh/profiles/web/cordis.patch.yml, save it, and relaunch dsh.
Once dsh is back up, confirm it's mounted before doing anything else. Run npx @deepseek-ai/dsh --profile web --dump-config in a terminal and check the mcp-decodo entry appears, then start a session and list available tools to confirm you see ones prefixed mcp__decodo__. If either check fails, stop here and revisit Option 1 rather than continuing, since nothing past this point works without the tool actually being there.
Step 3: Drop in the skill
Mounting the tool only means the agent can use it, not that it will. Without a skill, the agent still defaults to plain fetch, and books.toscrape.com's tag pages render some content client-side, so plain fetch on its own can miss data.
Create a skill file for this specific target:
Enter this inside the file:
Save the file.
Then, same as Option 2, restart dsh and start a fresh session, since the skill catalog only refreshes at session start, not mid-session.
Step 4: Run in Standard mode and watch the trajectory
Give the agent the prompt from Step 1 in this new session (Standard mode is the default, so nothing extra to switch on here).
The first page should succeed cleanly: the agent calls the mcp__decodo__ tool, gets back structured data for the first 20 books, and extracts the four fields. From there, it should discover the pagination pattern on its own, the "next" link the skill told it to follow, and start iterating through the remaining pages automatically.
At this point, the agent has everything it needs: the mounted tool, the skill telling it when to reach for that tool over plain fetch, and a clearly defined target to work through the full catalog on its own and return the completed dataset as JSON Lines.
Limitations to expect in the developer preview
- Breaking changes are expected. The maintainers say so directly. Pin your dsh version in any pipeline that matters, and re-verify your config after every upgrade.
- No OAuth flow in the harness core. Static tokens and headers work fine for authentication. Servers needing dynamic client registration require a community plugin, such as dsh-oauth-mcp-client.
- Tool name collision behavior across servers is undocumented. Keep every serverName value distinct rather than relying on how dsh resolves conflicts.
- No documented GitHub-native workflow or hosted background agents, unlike established commercial agent CLIs. Local and self-hosted only, for now.
- The plugin ecosystem is only weeks old. Extension contracts are unstable, and most plugins have a single maintainer. Read the source of anything you mount with credentials.
Final thoughts
DeepSeek Harness's plugin-first design makes it unusually easy to extend with data tools; mounting a scraping server is one config entry, not a fork. Skills porting across unchanged means work you've already done for other agents carries over rather than starting from scratch. But the real cost in this piece sits somewhere else: the gap between an agent that fetched a page and one that has correct data, a gap that stays invisible unless you read raw tool responses instead of trusting what the agent reports. Verify everything here against the live repo before relying on it. This is a preview, and the config in this article, like any article's, has a shelf life.
Stop rebuilding your scraper
Decodo's Web Data API handles rendering, proxies, and challenge pages behind one endpoint.
About the author

Zilvinas Tamulis
Technical Copywriter
A technical writer with over 4 years of experience, Žilvinas blends his studies in Multimedia & Computer Design with practical expertise in creating user manuals, guides, and technical documentation. His work includes developing web projects used by hundreds daily, drawing from hands-on experience with JavaScript, PHP, and Python.
Connect with Žilvinas via LinkedIn
All information on Decodo Blog is provided on an as is basis and for informational purposes only. We make no representation and disclaim all liability with respect to your use of any information contained on Decodo Blog or any third-party websites that may belinked therein.


