@xynogen/pix-commands

Pi extension — slash commands for cache clearing and isolated side questions

Packages

Package details

extension

Install @xynogen/pix-commands from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@xynogen/pix-commands
Package
@xynogen/pix-commands
Version
0.2.0
Published
Jul 17, 2026
Downloads
1,815/mo · 132/wk
Author
xynogen
License
MIT
Types
extension
Size
27.3 KB
Dependencies
0 dependencies · 3 peers
Pi manifest JSON
{
  "extensions": [
    "src/extension.ts"
  ]
}

Security note

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

README

pix-commands

Pi extension providing focused slash commands:

  • /clear — flush Pi's cached model data.
  • /btw <question> — ask an isolated side question without interrupting the main agent.

/clear

Deletes ~/.cache/pi to flush stale model-data cache, then prompts you to run /reload.

/btw

/btw runs a separate in-memory child session concurrently with the main agent:

/btw what is the difference between a mutex and a semaphore?

The child session:

  • starts with an empty conversation and a lean Pix system prompt;
  • snapshots the main session's model, thinking level, active tools, credentials, extensions, and working directory;
  • never imports the main conversation;
  • publishes its Markdown answer in a visually distinct side-thread card;
  • keeps rendered BTW answers out of future main-agent LLM context;
  • supports multiple concurrent side questions.

When the main agent is streaming, completion is shown as a notification and the durable card is appended after the main session becomes idle. This prevents the side answer from becoming steering input.

Install

pi install npm:@xynogen/pix-commands

Also 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:

curl -fsSL https://raw.githubusercontent.com/xynogen/pix-mono/main/scripts/install.sh | sh

License

MIT