Λογότυπο Hierarchical Orchestration Router

Hierarchical Orchestration Router

Κοινότητα
AnthonyAlcaraz
hierarchical-orchestration-router

Expose ONE orchestrator to the agent instead of thousands of tools. Classifies a query into a department domain (Sales / Finance / Operations); routes to that domain's orchestrator when confidence exceeds 0.8, else orchestrates cross-domain. Within a domain, clusters tools by FUNCTION so an overloaded or failing tool fails over to a functionally-equivalent alternative from the same cluster (a Search Toolkit, a Metrics Toolkit), adapting parameters. Use when tool and agent counts have grown past a flat registry and you need routing, fault isolation, and no single point of failure. NOT for a single-domain system with a handful of tools (routing overhead buys nothing), NOT a replacement for tool retrieval within a domain (compose with rag-mcp-tool-selection there), NOT a security boundary (per-domain access control is a separate layer).

Επισκόπηση

ΕκδότηςAnthonyAlcaraz
Αποθετήριοagentic-graph-rag-skills
Όνομα δεξιότηταςhierarchical-orchestration-router
Αστέρια
29
Διακλαδώσεις
9
Συνοδευτικά αρχεία
3
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Συνοδευτικά αρχεία: 3

    Αρχεία script, πρότυπα και υλικό αναφοράς που μπορεί να διαβάζει το μοντέλο καθώς εργάζεται. Τα αρχεία είναι μόνο για ανάγνωση και δεν εκτελούνται ποτέ.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό AnthonyAlcaraz. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Hierarchical Orchestration Router στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/hierarchical-orchestration-router
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills.git /tmp/agentic-graph-rag-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-graph-rag-skills/skills/tool-orchestration/hierarchical-orchestration-router .claude/skills/hierarchical-orchestration-router
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Hierarchical Orchestration Router σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Hierarchical Orchestration Router μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Hierarchical Orchestration Router δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Hierarchical Orchestration Router

Overview

Discovery and retrieval find the right tool. Orchestration coordinates them at scale. As tool counts grow from dozens to hundreds and agent counts from one to many, you need infrastructure that routes requests, manages failover, and enforces governance. This skill composes three ideas from the chapter's "Orchestration at Scale" section.

Inversion — one orchestrator, not thousands of tools. Instead of exposing every tool to the agent, expose exactly one: an intelligent orchestrator that handles all complexity. The agent asks for an outcome; the orchestrator decides how to achieve it. This is what lets traditional SaaS answer "why did we lose deals last quarter?" in seconds instead of through menus and reports.

Hierarchical routing. Organizations don't just have more tools — they have multiple MCP servers across departments (Sales, Finance, Operations), each managing hundreds of tools. The router classifies a query into a domain by semantics. High confidence (> 0.8) routes to that domain's orchestrator; low confidence means the query spans domains, so it invokes cross-domain orchestration (chapter Example 6-11). This buys fault isolation (a logistics outage does not stop sales), scalable governance (global vs domain-local policies), and progressive disclosure (users see only capabilities relevant to their context).

Functional clustering for resilience. Within a domain, tools with similar function are clustered for intelligent failover. Baidu's AI Search Paradigm embeds tools by what they DO (DRAFT-refined docs + usage patterns), then K-means++ groups them into functional toolkits. When the primary tool is overloaded, the orchestrator fails over to a functionally-equivalent alternative from the same cluster — a "Search Toolkit" of Baidu AI Search / ArXiv MCP / Perplexity / OpenAI WebSearch — adapting parameters as it fails over. No single point of failure.

When to Use

  • Multiple departments/domains each own many tools (or MCP servers)
  • Queries arrive that may belong to one domain or span several
  • You need failover: when one tool is overloaded, route to an equivalent
  • You are turning a legacy multi-tool surface into a single natural-language entry

Phrases that invoke this skill: "route this query", "which domain owns this", "cross-domain", "one orchestrator", "fail over to an equivalent tool", "functional clustering", "hierarchical orchestration".

When NOT to Use

  • A single-domain system with a handful of tools — routing overhead exceeds benefit; use rag-mcp-tool-selection directly.
  • As tool retrieval within a domain — this routes to a domain and names the functional clusters; picking the specific tool inside a domain is rag-mcp-tool-selection / the gateway.
  • As a security boundary — per-domain access control (which agent may reach which domain) is a separate authentication layer; this is coordination.
  • When there is no failover set — a domain with one tool per function has no functionally-equivalent alternative; the skill correctly reports a single point of failure rather than inventing one.

Process

StepInputActionOutputVerification
1Orchestration config JSON (domains + tools)lib.load_config(path)Config dictHas domains (with keywords + tools) and tools (with key_topics)
2Query + domainslib.identify_domain(query, domains)Best domain + margin confidence [0,1]Single-domain query → confidence near 1.0; spanning query → near 0.5
3Query + domains + thresholdlib.route_request(query, domains, threshold=0.8){routing: domain|cross_domain, ...}confidence ≥ 0.8 → domain; < 0.8 → cross_domain with spanning domains
4Toolslib.cluster_tools(tools)Functional toolkits (clusters)Tools sharing a function land in one cluster; unrelated tools do not
5Tools + failed toollib.failover(tools, failed_tool)Alternative from the same cluster (highest reliability first)Alternative shares the failed tool's function; single-member cluster reports SPOF
6Query + configlib.orchestrate(query, config)Single-entry result (routing + available clusters)The agent sees ONE call; complexity is hidden behind it

Rationalizations

Agent rationalizationDocumented rebuttal
"Just expose all the tools and let the model pick."At department scale that is the prompt-bloat crisis (Ch6 opening). Inversion exposes one orchestrator; the model reasons about outcome, not tool catalog.
"Route everything to the single best-matching domain."A query about how inventory affects financial projections spans Operations and Finance. Forcing it into one domain returns a partial answer. The 0.8 confidence threshold is what detects the cross-domain case.
"Lower the confidence threshold so more queries route directly."Below 0.8 the router deliberately treats the query as cross-domain — that is the feature, not a miss. Lowering it re-introduces the single-domain partial-answer failure for spanning queries.
"One tool per function is simpler than a cluster."It is also a single point of failure. Functional clustering exists so an overloaded primary fails over to an equivalent — the chapter's resilience-through-redundancy point.
"Failover can pick any other available tool."Failover must pick a FUNCTIONALLY-EQUIVALENT tool (same cluster). Routing a search query to a metrics tool because it was idle defeats the purpose.

Red Flags

  • Every query routes cross-domain. The domain keywords are too generic or overlap heavily; sharpen them so a clear match scores near 1.0.
  • A cross-domain query routes to a single domain with high confidence. The confidence metric is not margin-based; a spanning query must depress confidence.
  • Functionally-unrelated tools land in one cluster. The clustering key (shared function) is too coarse — tighten key_topics so groups do not bridge.
  • Failover returns a tool from a different function. The cluster lookup is broken; the alternative must be a same-cluster peer.
  • CLI --help exits non-zero. SKILL.md / CLI mismatch; multi-harness invariant broken.

Non-Negotiable Verification

  1. Run the benchmark battery.

    python cli.py benchmark

    Confirm single-domain queries route to the correct domain at high confidence, the spanning query is detected as cross-domain (< 0.8), and failover of baidu_ai_search lands on a same-cluster search tool.

  2. Prove functional clustering is clean.

    python cli.py cluster

    Confirm the Search / Metrics / Logs toolkits are distinct (metrics tools do not merge with logs tools).

  3. Prove the single-point-of-failure report. Add a tool with a unique function to the config and run python cli.py failover <that-tool> — it must report no alternative, not invent a cross-function one.

  4. JSON round-trips.

    python cli.py orchestrate "..." --json | python -c "import json,sys; json.load(sys.stdin)"

Security Posture

  • Prompt injection. Domain keywords and tool topics are author-controlled; treat them as untrusted if sourced from external registries. Routing decisions are deterministic given the config — a malicious keyword set could misroute, so the config is a governed artifact.
  • Data exfiltration. No network calls in lib.py. The # TODO(production): seams in identify_domain (embedding classifier) and cluster_tools (K-means++ over embeddings) mark where real ML backends attach.
  • Privilege escalation. Cross-domain routing must still honor per-domain access control — routing a query to Finance does not grant the agent Finance tools; that gate is mcp-gateway-two-meta-tools / IAM. This skill decides WHERE a query goes, not WHETHER the agent may go there.

Composition

  • Sits above rag-mcp-tool-selection / mcp-gateway-two-meta-tools: the router picks the domain; those pick the tool within it.
  • Consumes draft-tool-trust-verifier output: functional clustering embeds tools "by what they do, not what they claim" (DRAFT-refined representations), and the reliability failover ordering is a performance-based trust score.
  • Feeds the Enterprise AI OS control plane — the router is the semantic-search
    • action-governance step in the chapter's EnterpriseAIOS.handle_agent_request.
  • Pairs with federated-context-governance — hierarchical routing needs a coherent per-domain context to route into.

Source Attribution

Distilled from Agentic GraphRAG (O'Reilly), Chapter 6 — Tool Orchestration, "Orchestration at Scale": "The Intelligent Orchestrator", "Hierarchical Orchestration: When Scale Demands Structure" (Example 6-11), and "Functional Clustering: Resilience Through Redundancy". Named references:

  • MCP Gateway hierarchical orchestration — Enterprise Orchestrator → domain → tools; identify_domain confidence 0.8 routing threshold
  • Baidu AI Search Paradigm — functional clustering via K-means++ over usage-pattern embeddings; Search Toolkit failover example

Συνοδευτικά αρχεία

Το μοντέλο τα διαβάζει όποτε χρειάζεται, όσο η δεξιότητα είναι φορτωμένη. Διατίθενται ως αρχεία για ανάγνωση και δεν εκτελούνται ποτέ.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Hierarchical Orchestration Router;

Expose ONE orchestrator to the agent instead of thousands of tools. Classifies a query into a department domain (Sales / Finance / Operations); routes to that domain's orchestrator when confidence exceeds 0.8, else orchestrates cross-domain. Within a domain, clusters tools by FUNCTION so an overloaded or failing tool fails over to a functionally-equivalent alternative from the same cluster (a Search Toolkit, a Metrics Toolkit), adapting parameters. Use when tool and agent counts have grown past a flat registry and you need routing, fault isolation, and no single point of failure. NOT for a...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Hierarchical Orchestration Router στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Hierarchical Orchestration Router είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Hierarchical Orchestration Router στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/AnthonyAlcaraz/agentic-graph-rag-skills/tree/main/skills/tool-orchestration/hierarchical-orchestration-router. Το TypingMind διαβάζει το αρχείο SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Hierarchical Orchestration Router;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Hierarchical Orchestration Router;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Hierarchical Orchestration Router με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Hierarchical Orchestration Router;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό AnthonyAlcaraz με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων
Λογότυπο NousResearch

Antigravity Cli

NousResearch
ΟργανισμόςΔημοφιλής

Χειριστείτε το Antigravity CLI (agy): πρόσθετα, έλεγχος ταυτότητας, sandbox.

53.5K
250.4K
Αρχεία: 1
Προβολή
Λογότυπο langgenius

Backend Code Review

langgenius
ΟργανισμόςΔημοφιλής

Χρησιμοποιήστε το μόνο όταν ζητήσετε ρητά ανασκόπηση ή έλεγχο του κώδικα backend στον φάκελο `api/`. Υποστηρίζει ανασκοπήσεις αλλαγών σε εκκρεμότητα, συγκεκριμένων αρχείων και επικολλημένων διαφορών. Μην το χρησιμοποιείτε για αιτήματα που αφορούν μόνο υλοποίηση,…

24.9K
157.6K
Αρχεία: 4
Προβολή
Λογότυπο langgenius

Frontend Code Review

langgenius
ΟργανισμόςΔημοφιλής

Χρησιμοποιήστε το μόνο όταν ζητήσετε ρητά ανασκόπηση ή έλεγχο κώδικα frontend στους φακέλους `web/` ή `packages/dify-ui/`. Υποστηρίζει ανασκοπήσεις αλλαγών σε εκκρεμότητα, συγκεκριμένων αρχείων και επικολλημένων διαφορών. Μην το χρησιμοποιείτε για…

24.9K
157.6K
Αρχεία: 8
Προβολή
Λογότυπο anthropics

Command Development

anthropics
ΟργανισμόςΔημοφιλής

This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create…

23.8K
146.3K
Αρχεία: 9
Προβολή

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇