Delegation Gate
PLUGINAsk a person before delegate_task spawns subagents.
by kenpritchard · v1.3.3
What it does
Ask a person before delegate_task spawns subagents. Every call that would start subagents goes to the same once / session / always / deny approval gate Ulpi uses for dangerous shell commands, and the prompt shows what you'd be paying for: the subagent's goal, or the task count and the first five goals for a batch.
Controlling subagents that are already running (list, steer, stop) is never gated, so stopping a runaway subagent never waits on approval. Optional block mode (DELEGATION_GATE_MODE=block) refuses delegation outright for unattended profiles; an unrecognized value also blocks.
Fails closed: with no person present (cron, scripts) a gated call is blocked, not allowed. Smart approvals don't auto-approve it; YOLO mode bypasses it like every approval prompt.
Disclosure: one pre_tool_call hook and no tools; no network or model calls, no shell commands, and it stores nothing. It reads DELEGATION_GATE_MODE through Ulpi's agent.secret_scope.get_secret (never a.env file), and logs the mode it chose once per profile; a call Ulpi can't attribute to a profile is blocked.
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve