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

@indexyz/pi-continue

v0.1.36

Published

Resume interrupted or failed pi agent work with the currently selected model

Readme

@indexyz/pi-continue

A pi extension that adds /continue for resuming the most recently interrupted or failed turn with the currently selected model.

Install

pi install npm:@indexyz/pi-continue

For local development:

pi -e ./pi-continue/index.ts

Usage

  1. Interrupt a running turn (for example, with Escape), or let a provider request fail.
  2. Optionally select another model with /model.
  3. Run /continue.
/continue

/continue takes no arguments. In particular, no --model provider/model option is needed: pi retries the turn using whichever model is selected when the command executes. It does not append a synthetic user prompt.

The command waits for the run to settle, verifies that the current branch ends in an aborted or failed assistant turn, and directly retries from the preceding user message or tool result. A hidden control message starts the turn but is removed, together with the failed assistant response, from every model context. This is a request-level retry rather than a token-level continuation of partial assistant output. Model and thinking-level changes recorded after the interruption or failure do not hide that turn. This includes provider errors such as HTTP 429 rate limits.

中断或遇到 provider 错误后,可以先用 /model 切换模型,再运行 /continue;失败的 assistant 响应会从模型上下文中移除,并由当前选中的模型直接重试,不会新增 user prompt。这是重新执行失败请求,不是从 assistant 的半截输出继续生成 token。

Development

npm install
npm run check --workspace @indexyz/pi-continue

Release

The repository's v* tag workflow checks all workspaces and publishes every local version that is not already on npm. Configure @indexyz/pi-continue as an npm trusted publisher for 5aaee9/pi-agent-extensions and .github/workflows/publish.yml; the workflow uses short-lived OIDC credentials instead of a stored npm token.

License

MIT