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-side-chat

v0.1.4

Published

Pi extension that forks the current conversation into a side chat

Downloads

189

Readme

pi-side-chat

Fork the current conversation into a side chat while the main agent keeps working.

npm version License: MIT

pi install npm:pi-side-chat

https://github.com/user-attachments/assets/3a359f47-c706-46b9-8b16-d05f430d402c

You're in the middle of a longer task and want to ask something small without derailing the main thread — check an API detail, sanity-check an approach, search something, or peek at what the main agent is doing. Open the overlay, ask, close it. Main thread never gets interrupted.

Quick Start

Open side chat with Alt+/ or /side. Ask a question and press Enter.

Press Esc to close it. Reopen with Alt+/ to continue where you left off.

Toggle focusAlt+/ switches between the side chat and main editor without closing the overlay.

Toggle modeCtrl+T switches between read-only and edit mode.

Start freshAlt+R re-forks from the latest main context. Alt+N starts a blank conversation.

Features

Forks the conversation — Starts with a copy of the current branch context. All extension tools (web_search, fetch_content, etc.) are available. Does not write back to the main conversation history.

Persists across close/reopen — Closing preserves the conversation. Reopening restores it. Use Alt+R or Alt+N to explicitly start fresh.

Read-only by default — Safe for quick questions and code reading. Toggle to edit mode when you need write access.

| Mode | Tools | |------|-------| | Read-only | read, grep, find, ls | | Edit | read, bash, edit, write (with overlap warnings) |

File overlap warnings — If the side chat tries to modify a file the main agent has touched, it asks before proceeding.

Peek at the main agent — The peek_main tool reads recent activity from the main session.

What is the main agent doing right now?
What changed since I opened this side chat?

Non-capturing overlay — Leave it visible and switch focus back to the main editor. Opens at the top of the screen so the main editor stays visible underneath.

Controls

| Key | Action | |-----|--------| | Alt+/ | Open side chat / toggle focus | | Enter | Send message | | Esc | Interrupt streaming, or close when idle | | Alt+R | Re-fork from latest main context | | Alt+N | Start empty conversation | | Ctrl+T | Toggle read-only / edit mode | | PgUp / Shift+↑ | Scroll up | | PgDn / Shift+↓ | Scroll down |

Command Reference

/side

Opens the side chat overlay.

peek_main

Available to the side agent only.

| Param | Type | Description | |-------|------|-------------| | lines | integer | Max items to inspect (default: 20, max: 50) | | since_fork | boolean | Only show activity after the side chat was opened |

Configuration

Create a config.json next to the extension to change the shortcut:

{
  "shortcut": "alt+/"
}

How It Works

The extension clones the current session context, creates a separate agent instance with all extension-registered tools, and renders it in a TUI overlay. Closing saves the conversation in memory so reopening restores it.

Main-agent tool execution events are tracked to maintain a set of written file paths. In edit mode, write-capable tools are wrapped to warn before touching those paths.

peek_main reads the current session branch on demand and returns a compact summary.

Limitations

  • One side chat at a time
  • Won't open on top of another visible overlay
  • Does not merge messages back into the main thread
  • Bash overlap detection is heuristic — catches common write patterns, not all
  • peek_main is on-demand, not live