Pi

Install the Vulnetix security plugin for Pi.

Quick Install

npx skills add Vulnetix/pix-ai-coding-assistant

This installs the Vulnetix security skills into your project’s .pi/skills directory.

Prerequisites

Before running the install command:

  1. Node.js — Required to run npx. Install from nodejs.org if not already available.
  2. Vulnetix CLI — Install and authenticate following the prerequisites guide.
  3. jq — Required by plugin hooks for JSON processing. See prerequisites for install instructions.

What Gets Installed

The plugin registers the following into .pi/skills:

ComponentCountDetails
Hooks6Pre-commit scan, manifest edit gate, post-install scan, session dashboard, stop reminder, vuln context inject
Skills6package-search, exploits, fix, vuln, exploits-search, remediation
Commands4vdb-vuln, vdb-vulns, vdb-exploits-search, vdb-remediation
Agents1bulk-triage — parallel vulnerability triage and prioritization

Native Hooks

Pi supports hooks via its TypeScript extension API. The plugin ships pi-extension.ts which registers beforeToolCall and afterToolCall handlers, wrapping the shared Vulnetix bash scripts.

The following lifecycle events are wired up:

HookEventTools MatchedAction
Pre-Commit ScanbeforeToolCallbash, shell, terminalBlock git commit if vulns found
Manifest Edit GatebeforeToolCallwrite_file, edit_fileGate manifest edits
Post-Install ScanafterToolCallbash, shell, terminalSBOM after package install

After install, register the extension in your Pi configuration:

cp hooks/ts/pi-extension.ts .pi/extensions/vulnetix.ts

See Hooks documentation for details on each hook.

Verify Installation

Run the dashboard skill to confirm everything is working:

/vulnetix:dashboard

You should see a vulnerability summary table for your project’s dependencies. If you get an authentication error, re-run vulnetix auth login.

Upgrade

Re-run the install command to pull the latest version:

npx skills add Vulnetix/pix-ai-coding-assistant

This overwrites existing files with the latest version. Your .vulnetix/memory.yaml and cached data are not affected.

Uninstall

Remove the plugin skills:

rm -rf .pi/skills

To also remove cached vulnerability data and memory:

rm -rf .vulnetix/