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

@henryqw/pi-task-models

v0.3.0

Published

Shared task model profiles and routing for HenryQW Pi extensions.

Downloads

906

Readme

@henryqw/pi-task-models

Shared fast, balanced, and frontier model profiles for HenryQW Pi extensions.

Install

pi install npm:@henryqw/pi-task-models

With

| Package | Why | | --- | --- | | @henryqw/pi-auto-compact | Consumer. Compaction defaults to the fast profile. | | @henryqw/pi-auto-dag | Consumer. Implement uses balanced; review uses frontier. | | @henryqw/pi-herdr-rename | Consumer. Rename uses the fast profile. | | @henryqw/pi-subagent | Consumer. Delegation defaults to balanced; caller may override it. | | @henryqw/pi-multi-codex | Improves. Numbered Codex slots dedupe to one route. |

Use

| Surface | Type | Purpose | | --- | --- | --- | | /task-models | command | Edit a profile or assign a task to a profile. |

Selecting a profile sets primary model, primary thinking, optional fallback model, then fallback thinking. One completed flow writes the whole profile. Selecting a task changes its assignment.

Menus and resolution use the current session's ctx.scopedModels, including pinned thinking. Empty scope uses Pi's full available model registry. Numbered Codex account aliases are deduplicated. Fallback choices exclude the selected primary. Hidden task assignments stay stored when a package is disabled.

Package also exports config and route-resolution helpers for consumers.

Config

~/.pi/agent/config/pi-task-models.json

{
  "profiles": {
    "fast": {
      "primary": { "model": "openai-codex/gpt-fast", "thinkingLevel": "low" },
      "fallback": { "model": "other-provider/fast-model", "thinkingLevel": "low" }
    },
    "balanced": {
      "primary": { "model": "openai-codex/gpt-balanced", "thinkingLevel": "high" }
    },
    "frontier": {
      "primary": { "model": "openai-codex/gpt-frontier", "thinkingLevel": "max" }
    }
  },
  "tasks": {
    "pi-herdr-rename/rename": "fast",
    "pi-auto-compact/autoCompact": "fast",
    "pi-subagent/delegateTask": "balanced",
    "pi-auto-dag/implement": "balanced",
    "pi-auto-dag/review": "frontier"
  }
}

Each configured profile needs one primary model and thinking level. Fallback is optional. Model references use canonical provider/model; numbered openai-codex-N routes store as openai-codex/model.

Reads are strict. Malformed or unknown values fail visibly and never rewrite the file. Only explicit /task-models actions write config.

Consumers can call resolveConfiguredTaskRoute(ctx, taskId) to read strict shared config, choose usable primary or fallback route, and fail with /task-models guidance when assignment, profile, or route is unavailable.

Remove

pi remove npm:@henryqw/pi-task-models

Development

npm test --workspace @henryqw/pi-task-models
npm run typecheck --workspace @henryqw/pi-task-models
npm run pack:check --workspace @henryqw/pi-task-models