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

@pify/autopilot

v0.2.0

Published

Let the main agent keep going on its own between turns — opt-in, hard-capped by turn count and a no-progress breaker, and it never runs while you are being asked something

Readme

@pify/autopilot

CI npm version npm downloads

Let the main pi agent keep going on its own between turns — opt-in, hard-capped, and never over your head. Arm it toward a goal and it drives the next turn itself until the work is done, the cap is hit, or it stops making progress.

Part of the Pify suite. Install with pify install autopilot or pi install npm:@pify/autopilot.

Why

The suite already loop-guards child agents (@pify/subagent, @pify/swarm), but the primary session still stops after every turn and waits for you. For a well-scoped task you'd rather set it going and step away. Autopilot does that — carefully.

Safety first

An unbounded self-driving agent is the dangerous kind, so every default is a brake:

  • Off by default. It does nothing until you arm it with /autopilot on.
  • A hard turn cap it can never exceed, even via settings (ceiling 200).
  • A no-progress breaker — the same guard @pify/subagent uses — stops it the moment it repeats itself instead of working.
  • Never over your head. While a dialog is open (an ask_question, a confirm), it waits rather than driving a turn. And the agent can hand a decision back to you: it ends a reply with <autopilot-blocked>, states what it needs, and autopilot stops with "needs your input".
  • A clean finish. The agent ends its reply with <autopilot-done> when the task is complete, and autopilot stops. Both tokens are matched only on the reply's last line, so the agent restating the instruction mid-plan does not end the run early.
  • Stops on a failed turn. pi runs its own retry loop first (transient 429s/529s and the like); once those are exhausted and a turn ends on an error, autopilot stops with the error rather than re-driving a dead provider to the cap.
  • Always visible. A 🅰 autopilot N/max footer while armed, and a notification with the reason every time it stops.

It drives each turn on agent_settled (fully idle) via a triggered message, so it never talks over a running turn. Arming is interactive-only, so a headless pi -p run never self-drives.

Use

/autopilot on refactor auth.ts to use the new session API and make the tests pass
/autopilot status        # armed? turns used, goal
/autopilot off           # stop now

Give a goal (recommended) and it works toward that, one concrete step per turn; without one it just continues the current task. It stops on any of: the done signal (<autopilot-done> on the last line), the blocked signal (<autopilot-blocked> — the agent needs your input), the turn cap, no progress, a turn that fails after pi's own retries, or /autopilot off.

A /reload re-instantiates the extension, so it silently disarms autopilot — re-arm with /autopilot on afterwards. A /new, /resume or fork disarms it with a notification.

With @pify/goal: both self-drive the idle agent, so arm only one at a time — running both just means the turn gets nudged twice. Pick autopilot for "keep going until done" or goal for its evidence-gated, budgeted completion.

Settings

.pi/autopilot.json (project) or <agentDir>/autopilot.json (global):

{
  "maxTurns": 10,
  "maxUnchangedTurns": 3
}

maxTurns (1–200) is the hard cap per arming; maxUnchangedTurns (2–10) is how many turns with no real progress count as stuck. PIFY_AUTOPILOT_MAX_TURNS overrides the cap for one run. Bad values fall back to the defaults with a warning.

License

MIT © Pify maintainers