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

workflow-pilot

v0.2.0

Published

Workflow state manager for AI coding sessions via MCP + CLI

Readme

workflow-pilot

npm version

Workflow state manager for AI coding sessions.

Shows your current workflow stage in your zsh prompt and injects stage-appropriate context into Claude Code / opencode via MCP.

Install

npm install -g workflow-pilot

Or install from source:

git clone https://github.com/timknight/workflow-pilot.git
cd workflow-pilot
npm install
npm run build
npm install -g .

Setup

1. Install flows

mkdir -p ~/.workflow-pilot/flows

# Copy the bundled flows
cp flows/boris-feature.yaml ~/.workflow-pilot/flows/
cp flows/bugfix.yaml ~/.workflow-pilot/flows/

2. Add zsh prompt segment

Add to your ~/.zshrc:

workflow_pilot_prompt() {
  local info
  info=$(wp prompt 2>/dev/null)
  [[ -n "$info" ]] && echo "%F{cyan}⚙ ${info}%f "
}

# Add to your prompt — pick one:
RPROMPT='$(workflow_pilot_prompt)'           # right prompt
# Or add to PROMPT if you prefer left side

3. Add Claude Code status line (optional)

The status line shows your current workflow stage persistently at the bottom of Claude Code — even while the LLM is responding.

Add to your ~/.claude/settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "wp statusline"
  }
}

This displays: boris-feature | 🚀 Implement □ 1/3

Alternatively, copy the thin wrapper script if you prefer a file reference:

cp statusline/workflow-statusline.sh ~/.claude/workflow-statusline.sh
chmod +x ~/.claude/workflow-statusline.sh

Then use "command": "~/.claude/workflow-statusline.sh" in your settings.

Restart Claude Code to activate the status line.

4. Configure MCP for Claude Code

Add to your Claude Code MCP config (~/.claude/mcp.json or claude_desktop_config.json):

{
  "mcpServers": {
    "workflow-pilot": {
      "command": "workflow-pilot-mcp",
      "args": []
    }
  }
}

For opencode, add to your project's .mcp.json:

{
  "mcpServers": {
    "workflow-pilot": {
      "command": "workflow-pilot-mcp",
      "args": [],
      "type": "stdio"
    }
  }
}

5. Add CLAUDE.md to your project

Copy CLAUDE.md into your project root (or append to existing):

cat CLAUDE.md >> /path/to/your/project/CLAUDE.md

Usage

wp flows                    # list available workflows
wp start boris-feature      # start a workflow
wp status                   # show current stage
wp advance                  # move to next stage
wp back                     # go to previous stage
wp loop                     # repeat current stage
wp check 1                  # toggle checklist item 1
wp end                      # end session

Aliases: a=advance, b=back, l=loop, c=check, s=status

Creating custom flows

Drop a YAML file in ~/.workflow-pilot/flows/:

id: my-flow
name: My Custom Flow
description: Step A → Step B → Done

stages:
  - id: step-a
    name: Step A
    icon: "🔍"
    instructions: |
      Do step A things.
      Do NOT do step B yet.
    keywords:
      - step a phrase
    transitions:
      next: step-b
    checklist:
      - Step A complete
    can_loop: false

  - id: step-b
    name: Step B
    icon: "🚀"
    instructions: |
      Do step B things.
    transitions:
      next: done
      back: step-a
    checklist:
      - Step B complete
    can_loop: true

  - id: done
    name: Done
    icon: "✅"
    instructions: ""
    transitions: {}
    checklist: []
    can_loop: false

How it works

┌──────────────────────────────────────┐
│  MCP Server (stdio)                  │
│  workflow_status, advance, back...   │
│  LLM calls these to get stage rules  │
└──────────┬───────────────────────────┘
           │ reads/writes
           ▼
    ~/.workflow-pilot/sessions/<hash>.json
           ▲
           │ reads/writes
┌──────────────────────────────────────┐
│  wp (CLI)                            │
│  Manual control from terminal        │
└──────────────────────────────────────┘

    Session files are also read by:

    Zsh RPROMPT segment          Claude Code status line
    ⚙ annotate #2 □ 1/3         boris-feature | 🚀 Implement □ 1/3

Each project gets its own session file under ~/.workflow-pilot/sessions/, keyed by a SHA-256 hash of the project directory. Multiple workflows can run concurrently in different projects.

Files

~/.workflow-pilot/
├── sessions/
│   ├── <hash>.json     per-project session state
│   └── ...
└── flows/
    ├── boris-feature.yaml
    ├── bugfix.yaml
    └── your-custom-flow.yaml

~/.claude/
└── settings.json       statusLine config (runs `wp statusline`)

Inspiration

This project was inspired by Boris Tane's excellent article How I Use Claude Code, which describes a structured approach to AI-assisted coding with explicit research, planning, and implementation phases. Workflow Pilot generalises that approach into a reusable tool with custom YAML-defined flows.