dynamic-tool-routing-reuse

Route tools across Tier1 always-on and LRU/keyword-based Tier2 unlocks.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/liuyu520/cc_source --skill dynamic-tool-routing-reuse
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dynamic-tool-routing-reuse
Source: https://github.com/liuyu520/cc_source/tree/main/.claude/skills/dynamic-tool-routing-reuse
Command: npx skills add https://github.com/liuyu520/cc_source --skill dynamic-tool-routing-reuse

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manages dynamic tool availability in AI-assisted development environments by providing a robust routing pattern that keeps essential tools always available while progressively unlocking additional tools based on usage and user intent.

Core Features & Use Cases

  • Tier1 always-on tools ensure critical tasks are immediately supported.
  • Tier2 unlock via LRU, intent keywords, and permanent fallback to adapt to user needs.
  • Fallback safety guarantees access to the full CORE_TOOL_NAMES when the dynamic set is insufficient.
  • Clear guidelines for extending tool sets and debugging availability in third-party API modes.

Quick Start

Enable dynamic routing by setting CLAUDE_CODE_DYNAMIC_TOOLS=1 and issue a sample prompt that includes an intent keyword to unlock a Tier2 tool.

Frequently Asked Questions about dynamic-tool-routing-reuse

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is dynamic tool routing in AI-assisted development environments?

Dynamic tool routing manages tool availability by combining always-on Tier1 tools with an LRU and keyword-based Tier2 unlock, plus a permanent fallback. This pattern progressively unlocks additional tools based on usage and user intent.

How do I enable dynamic tool routing for my code assistant?

To enable dynamic tool routing, set the environment variable CLAUDE_CODE_DYNAMIC_TOOLS=1 and issue a sample prompt that includes an intent keyword to unlock a Tier2 tool. This activates the routing pattern in toolRouter.ts.

How does the LRU and keyword-based unlock mechanism work for Tier2 tools?

The LRU and keyword-based unlock mechanism works by keeping essential Tier1 tools always available while unlocking Tier2 tools when user intent keywords are detected, maintaining a least-recently-used cache for progressive availability.

Can I debug tool availability issues in third-party API modes?

Yes, you can debug tool availability in third-party API modes using the documented integration points in toolRouter.ts and related services. The system provides clear guidelines for extending tool sets and troubleshooting availability.

What happens when the dynamic tool set is insufficient for my task?

When the dynamic tool set is insufficient, a permanent fallback safety mechanism guarantees access to the full CORE_TOOL_NAMES set. This ensures critical tasks remain supported even if dynamic routing fails to unlock needed tools.

Does dynamic tool routing support extending tool sets with new tools?

Yes, dynamic tool routing supports extending tool sets by providing clear guidelines for adding new tools, extending intent keyword detection, and maintaining modular architecture across code assistants and related services.