# Delegation Gate

Ask a person before delegate_task spawns subagents.

- Type: Plugin
- Version: 1.3.3
- Updated: 25 Nov 2026
- Publisher: kenpritchard
- Category: Tools

[Contact us](https://www.ulpi.io/en/support#contact)

## 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

## More in Tools

- [delegation-receipts](https://www.ulpi.io/en/marketplace/plugins/delegation-receipts): Verify what a subagent says it did before the parent reports the work as done.
- [delivery-gate](https://www.ulpi.io/en/marketplace/plugins/delivery-gate): Pre-delivery verification for Ulpi: runs the deterministic checks a task spec declares (test commands, lint, repro scripts).
- [Delx Recovery](https://www.ulpi.io/en/marketplace/plugins/delx-recovery): Free recovery and continuity for agents.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
