Langsung ke konten
Skillpedia
Agen81k Β· #1629

intelligence-route

Fungsinya

Skill ini memilih agent pembantu dan tingkat model mana yang sebaiknya menangani tugas, berdasarkan apa yang pernah berhasil. Skill ini untuk orang yang ingin penugasan tugas yang lebih baik dan bisa dipahami serta diperiksa.

Kapan dipakai

  • βœ“Saat Anda akan memulai tugas yang lebih besar dan ingin pembantu yang tepat dipilihkan.
  • βœ“Saat Anda ingin tahu tingkat model mana yang cocok untuk sebuah tugas dan alasannya.
  • βœ“Saat Anda ingin alasan perutean ditampilkan agar bisa Anda periksa.

Link skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-intelligence/skills/intelligence-route/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œAgent dan model mana yang sebaiknya menangani refactor ini, dan bisakah Anda menjelaskan alasannya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill meminta alat perutean merekomendasikan agent dan tingkat model, memeriksa pola serupa dari masa lalu, dan mendapatkan prediksi. Lalu skill menjalankan pembantu yang dipilih dan, jika Anda minta, menampilkan alasannya. Setelah tugas selesai, hasilnya dicatat untuk memperbaiki pilihan berikutnya.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Intelligence Routing

Pick the optimal agent + model tier for a task using learned patterns + the 3-tier router. Emits a hooks_explain rationale so the choice is auditable.

When to use

Before starting any non-trivial task. Replaces manual agent selection with data-driven decisions.

Steps

  1. Get an agent recommendation β€” mcp__plugin_ruflo-core_ruflo__hooks_route with the task description. Returns { recommended, confidence, reasoning }.
  2. Get a model tier recommendation β€” mcp__plugin_ruflo-core_ruflo__hooks_model-route for Haiku/Sonnet/Opus selection.
  3. Search for similar past patterns β€” mcp__plugin_ruflo-core_ruflo__hooks_intelligence_pattern-search to find prior successes.
  4. Predict outcome β€” mcp__plugin_ruflo-core_ruflo__neural_predict with the task description for a confidence-scored prediction.
  5. Spawn the recommended agent at the recommended model tier.
  6. (If --why was passed) β€” call mcp__plugin_ruflo-core_ruflo__hooks_explain to surface the routing rationale to the user.
  7. After task completes β€” call mcp__plugin_ruflo-core_ruflo__hooks_model-outcome with { task, model, outcome: "success"|"failure"|"escalated" } to train the router.

3-Tier Model Routing

Tier Handler Latency Cost When
1 Deterministic codemod (TS compiler) ~1ms $0 Structural transforms with no LLM: var-to-const, remove-console, add-logging
2 Haiku ~500ms ~$0.0002 Low complexity (<30%), bug fixes, quick patches
3 Sonnet/Opus 2–5s $0.003–$0.015 Complex reasoning, architecture, security, multi-file refactors

When hooks_route returns [CODEMOD_AVAILABLE] for a deterministic intent (var-to-const, remove-console, add-logging), call mcp__plugin_ruflo-core_ruflo__hooks_codemod with the intent + file β€” it applies the transform via the TypeScript compiler at $0, no LLM. Note: add-types, add-error-handling, async-await require judgement and route to a model (Tier 2/3) per ADR-143; they are NOT $0 codemods. Agent Booster is a fast-apply merge engine for LLM-produced edits, not the Tier-1 path.

Recording outcomes

Closing the routing loop is mandatory:

# Success (task, model and outcome are all required; model is haiku|sonnet|opus)
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "success"}'

# The model was too small and the work moved up a tier: use "escalated"; use "failure" if it did not work out
npx @claude-flow/cli@latest mcp exec -t hooks_model-outcome -p '{"task": "fix the flaky retry test", "model": "haiku", "outcome": "escalated"}'

The router learns from these calls. Skipping them = no learning.

CLI alternative

npx @claude-flow/cli@latest hooks route --task "description"
npx @claude-flow/cli@latest hooks pre-task --description "description"
npx @claude-flow/cli@latest hooks explain --task "description" --verbose
Pertanyaan umum

Apakah alasannya selalu ditampilkan?

Hanya jika Anda memintanya dengan opsi why. Jika tidak, pilihan dibuat tanpa penjelasan yang ditampilkan.

Bagaimana skill menjadi lebih baik?

Setelah setiap tugas, hasilnya dicatat sebagai berhasil, gagal, atau dieskalasi, dan ini melatih router.

Tingkat model apa yang dipilih?

Skill memilih di antara tingkat Haiku, Sonnet, dan Opus, berdasarkan seberapa kompleks tugasnya.

Detail

Deskripsi asli dari pembuat

Route tasks via the 3-tier model selector and learned patterns; emits a routing rationale via hooks_explain

repo: ruvnet/ruflo

Popularitas

Bintang GitHub
81k
Peringkat
#1629
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa