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

@oisin-ee/pi-prewalk

v0.36.2

Published

A one-shot planner-to-executor handoff for pi, with branch-backed Rust rules.

Readme

@oisin-ee/pi-prewalk

Prewalk starts with the active planner model. After the planning nudge, validated local task activation opens the handoff gate. Without the task-provider capability, a successful todo call opens the gate instead. Imported workers need no bookkeeping call. The first subsequent edit or write result switches the session to the target model, even if that result failed. Nested calls through codemode also count. Without a callable todo tool, the gate is open.

Config

Put prewalk.json in the pi agent directory:

{
  "enabled": true,
  "target": { "model": "alias/luna", "thinking": "medium" }
}

A trusted project's .pi/prewalk.json replaces matching user keys. Prewalk reads both files again at each input. The target needs a provider-qualified model ID and configured credentials. Alias models need the alias extension.

Controls

Use /prewalk or /prewalk on to arm from the active model. Use /prewalk off to cancel without changing the model or config. Use /prewalk restart to select the saved default and arm again. Use /prewalk status to inspect branch state and config errors.

The startup flags are --prewalk, --no-prewalk, and --prewalk-into provider/model. Do not combine --no-prewalk with either arming flag. Flags affect only the startup session. New sessions use enabled from config. Resumed sessions do not arm automatically.

For a dogsled child, add "pi_args": ["--prewalk-into", "alias/luna"] to its profile. To suppress configured prewalk for that child, use "pi_args": ["--no-prewalk"].

State and context

The active branch stores arm, handoff, and off entries. The extension does not keep a separate in-memory protocol state. After a handoff, /new restores the planner unless a later model or thinking selection replaced the handoff target.

pi 1.3.0 permits persistent context edits only at actionable boundaries. Cancellation writes an off entry immediately. A context handler removes canceled planning steering before the next model request. The next turn or settlement boundary records the persistent removal.

Source

The protocol and prompts adapt oh-my-pi prewalk, including session/prewalk.ts and prompts/system/prewalk-{plan,continue,checklist}.md. The original project uses the MIT license. This package keeps the one-shot handoff semantics and adapts them to pi's branch entries.