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

shiftwork

v0.2.0

Published

Shiftwork CLI: autonomous agents working in shifts - a fresh context per ticket, model handoff on budgets and provider limits (pi, Claude Code, Codex, OpenCode).

Downloads

1,258

Readme

shiftwork

CLI for Shiftwork · npm · guide. Autonomous agents work in shifts: a fresh context per ticket, with model handoff on budgets and provider limits.

Requirements: Node ≥ 22 and pi, installed with npm i -g @earendil-works/pi-coding-agent, with at least one provider logged in (/login in pi).

npx shiftwork init --model anthropic/<model-id>   # .pi/shiftwork.json, worker prompt, pi compaction settings
npx shiftwork status                              # tickets and the ready frontier
npx shiftwork tui                                 # live dashboard: queue, agents, cooldowns, logs — tabs 1–6, n run this, p pause, / search, r run, s stop, q quit
npx shiftwork run --dry-run                       # which model/tier/thinking each ticket would get, and whether it gets a review (before or after it lands)
npx shiftwork run --once                          # work one ticket
npx shiftwork run                                 # work the frontier until nothing is left

Local models through Ollama: npx shiftwork init --ollama discovers them (OLLAMA_HOST, default http://localhost:11434), adds an ollama provider to ~/.pi/agent/models.json and a local tier to .pi/shiftwork.json. Route ticket types to it with routing.<type>.tier: "local". Local models are never paid, and a stopped Ollama server makes the backend unavailable instead of cooling.

Tickets live in .scratch/<feature>/issues/NN-slug.md, in the mattpocock-skills format, and are resolved only by their **Verify:** commands. Every shift is a fresh pi --mode rpc --no-session process. Its report goes to the ticket's ## Comments, and its events go to logs/<feature>/<NN>/.

In a git repo, every ticket runs in its own worktree on branch shiftwork/<feature>-<NN>, outside the repo under ~/.cache/shiftwork/worktrees/. A resolved ticket is committed and merged into the branch you started from; a ticket that needs info keeps its branch. Dependencies aren't copied into worktrees: set worktree.setup, for example ["npm ci --ignore-scripts"]. Files the setup creates are never committed. Use --no-worktree to work in the main checkout.

Routing: the ticket's **Model:**, then routing[Type] → tier → first model of the tier's chain, then defaultTier. See .pi/shiftwork.json after init.

Review shifts, on by default: one review shift in a fresh context on the strongest configured tier (set review.tier to choose one) judges each ticket's change — on its unlanded branch, in its worktree, before anything lands (review.when: "after-land" reviews the landed commit after the landing instead). The reviewer reads the ticket, the spec and the diff, runs the verify gate, and ends with <shiftwork:review verdict="accept|reopen|follow-up" reason="…"/>. The verdict is recorded as ### Review in the ticket's Comments: accept lands the branch, reopen sends the ticket back to ready-for-agent (nothing lands; the next shift continues on the same branch with the findings in its prompt, up to review.maxRounds reopens, default 2), follow-up lands the branch and files a new ticket in the feature. Restrict reviews with features (feature names) and types (ticket types); run --dry-run prints review=<tier> (before land) or (after land) for tickets that will be reviewed and review=no for the rest.

Exit codes: 0 all resolved or nothing to do · 2 some tickets need info or a review reopened one · 3 stopped (STOP file or a signal) · 1 error.

Status: early development (0.x): the config and the ticket lines may still change between minor versions. Full guide: docs/guide.md.