@xynogen/pix-nudge
v0.3.0
Published
Pi extension — model-steering nudges (tools + capability)
Downloads
1,301
Readme
pix-nudge
Pi extension — model-steering nudges (tools + capability).
What it does
Registers two complementary nudge hooks. Both are surgical — they name only the relevant tool, not a full inventory.
Tools nudge — catches bash calls that reimplement a first-class tool (read, ls, grep, find, edit):
- Emits a YELLOW warning once per command category per session, redirecting to the proper tool.
- The command still runs — it teaches, doesn't block (early blocking wasted a turn on forced retry). Later calls in that category are silent.
- Bash stays available for everything else (pipes, compound commands, real shell work).
Nudge steers; it does not guard. Privileged auth stand-ins (bash
sudo/ssh) are not nudged here — those are hard-blocked and redirected tosudo_run/ssh_runbypix-gate, which handles the auth safely. Guarding (stop) and steering (teach) are separate concerns in separate packages.
Capability nudge — steers the model toward tool discovery over guessing:
- One-time orientation block on the first prompt (tool counts, MCP tools, available skills).
- A one-line reminder every 10 turns pointing at
read_skills()and/toolbox. - When
graphify-out/graph.jsonexists, both messages also route codebase questions tographify query.
Install
pi install npm:@xynogen/pix-nudgeAlso included in
@xynogen/pix-core:pi install npm:@xynogen/pix-core
Full distro
Source: github.com/xynogen/pix-mono
To install the complete pix suite (all packages + Pi itself):
curl -fsSL https://raw.githubusercontent.com/xynogen/pix-mono/main/scripts/install.sh | shLicense
MIT
