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

@carter-mcalister/pi-rlm

v0.1.1

Published

RLM-first named workflow extension for Pi Coding Agent

Readme

@carter-mcalister/pi-rlm

RLM-first extension for Pi Coding Agent.

This package now exposes two distinct surfaces:

  • rlm / /rlm — a true recursive language model surface with planner, worker, and synthesizer nodes
  • rlm_task / /rlm-task — named reusable RLM workflows backed by Ax agents

What it is for

Use rlm for open-ended tasks that may benefit from recursive decomposition:

  • repo architecture analysis
  • risk reviews
  • broad planning tasks
  • multi-part investigations
  • synthesis across several subproblems

Use rlm_task for repeatable rubric-driven workflows:

  • incident reviews
  • RFC / design review checks
  • long-document analysis
  • manager-ready summaries with evidence

Install

pi install npm:@carter-mcalister/pi-rlm

For local development in this monorepo:

pi install /absolute/path/to/pi-packages/packages/pi-rlm

Recursive Tool

The rlm tool and /rlm command support:

  • op: "start" — start a recursive run
  • op: "status" — inspect a run or recent runs
  • op: "wait" — wait for a run to finish
  • op: "cancel" — cancel a running job

Example:

rlm({
  task: "Analyze the reliability risks in this repo",
  mode: "auto",
  maxDepth: 2,
  maxNodes: 12,
  maxBranching: 3
})

Async example:

rlm({ task: "Review this architecture", async: true })
rlm({ op: "status" })
rlm({ op: "wait", id: "<run-id>" })

Command example:

/rlm "Analyze the reliability risks in this repo" --maxDepth 2
/rlm "Summarize this repo" --async
/rlm-list

Seeing What RLM Is Doing

Use /rlm-list to browse running and completed runs.

  • It opens a native Pi selection list.
  • Selecting a running run shows current status and recent activity.
  • Selecting a completed run shows the final result and artifacts.

Both sync run output and completed run summaries include a Recent Activity section so you can see the planner and child-node progress without opening the artifact files.

Artifacts are written under:

/tmp/pi-rlm-runs/<runId>/

Named Workflow Surface

Slash commands

/rlm-task list
/rlm-task show incident-review
/rlm-task run incident-review --file docs/incidents/checkout.md --audience "engineering managers"
/rlm-task doctor

Tool calls

rlm_task({ task: "incident-review", inputs: { file: "docs/incidents/checkout.md", audience: "engineering managers" } })

Built-in workflows

  • incident-review
  • rfc-quality-check

Project-local workflows

Add local workflow definitions under:

.pi/rlm/tasks/*.ts

Design approach

This package is RLM-first:

  • public surfaces talk about RLM workflows and recursive runs
  • bundled workflows center agent(...) and RLM runtime behavior
  • Ax is the implementation layer, not the package identity

The bundled workflows follow current Ax guidance:

  • use agent(...) rather than manual new AxAgent(...)
  • default to contextPolicy: { preset: 'checkpointed', budget: 'balanced' }
  • use AxJSRuntime() deliberately for long-context, stateful analysis
  • keep mode: 'simple' unless recursive delegated sub-agents are actually needed

Development

mise install
bun install
bun run --filter @carter-mcalister/pi-rlm check