agentleFS
wu1chenghuiwu1chenghui/hermes-search-survival-guide/AGENTS.md

hermes-search-survival-guide

AGENTS.md0 starsChanged 4 months agoMITView on GitHub

AI agent context for this repository. Auto-loaded when working_dir points here. ⚠️ Do NOT overwrite ~/.hermes/config.yaml. If the user already has one, add these lines instead of copying the template: To install ddgs and Scrapling (optional, for dual-backend setup): Set in docker-compose.yml (NOT .env alone):

  • Reads credentials
  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Silent fallback: if search_backend: ddgs but ddgs not installed, Hermes silently falls back to firecrawl.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md — Hermes Search Survival Guide

AI agent context for this repository. Auto-loaded when working_dir points here.

Quick Start (executable)

git clone <repo> && cd hermes-search-survival-guide
mkdir -p docker-data/searxng/config docker-data/searxng/cache ~/.hermes/skills
cp docker/searxng/settings.yml docker-data/searxng/config/
cp -r skills/hermes-web-search-debugging ~/.hermes/skills/
cp -r skills/web-search-strategy ~/.hermes/skills/
cp -r skills/searxng-config ~/.hermes/skills/
docker compose up -d

⚠️ Do NOT overwrite ~/.hermes/config.yaml. If the user already has one, add these lines instead of copying the template:

web:
  search_backend: "searxng"
  extract_backend: "firecrawl"

To install ddgs and Scrapling (optional, for dual-backend setup):

docker compose exec hermes bash -c "uv pip install --target /opt/data/pip-packages ddgs h2 httpcore brotli fake-useragent lxml primp"
docker compose exec hermes bash -c "uv pip install --target /opt/data/pip-packages 'scrapling[all]'"

Key Paths

PathPurpose
~/.hermes/config.yamlHermes configuration — add web: section, do not replace
~/.hermes/skills/Skills directory (copy from skills/)
docker-data/searxng/config/settings.ymlSearXNG engine configuration (copy from docker/searxng/settings.yml)
docker-data/searxng/cache/SearXNG cache (auto-created)
/opt/data/pip-packages/Persistent Python packages (Docker volume to ~/.hermes/)
/opt/data/.playwright/Persistent Playwright Chromium install

Environment Variables

Set in docker-compose.yml (NOT .env alone):

VariableValueRequired
HERMES_HOME/opt/dataYes
SEARXNG_URLhttp://searxng-core:8080Yes
PYTHONPATH/opt/data/pip-packagesFor ddgs/Scrapling

Infrastructure Components

ServiceImagePortPurpose
hermesnousresearch/hermes-agent:latest9119→9119Main agent + web dashboard
searxng-coresearxng/searxng:latest8085→8080Search aggregation
searxng-valkeyvalkey/valkey:9-alpine—SearXNG cache backend

Skills Included

SkillLocationPurpose
hermes-web-search-debuggingskills/hermes-web-search-debugging/Diagnose search failures, all 8 backends
web-search-strategyskills/web-search-strategy/Multi-round research methodology
searxng-configskills/searxng-config/SearXNG engine config + diagnostics

Critical Warnings

  1. Only bing and mojeek work on self-hosted SearXNG. brave, ddg, startpage, presearch, qwant are all permanently dead.
  2. Silent fallback: if search_backend: ddgs but ddgs not installed, Hermes silently falls back to firecrawl. Verify with get_active_search_provider().name.
  3. ddgs not in LAZY_DEPS: Hermes auto-installs SDKs for firecrawl/exa/parallel but NOT ddgs. After container rebuild, ddgs disappears.
  4. SEARXNG_URL must be in docker-compose.yml: a comment in .env is not enough.
  5. secret_key intentionally absent: SearXNG SHOULD auto-generate one on first startup, but if session errors occur after restart, set SEARXNG_SECRET in docker-compose.yml.
  6. Cloudflare blocks AI agents (since July 2025). Use Scrapling with Playwright Chromium at /opt/data/.playwright/ as fallback.
  7. Dual-backend pattern: SearXNG (stable, 17-20 results) + ddgs (free, ~25% empty).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.