feat(web): integrate curl.md as default URL→Markdown CLI for all agents#158
Merged
feat(web): integrate curl.md as default URL→Markdown CLI for all agents#158
Conversation
curl.md (wevm/curl.md, MIT) becomes the first reflex for any agent that consults, cites, extracts or indexes a web page. It replaces WebFetch and `defuddle parse <url>` everywhere; defuddle is demoted to fallback (local HTML files + curl.md outage). shot-scraper (visual) and obscura (JS-rendered scraping/CDP) keep their roles. - registry: add curl-md (priority required) + demote defuddle to recommended - catalog: ExternalModule curl-md (--with-curl-md, enabledByDefault) - CLI: wire --with-curl-md flag in install.go + applyFlags - protocol: new framework/agents/_shared/curl-md-protocol.md (canonical) - docs: CLAUDE.md, agents/CLAUDE.md, agents-authoring.md, install-reference.md - base-rules: add "Consultation web — premier réflexe curl.md" rule - side updates: cli-tools, obsidian-doc, token-optimizers, design-source Tests: go test ./... green (installer + cmd + tui + config + registry).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pourquoi
Demande utilisateur : "On intègre ça par défaut au framework https://curl.md/ — si on consulte / extrait / search une page web on passe par ça."
curl.md(wevm, MIT, gratuit) est désormais le premier réflexe pour toute consultation / extraction / indexation d'une page web par un agent ulk. Le service convertit n'importe quelle URL en Markdown optimisé pour LLMs (token-savings 50-90 % vs HTML brut).Ce qui change
Hiérarchie des outils web (mise à jour)
curl.md <url>shot-scraperobscuradefuddlerequired)WebFetchPérimètre du remplacement (réponse aux questions au début)
WebFetchpartoutdefuddle parse <url>(defuddle reste pour HTML local + fallback)defuddle(HTML local),shot-scraper(visuel),obscura(JS-rendered)Sécurité
defuddlelocal.Diff résumé (14 fichiers, +318 / −36)
Nouveau
framework/agents/_shared/curl-md-protocol.md— protocole canonique (install, usages, patterns, fallback, sécurité, plugin Claude)Modifié
framework/tools/cli-registry.json— ajoutcurl-md(required) + démotiondefuddle(recommended)framework/cli/internal/installer/catalog.go— ExternalModulecurl-md(--with-curl-md,enabledByDefault: true)framework/cli/internal/installer/modules_test.go—curl-mdajouté à la liste enabled-by-defaultframework/cli/cmd/install.go— flag--with-curl-md(struct + Bool + boolFlag + applyFlags)framework/agents/_shared/base-rules.md— nouvelle règle « Consultation web — premier réflexe curl.md » (héritée par tous les agents)framework/agents/_shared/cli-tools-protocol.md— chaîne docs avec curl.md prioritaireframework/agents/_shared/obsidian-doc-protocol.md— section curl.md ajoutée, defuddle rétrogradéframework/agents/_shared/token-optimizers-protocol.md— table outils + exemples mis à jourframework/agents/_shared/design-source-protocol.md— pipeline audit/web bascule sur curl.mdCLAUDE.md— ligne « Key CLIs » et bloc detail curl.md / defuddle révisésframework/agents/CLAUDE.md— Tool Usage + table protocoles partagés.claude/rules/agents-authoring.md— tableextends:+ protocoles partagés.claude/rules/install-reference.md— option--with-curl-md+ section CLIs requisesTests
/tmp/ulk-test install --helpconfirme le flag :Test plan
./install.sh(sans flag) → curl.md installé par défaut (enabledByDefault: true)./install.sh --with-curl-md→ install explicite + idempotent (skip si déjà présent)curl.md https://example.com/articleretourne du Markdown proprecurl https://curl.md/<url>fonctionne sans CLI installée (CI / hooks)framework/tools/check-tools.shreconnaît curl.md (lecture dynamique du registry)https://claude.ai/code/session_01Ur7XGBMwMkUFBrpb2Gi72z
Generated by Claude Code