stage
PLUGINStage Ulpi write_file and patch calls in a scratch copy.
by adindamochamad · v0.2.6
What it does
Stage Ulpi write_file and patch calls in a scratch copy. Original files stay unchanged until stage_apply.
Disclosure — while enabled, write_file and patch land in a scratch copy under the Ulpi plugin-data directory and the real files change only when the model calls stage_apply (the model can apply without asking the user); writes outside the session workspace are refused, terminal commands that would modify workspace files (redirects, tee, sed -i, rm/mv/cp, git checkout/restore/reset --hard) are blocked, and any execute_code that uses subprocess, os.system or file-writing calls is blocked; stage_apply re-checks Ulpi's write denylist and approval-gated paths before writing.
Tools it adds
The tools an agent gets once this plugin is installed.
- stage_apply
- stage_discard
- stage_status
- stage_diff
- stage_receipts
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