@jentrix/plugin-pi

The official Jentrix package for Pi: connected-session extension commands and the lifecycle/token-receipt ledger the Jentrix CLI's session host reads (jentrix plugin install pi).

Packages

Package details

extension

Install @jentrix/plugin-pi from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@jentrix/plugin-pi
Package
@jentrix/plugin-pi
Version
0.1.1
Published
Sep 14, 2026
Downloads
293/mo · 223/wk
Author
jentrix-ai
License
MIT
Types
extension
Size
78.1 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "extensions": [
    "src/index.js"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@jentrix/plugin-pi

The official Jentrix package for Pi (@earendil-works/pi-coding-agent). Installed and registered by the Jentrix CLI — npm install -g @jentrix/cli && jentrix plugin install pi — never by hand.

What it does, inside Pi (one extension, src/index.js, declared in package.json's pi.extensions):

  • registers the seven /jentrix-* commands (connect, align, plan, checkpoint, review, status, end) with pi.registerCommand; each handler injects the generated workflow from commands/ as a marked custom message (customType: "jentrix") and waits for the turn it triggers, so the workflow text is never mistaken for the operator's own words;
  • appends one line per observed extension event to ~/.config/stacks/pi-sessions/hooks.ndjson — lifecycle, prompts, tool calls, assistant messages, compaction boundaries, and one token receipt per assistant message plus one per compaction or branch summary — which the CLI's session host reads. Session identity is Pi's own: its bash tool exports PI_SESSION_ID and PI_SESSION_FILE. Nothing here talks to the network; the ledger is 0600 under your home directory.

jentrix plugin install pi runs pi install <this package's directory> (Pi records the path in its settings; nothing is copied) and jentrix plugin remove pi runs pi remove on the same path — Pi's own CLI, never its settings files. Extensions load at startup: restart Pi after installing. A run started with --no-extensions loads none, and such a session records nothing.

Behaviour, events and ledger vocabulary are documented in hooks/hooks.json and manifest.json; the package's jentrix metadata block (behaviour revision, resource digest, compatible CLI range) is stamped by the release tooling and checked by jentrix session doctor.