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

@ramarivera/pi-goal

v0.1.12

Published

Pi extension that adds Codex-style persisted goals and hidden continuation pressure.

Readme

@ramarivera/pi-goal

Pi extension that adds Codex-style persisted goals, /goal commands, model goal tools, and hidden continuation pressure.

Install

After the package is published:

pi package install @ramarivera/pi-goal

The publishable extension source is:

src/index.ts

For local development, Pi discovers the project-local shim from:

.pi/extensions/pi-goal/index.ts

That shim imports the real source entrypoint and is intentionally not part of the package payload. To avoid collisions when the published package is also installed globally, the project-local shim registers /local-goal and local_get_goal / local_create_goal / local_update_goal.

Commands

/goal <objective>
/goal <objective> --budget 10000
/goal status
/goal pause
/goal resume
/goal clear

Creating a goal also submits the objective as the next user message after the goal state is persisted, so the agent starts working on it immediately.

Recoverable provider/runtime errors automatically re-apply hidden continuation pressure while a goal is active and incomplete, so long-running goals can keep moving without manual intervention.

/goal resume can also be used as a manual pressure button when an active goal stalls: it clears continuation suppression and schedules the hidden continuation again if the goal is still active and incomplete.

In interactive Pi sessions, /goal status opens a compact overlay with the objective, lifecycle status, usage, budget, elapsed time, and model breakdown. In non-interactive modes it falls back to the plain text status notification.

When developing from this repository with the global package installed, use the local command names:

/local-goal <objective>
/local-goal <objective> --budget 10000
/local-goal status
/local-goal pause
/local-goal resume
/local-goal clear

See docs/pi-goal-extension.md for behavior and test details.

Skill

This package also ships a goal skill under skills/goal/SKILL.md that helps Pi recognize when a persisted-goal workflow is appropriate and guides users toward effective objective writing, budget control, and completion auditing.

The skill covers:

  • When to use /goal vs regular chat
  • How to write specific, verifiable objectives
  • Understanding the completion audit
  • Budget guidance and lifecycle behavior
  • Examples: migration campaigns, test coverage, lint sweeps

Tracing

pi-goal writes structured Pino JSON logs for goal state changes, /goal commands, model tools, lifecycle hooks, hidden continuation scheduling, context pruning, token accounting, and suppression decisions.

Default log file:

~/.pi/logs/pi-goal.log

Environment variables:

PI_GOAL_LOG_LEVEL=debug
PI_GOAL_LOG_FILE=/tmp/pi-goal.log
PI_GOAL_LOG_FILE=stdout
PI_GOAL_LOG=0
PI_GOAL_CONTINUATION_DELAY_MS=250

Logs intentionally include goal ids, statuses, counters, usage, and scheduling reasons, but not full continuation prompts or objective text.