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

pi-t3code-reload

v0.1.0

Published

Reload Pi from T3 Code with /t3-reload, without restarting the app.

Readme

pi-t3code-reload

A Pi extension that adds /t3-reload, so you can reload Pi from T3 Code without restarting the app. It calls Pi's reload API in the running session.

Tested with Pi 1.4.0 and T3 Code 0.1.1 on Windows. The package tests also pass on Linux. T3 has not been tested on Linux or macOS.

Install

pi install npm:pi-t3code-reload

This adds the package to your Pi settings. Sessions that are already running load it after a restart. New T3 threads load it immediately.

To remove it:

pi remove npm:pi-t3code-reload

Usage

Send /t3-reload in a T3 thread that uses Pi. Pi reloads its extensions, skills, prompts, themes, context files, and settings in the same session, and T3 shows "Pi runtime reloaded." The conversation history stays in place, and no model call is made.

Reload does not replace the running Pi executable. Restart the session after updating Pi itself.

The command refuses to run while Pi is working, has queued messages, or is already reloading. It never aborts work or retries on its own. Send it again once the session is idle. Pi does not count a shell command started over RPC (bash) as work, so that does not block a reload.

If a reload fails after Pi has shut down the old runtime, the session cannot reload again, and extensions stop working until you restart the session. Restart it also if a reload never finishes.

The package does not register /reload. Pi's terminal UI already has that command, and a second /reload would trigger a conflict warning. The terminal UI does not need this package.

Development

Requires Node.js 22.19 or later and npm. The extension has no runtime dependencies and no build step. Pi supplies the extension API.

npm ci
npm test
npm run pack:check
pi --extension ./index.ts

npm run test:rpc runs real Pi in RPC mode with a temporary profile, offline, without MCP servers or model calls. It checks command discovery, loading of changed extension code, repeated reloads, session history in a saved session, and refusal of a second reload while the first is still starting the new runtime.

Set PI_TEST_CLI to Pi's JavaScript entry point, not its shell launcher:

PI_TEST_CLI=/path/to/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js npm run test:rpc

PowerShell:

$env:PI_TEST_CLI = 'C:\path\to\pi-coding-agent\dist\bundle\cli.js'
npm run test:rpc

Without PI_TEST_CLI, the RPC test is skipped. The unit tests do not need Pi. docs/PLAN.md records the test evidence and design decisions.

This is an independent extension, not an official T3 Code or Pi package.

License

MIT.