All shelves / Mods / Usage
dispatch-gate
By wdsewdser-bit
dispatch-gate is a Claude Code usage mod by wdsewdser-bit.
Refuses one tool call once the main session has made 8 requests in a row itself, and a subagent past 3 an hour, so Claude hands work out. A retry goes through.
Holds a command
Install
The marketplace name is claude-code-mods.
/plugin install dispatch-gate --marketplace wdsewdser-bit/claude-code-modsIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 5
- Last change
- 2026-10-22
What it can reach
- Holds a command
- Sees tool calls
Experimental, built for the Mods API of Claude Code 2.1.29x. Answer y to add the marketplace, then pick a scope; the command doesn't work in the desktop app's Code tab, but a user-scope install from a terminal loads there too. mode is soft by default, remind only reminds, and off does nothing; remindAt 4, denyAt 8, agentPerHour 3, and grace 3 are set in /plugin. DISPATCH_GATE=0 turns it off for one launch. Its state lives in memory only. The README and the reminder are in Chinese.
The marketplace name is claude-code-mods, from wdsewdser-bit/claude-code-mods. The marketplace also holds cache-keeper, ctx-mod, delegate, dispatch, ptc-run, and read-dedup; dispatch is the skill with the delegation rules this one goes with. This one installs on its own. Keeping long sessions cheap is why this page files it under usage. agent-usage-guard asks before a subagent starts, a heavy prompt is sent, or a tool loop runs on, from the 5-hour and weekly usage. subagent-wall holds a subagent after a time limit to git, gh, and Markdown or text writes. This one counts the main session's requests, never a subagent's, reminds Claude once at the 4th request in a row that reads, edits, or runs something itself, and refuses the first such call at the 8th, once a streak; handing work out, or a new message from you, starts the count again. A subagent dispatch past 3 in an hour is refused once, asking Claude to merge the tasks by file or say why it can't. In the source, the refusals come from its tool.call hook, and the reminder is added in classic.PostToolBatch.
Demo

What it hooks into
session.startWhen a session startssession.endWhen a session endsprompt.submitWhen you send a promptturn.stepAt each step of a turnclassic.PostToolBatchA Claude Code eventtool.callAround a tool call, where it can hold one
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- wdsewdser-bit
- Category
- Usage
- Marketplace
- claude-code-mods
- Folder
- dispatch-gate
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 5
- Last change
- 2026-10-22
- Language
- TypeScript
- Files
- 9