AgentPay Guard
PLUGINDeterministic spend and risk policy for any Ulpi tool call.
by tmdry4530 · v0.3.0
What it does
Deterministic spend and risk policy for any Ulpi tool call. A pre_tool_call hook reads the tool name and arguments, finds amount, currency and payee, and applies per-call and daily limits, a payee allowlist, a currency list and an approval threshold.
Hard-limit violations are blocked; over-threshold calls go to Ulpi's own approval prompt (escalate mode) or are blocked into a local approval queue that only a person can release with /guard approve <id> as a single-use, exact-call, expiring grant with limits rechecked (strict mode). Executed spend is recorded in a local ledger from post_tool_call; /guard status|queue|ledger|policy|kill and a read-only guard_check dry-run tool.
Disclosure — no network calls, no shell commands, no subprocesses, no background process, no credentials, no Python dependencies; writes queue, ledger, grants and kill switch only under <ULPI_HOME>/plugin-data/agentpay-guard (argument hashes, not raw arguments); reads an optional policy.json from that same directory.
Tools it adds
The tools an agent gets once this plugin is installed.
- guard_check
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