daedra
CLAUDE.md16 starsChanged 3 months agoMITView on GitHub
Self-contained web search MCP server. 14 unkeyed backends with automatic fallback. Mwmbl and Marginalia answer from any IP. Brave HTML may rate-limit. No paid search keys. Single crate with modular backends: Mwmbl, Brave, Marginalia, Bing RSS, Bing, Google News, Hacker News, Google, Wikipedia, StackExchange, GitHub, Wiby, DDG Instant, DuckDuckGo HTML. SearchProvider runs the fallback chain. Per-backend circuit breakers (BackendHealth), governor keyed rate limits, and classified retry (transient errors only) keep the chain stable. FetchClient classifies responses as FetchedContent (Html /…
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
No hardcoded paths. All configuration comes from environment variables or CLI arguments.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
daedra
Self-contained web search MCP server. 14 unkeyed backends with automatic fallback. Mwmbl and Marginalia answer from any IP. Brave HTML may rate-limit. No paid search keys.
Build and test
cargo build --release
cargo test
cargo clippy -- -D warningsArchitecture
Single crate with modular backends: Mwmbl, Brave, Marginalia, Bing RSS, Bing, Google News, Hacker News, Google, Wikipedia, StackExchange, GitHub, Wiby, DDG Instant, DuckDuckGo HTML. SearchProvider runs the fallback chain. Per-backend circuit breakers (BackendHealth), governor keyed rate limits, and classified retry (transient errors only) keep the chain stable.
FetchClient classifies responses as FetchedContent (Html / Pdf / Document / Text / Binary). HTML uses dom_smoothie Readability extraction. PDFs use infer + pdf-inspector (Markdown out). Office/ebook documents use anydoc. Textual SVG/XML/JSON come back verbatim. Zip containers typed as application/zip are sniffed for embedded office formats. Binary types fail with a typed error.
The MCP server (DaedraHandler in server.rs) exposes web_search, visit_page, and crawl_site. search_duckduckgo is a backward-compatibility alias for web_search. Transports: STDIO and SSE (Axum). The moka async cache layer caches results.
Key files
src/main.rs— CLI entrypoint (Commands::run,CheckReporterfor health checks)src/server.rs— MCP server, Axum HTTP/SSE, tool handler methodssrc/lib.rs— Crate root and re-exportssrc/url_classification.rs— Search result URL → content type (data-driven rules)src/tools/backend.rs— SearchProvider, circuit breakers, rate limiters, fallback chain, aggregate failure messagessrc/tools/rss.rs— Machine-format backends: Bing RSS, Google News, HN Algoliasrc/tools/soft_block.rs— Zero-result page classifier for scraper backendssrc/tools/fetch.rs— Page fetch, Readability, PDF, MIME classificationsrc/tools/crawl.rs— Multi-page crawl toolsrc/tools/— Individual backend implementationssrc/cache.rs— moka async cache layersrc/types.rs— Shared schemas. Language and topic detection tables.
Conventions
- Git author:
bkataru <baalateja.k@gmail.com> - No hardcoded paths. All configuration comes from environment variables or CLI arguments.
- Async runtime: tokio
- Release profile: LTO, codegen-units=1, strip=true
- Extraction deps:
dom_smoothie0.17,infer0.19,pdf-inspector1.17 (PDF),anydoc0.2 (Office/ebook). RSS parsing:quick-xml0.42. Rate limiting:governor0.10. - MSRV: Rust 1.98 (same toolchain as the rest of the DIRMACS Rust stack)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

