npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xynogen/pix-commands

v0.4.0

Published

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

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.
  • /afk — toggle AFK mode for unattended runs (yellow auto-allow, red/root auto-deny).
  • /yolo — toggle YOLO mode for unattended runs (auto-approve nearly everything incl. red/root; capable models only, session consent required).

/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.

/afk

/afk toggles AFK mode (away-from-keyboard) for unattended runs. It is a shared toggle stored in a global flag and shown in the status bar.

When ON, yellow (medium-risk) permission gates auto-allow, while red (dangerous) gates and sudo prompts auto-deny:

AFK mode on — yellow gates auto-allow; red and sudo auto-deny.

When OFF (the default), normal approval prompts are restored:

AFK mode off — approval prompts restored.

The point is to let the agent keep working on safe, medium-risk actions while you are away, without silently permitting destructive ones. It pairs with the herdr notification bridge in pix-runtime: you still get pinged when something truly needs you (a red gate or root), and auto-deny turns that into a stop rather than an approval.

/yolo

/yolo toggles YOLO mode: almost every permission gate auto-approves, including red (critical) commands and root (sudo_run). For the vast majority of actions there is no human confirming, so a destructive or irreversible action can run before anyone stops it. Use it only when you accept that. A few things still stop you — the four guardrails below are the deliberate exceptions to "auto-approve everything."

YOLO mode on (model score 82) — every gate including red and root auto-approves.

Four guardrails temper the blast radius:

  • One-time session consent. The first /yolo of each session opens a blocking modal spelling out the damage risk and the AS-IS/no-liability disclaimer; you must explicitly accept before YOLO arms. Cancel leaves the normal prompts in place. Consent is session-scoped — a fresh session asks again, so arming YOLO is always a conscious act, never a forgotten flag.

  • Capable models only. YOLO refuses to turn on unless the active model has a benchmark score of at least 75 (from pix-data). A weaker or off-catalog model is rejected with a message, because auto-approving red and root demands a model that reasons well about consequences.

  • Root still needs a ticket. sudo_run auto-approves only when a valid PAM ticket is already cached — the password cannot be auto-typed, so a first root command with no cached ticket still shows the password prompt. Bare sudo in bash is always redirected to sudo_run, never run directly.

  • Circuit breaker. A short list of catastrophic, unrecoverable commands — rm -rf / or ~, dd/redirect onto a raw disk, mkfs on a device, a fork bomb — is exempt from every mode, including YOLO (see pix-gate). This does not forbid the command: a genuine dd-to-USB or mkfs still runs, it just falls back to a one-time Allow/Deny prompt instead of a silent auto-approve. One extra click, only under YOLO, only on the handful of commands you can't undo. Mirrors Claude Code's bypassPermissions floor.

/afk and /yolo are mutually exclusive; turning one on turns the other off.

Mode awareness (both modes)

A relaxed gate is dangerous mainly because the model keeps acting as if a human will still catch a bad call. To close that gap, while either mode is active a short banner is injected into every turn via before_agent_start, telling the model the safety net is off and what it now owns:

  • AFK — plan around auto-deny of red and root; do not depend on a denied step succeeding; stop and summarize when a denial blocks progress.
  • YOLO — before any red or root action, state in the reply why it is necessary, its blast radius and worst-case fallout, and whether it is reversible; if it cannot be justified, do not run it; always prefer the least destructive path.

The banner is only present while a mode is on, so it costs no baseline tokens otherwise.

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