ddg-search

ddg-search is a skill for Claude Code, Codex from TheSyart/emperor-agent. It costs 74 tokens per session (511 once invoked), scanned A, original, MIT.

A web-search skill that uses DuckDuckGo Lite through a page-fetching tool and does not need a search API key.

In plain words
What is it for?
Use it to search the web, filter results by region, and then fetch relevant pages for reading. It is intended as a fallback search method.
Why use it?
It provides a fallback when the usual web search is unavailable or lacks the required API key. Results include titles, links, and short descriptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to search the web, filter results by region, and then fetch relevant pages for reading. It is intended as a fallback search method.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thesyart/emperor-agent/ddg-web-search-1.0.0
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TheSyart/emperor-agent --skill ddg-web-search-1.0.0
Clone the repo
git clone --depth 1 https://github.com/TheSyart/emperor-agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ddg-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/thesyart/emperor-agent/ddg-web-search-1.0.0/github.svg)](https://agentmods.dev/skills/thesyart/emperor-agent/ddg-web-search-1.0.0)
Your own site
<a href="https://agentmods.dev/skills/thesyart/emperor-agent/ddg-web-search-1.0.0"><img src="https://agentmods.dev/badge/skills/thesyart/emperor-agent/ddg-web-search-1.0.0/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ddg-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/thesyart/emperor-agent/ddg-web-search-1.0.0"><img src="https://agentmods.dev/badge/skills/thesyart/emperor-agent/ddg-web-search-1.0.0.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.00511
Opus 5 $0.00037 $0.00255
Sonnet 5 $0.00015 $0.00102
Haiku 4.5 $0.00007 $0.00051

Measured 13d ago against content hash e682629ecedd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ddg-search scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills-catalog/ddg-web-search-1.0.0/SKILL.md · 60 lines

What it actually says

DuckDuckGo Search via web_fetch

Search the web using DuckDuckGo Lite's HTML interface, parsed via web_fetch. No API key or package install required.

web_fetch(url="https://lite.duckduckgo.com/lite/?q=QUERY", extractMode="text", maxChars=8000)
  • URL-encode the query — use + for spaces
  • Use extractMode="text" (not markdown) for clean results
  • Increase maxChars for more results

Region Filtering

Append &kl=REGION for regional results:

  • au-en — Australia
  • us-en — United States
  • uk-en — United Kingdom
  • de-de — Germany
  • fr-fr — France

Full list: https://duckduckgo.com/params

Example — Australian search

web_fetch(url="https://lite.duckduckgo.com/lite/?q=best+coffee+melbourne&kl=au-en", extractMode="text", maxChars=8000)

Reading Results

Results appear as numbered items with title, snippet, and URL. Skip entries marked "Sponsored link" (ads) — organic results follow.

Search-then-Fetch Pattern

  1. Search — query DDG Lite for a list of results
  2. Pick — identify the most relevant URLs
  3. Fetch — use web_fetch on those URLs to read full content

Tips

  • First 1-2 results may be ads — skip to organic results
  • For exact phrases, wrap in quotes: q=%22exact+phrase%22
  • Add specific terms to narrow results (site name, year, location)

Limitations

  • No time/date filtering (DDG Lite doesn't support &df= reliably via fetch)
  • Text results only — no images or videos
  • Results sourced from Bing (may differ from Google)
  • Google search does NOT work via web_fetch (captcha blocked)
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 60 lines · 74 tokens per session scan A e682629ecedd

Subscribe to this mod's changes

ddg-search is a skill published in the GitHub repository TheSyart/emperor-agent (185 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 511 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.