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-continual

v0.1.0

Published

Minimal self-improving harness for pi: persistent Python REPL with rlm() sub-agents, continual-harness CRUD, /refine, and bounded autonomous goals

Readme

pi-continual

A minimal self-improving harness for pi, inspired by Prime Agent's RLM + Continual Harness abstractions — implemented entirely as a pi extension, no changes to pi (or pi-pod) required.

What you get

repl tool — persistent Python kernel (RLM-style programmatic tool calling). One kernel per session; variables and imports survive across calls. Pre-loaded globals:

  • rlm(task, name=None, agent=None, model=None) — spawn a persistent sub-agent: a full pi -p session with its own session file under .pi/harness/subagents/<name>/. Returns a handle immediately (non-blocking) so the model can fan out parallel work. Calling rlm() again with the same name sends a follow-up turn into the same sub-agent session — it keeps its context. handle.wait(), handle.result(), handle.running(), subagents().
  • harness — CRUD over the harness's own state, stored as markdown files: | kind | where | effect | | --- | --- | --- | | memory | .pi/harness/memory/ | injected into the system prompt every turn | | prompt | .pi/harness/prompts/ | injected into the system prompt every turn | | agent | .pi/harness/agents/ | sub-agent spec, used via rlm(..., agent=name) | | skill | .pi/skills/ | native pi skill (SKILL.md with frontmatter) |
  • history(n=None) — this session's own JSONL entries, including context that was compacted away: the model has programmatic access to its full past.

/refine command + refine tool — evidence-backed self-improvement. Runs a background pi -p agent over the current session's trajectory that applies the smallest useful edit to the harness state (create/update one memory, prompt note, agent spec, or skill) and appends a record to .pi/harness/refine-log.jsonl. Non-blocking; the agent itself can call refine mid-task when it notices a repeated failure or reusable tactic.

/goal, /gate, goal_complete tool, --goal flag — bounded autonomous mode. /goal <text> sets a persistent objective; after every settled turn the harness re-prompts the agent to continue (capped at 12 turns). The agent ends the run by calling goal_complete; if /gate <cmd> is set, the gate command must exit 0 first — a failing gate returns its output to the agent for another attempt.

Install

pi install npm:pi-continual            # user-wide (recommended)
pi install -l npm:pi-continual         # project (shared via .pi/settings.json)
pi -e npm:pi-continual                 # try once without installing

# or from git:
pi install git:github.com/pi-pod/pi-continual

Requires python3 on PATH.

Self-improvement that travels through git

All harness state lives in the repository (.pi/harness/, .pi/skills/). Commit it and refinements become reviewable diffs that follow the repo — including into fresh pi-pod pods, where each session starts from a clean clone. Nothing here needs pod-side support.

Layout

extensions/continual.ts   # the extension: repl tool, prompt injection, /refine, goals
extensions/kernel.py      # persistent Python kernel: rlm(), harness, history()

Notes / limits (deliberately minimal)

  • The kernel restarts (state lost) on repl timeout or abort; sub-agent sessions survive on disk.
  • Goal state is session-scoped and not persisted across restarts.
  • Sub-agent messaging is parent→child only (rlm() follow-up turns); there is no cross-session daemon. Inside a pi-pod pod that boundary is intentional.