@xynogen/pix-gate 0.2.10 → 0.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,9 +4,32 @@ Pi extension — permission gate for dangerous bash commands.
|
|
|
4
4
|
|
|
5
5
|
## What it does
|
|
6
6
|
|
|
7
|
-
Intercepts every
|
|
7
|
+
Intercepts every tool call and classifies it against severity rules before it runs. Two rule sets:
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Path rules** — protect `read`/`write`/`edit` from private keys, credential files, etc.
|
|
10
|
+
|
|
11
|
+
| Tier | Behavior |
|
|
12
|
+
|---|---|
|
|
13
|
+
| `block` | deny-first, 15s timeout |
|
|
14
|
+
| `warn` | allow-first, 30s |
|
|
15
|
+
| `info` | blue notify, never blocks |
|
|
16
|
+
|
|
17
|
+
**Command rules** — gate `bash` invocations.
|
|
18
|
+
|
|
19
|
+
| Tier | Examples | Behavior |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `critical` | force-push to main, recursive delete, `dd` to disk | hard-block (non-interactive) / 15s auto-deny dialog (TUI) |
|
|
22
|
+
| `dangerous` | any `sudo` (hard-redirected to `sudo_run`, no bypass) | 30s auto-deny confirmation |
|
|
23
|
+
| `risky` | — | 60s allow-first dialog; silently passes non-interactive |
|
|
24
|
+
|
|
25
|
+
Auto-approve patterns and extra rules go in the `gate` section of `~/.pi/agent/pix.json`; set `guardrails: "off"` to disable built-in rules entirely.
|
|
26
|
+
|
|
27
|
+
**Away notifications** — while a dialog is open, the gate holds the shared **agent-state** coordinator `blocked` (via `withAgentBlock` from [`@xynogen/pix-runtime`](https://www.npmjs.com/package/@xynogen/pix-runtime)), so a herdr pane pings an away user. Pairs with pix-commands unattended modes:
|
|
28
|
+
|
|
29
|
+
- `/afk` — yellow gates auto-allow, red/root auto-deny, so only genuine stops surface.
|
|
30
|
+
- `/yolo` — every tier including red auto-approves (capable models only).
|
|
31
|
+
|
|
32
|
+
Bare `sudo` in bash is always redirected to `sudo_run`, regardless of mode.
|
|
10
33
|
|
|
11
34
|
**Circuit breaker.** A small set of catastrophic, unrecoverable commands — `rm -rf /` or `~`, `dd`/redirect onto a raw disk, `mkfs` on a device, a fork bomb — can never be auto-approved by any mode, including YOLO. They always fall through to the interactive dialog (or a no-UI block). This mirrors Claude Code's `bypassPermissions` floor, which still prompts on root/home wipes.
|
|
12
35
|
|