dsh-tool-gate: On-Demand Tool Loading to Minimize Per-Step Schema Overhead

dsh-tool-gate is maintained by DSH43. During Agent creation, it uses `restrict` to block optional tools and exposes only an indexed control tool, `load_tools`; after the model loads tools by name, they are admitted into the next round of requests. It supports a `keep` whitelist and a `hide` blacklist, and dynamically registered tools are automatically blocked under `keep`. The README benchmarks show that after gating 55 tools, the first-step prefix shrinks from roughly 17.4k tokens to about 7.8k. Install it into your profile via pnpm and add it to `dsh.profile.bundles`; configure it in `cordis.patch.yml` and restart dsh to apply. It is well suited for presets with a large tool set that benefit from on-demand tool exposure.

Read More