ClaudeCodeMod

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.

In Claude Code
/plugin install dispatch-gate --marketplace wdsewdser-bit/claude-code-mods
Open the repo

It 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

The opening of the dispatch-gate README, which is written in Chinese, so the picture shows Chinese text: a soft gate that reminds the main session once and refuses once when it does too much itself, and refuses once when it sends Claude subagents too often, with a retry let through; then a table of how each kind of request counts: handing work out resets the count, a request with Read, Grep, Bash, Edit and the like adds one, and bookkeeping and other calls leave it as it is.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • prompt.submitWhen you send a prompt
  • turn.stepAt each step of a turn
  • classic.PostToolBatchA Claude Code event
  • tool.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
Repo
wdsewdser-bit/claude-code-mods
Folder
dispatch-gate
Version
0.1.0
License
MIT
Repo stars
5
Last change
2026-10-22
Language
TypeScript
Files
9

Other mods in Usage

usage-baromeerdvrnDraws your 5-hour and 7-day plan limits under the prompt, used or left, with the git branch and file counts, the model, context, and the session's cost.limitsRyan-LTDraws a band above the prompt with the 5-hour and weekly limits, a pace warning, and context fill, and toasts at 75%, 90%, and 100%.context-guardmelodic-softwareShows a toast when the session's context crosses into a worse zone, smart, acceptable, or dumb, and can draw the zone and percent in a row above the prompt.rate-limit-guardmelodic-softwareShows a toast when the account's 5-hour or 7-day rate-limit window reaches 90% or 95% and when it resets, and can draw both windows in a row above the prompt.orca-quotamutlumehmetDraws the 5-hour and 7-day usage of every Claude account on this machine in one band above the prompt, and warns once before the current account hits its limit.context-keepermishgoldenbergOpens a pane of what fills the context window with tips to trim it, and saves a handoff note of the goal, decisions, files, and TODOs to .claude/checkpoints/.usage-metermishgoldenbergOpens a pane of the 5-hour and 7-day plan limits with reset countdowns, burn rate and when a limit fills, session cost, cache hit ratio, and tokens per turn.usage-quotaanantraghunathDraws the 5-hour and weekly limits with a forecast at reset and the context window above the prompt, with a Compact button and Auto compact at a set percent.usage-graphdonvitoDraws cards above the prompt for the 5-hour limit, the weekly limit, and the context window, each with its percentage, a bar, and when it resets.wavy-usageBatuhanCakmakkDraws liquid-filled rings above the prompt for the 5-hour and 7-day limits, the context, and the prompt cache, a jet for the effort, and a pane of recent turns.usage-band-modjonathanlocksDraws one line above the prompt with the model, session cost, context, the 5-hour and weekly limits, and a per-model weekly limit, led by a pixel crab mascot.usage-statsconnorchuang32Opens /usage-stats in the desktop app: a heat map of tokens per day, trends and models tabs, and a Wrapped-style card you can save as an SVG.
All 183 in Usage