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

@lumenflow/cli

v4.0.0

Published

Command-line interface for LumenFlow workflow framework

Downloads

5,256

Readme

@lumenflow/cli

npm version npm downloads license node

Command-line interface for LumenFlow workflow framework

Installation

npm install @lumenflow/cli

Quick Start

# Install the CLI
pnpm add -D @lumenflow/cli   # or: npm install -D @lumenflow/cli

# Initialize LumenFlow (works with any AI)
pnpm exec lumenflow

# Or specify your AI tool for enhanced integration
pnpm exec lumenflow --client claude    # Claude Code
pnpm exec lumenflow --client cursor    # Cursor
pnpm exec lumenflow --client windsurf  # Windsurf
pnpm exec lumenflow --client cline     # Cline
pnpm exec lumenflow --client aider     # Aider
pnpm exec lumenflow --client all       # All integrations

The default lumenflow command creates AGENTS.md and LUMENFLOW.md which work with any AI coding assistant. The --client flag adds vendor-specific configuration files for deeper integration.

See AI Integrations for details on each tool.

Overview

This package provides CLI commands for the LumenFlow workflow framework, including:

  • WU (Work Unit) management: Claim, complete, block, and track work units
  • Memory layer: Session tracking, context recovery, and agent coordination
  • Initiative orchestration: Multi-phase project coordination
  • Quality gates: Pre-merge validation and checks

Commands

Work Unit Management

| Command | Description | | ------------------ | ------------------------------------------------------------------ | | approval-list | List control-plane approvals with optional filters | | approval-request | Request control-plane approval for a workflow action | | approval-review | Resolve a control-plane approval decision | | wu-block | Block WU with reason | | wu-brief | Generate handoff prompt for sub-agent WU execution | | wu-claim | Claim WU and create worktree | | wu-cleanup | Cleanup after PR merge | | wu-create | Create new WU spec | | wu-delegate | Generate delegation prompt and record explicit lineage intent | | wu-delete | Delete WU spec and cleanup | | wu-deps | Show WU dependencies | | wu-done | Complete WU (merge, stamp, cleanup) from main | | wu-edit | Edit WU spec fields | | wu-escalate | Show or resolve WU escalation status | | wu-infer-lane | Infer lane from code paths/description using workspace definitions | | wu-preflight | Pre-flight checks before wu:done | | wu-prep | Run gates in worktree, prep for wu:done | | wu-proto | Create WU prototype | | wu-prune | Clean stale worktrees | | wu-recover | Analyze and fix WU state inconsistencies | | wu-release | Release orphaned WU (in_progress to ready) | | wu-repair | Repair WU state issues | | wu-sandbox | Run command through hardened WU sandbox backend | | wu-status | Show WU status, location, valid commands | | wu-unblock | Unblock WU | | wu-unlock-lane | Unlock stuck lane | | wu-validate | Validate WU spec | | wu-verify | Verify WU completion (stamp, commit, clean tree) |

Memory & Session

| Command | Description | | ---------------- | ------------------------------------------ | | mem-checkpoint | Save progress checkpoint | | mem-cleanup | Clean up stale memory data | | mem-context | Get context for current lane/WU | | mem-create | Create memory node (bug discovery) | | mem-delete | Delete/archive a memory node | | mem-export | Export memory as markdown | | mem-inbox | Check coordination signals | | mem-init | Initialize memory for WU | | mem-ready | Check pending memory nodes | | mem-recover | Generate recovery context after compaction | | mem-signal | Broadcast coordination signal | | mem-start | Start a memory session | | mem-summarize | Summarize memory context | | mem-triage | Triage discovered bugs | | signal-cleanup | Clean up stale signals |

Initiative Orchestration

| Command | Description | | ---------------------------- | ------------------------------------------- | | agent-issues-query | Query GitHub issues for agent work | | agent-log-issue | Log issue during agent session | | agent-session | Start agent session | | agent-session-end | End agent session | | delegation-list | List active delegation records | | initiative-add-wu | Add WU to initiative | | initiative-bulk-assign-wus | Bulk assign WUs to initiative | | initiative-create | Create new initiative | | initiative-edit | Edit initiative fields and phase metadata | | initiative-list | List all initiatives | | initiative-plan | Link plan to initiative | | initiative-remove-wu | Remove WU from initiative | | initiative-status | Show initiative status | | orchestrate-init-status | Compact initiative progress view | | orchestrate-initiative | Orchestrate initiative execution | | orchestrate-monitor | Monitor spawn/agent activity | | task-claim | Claim a task directly through KernelRuntime |

Metrics & Analytics

| Command | Description | | ------------------- | ------------------------------ | | cost-summary | Summarize local cost telemetry | | flow-bottlenecks | Identify flow bottlenecks | | flow-report | Generate flow metrics report | | lumenflow-metrics | View workflow metrics (alias) | | metrics | View workflow metrics | | metrics-snapshot | Capture metrics snapshot |

Lane Tooling

| Command | Description | | --------------- | -------------------------------------------------------------- | | lane-create | Create a new lane definition | | lane-edit | Edit a lane definition (rename, wip-limit, paths, description) | | lane-health | Check lane config health | | lane-lock | Lock lane lifecycle for delivery WUs | | lane-setup | Create/update draft lane artifacts | | lane-status | Show lane lifecycle status and next step | | lane-suggest | Suggest workspace lane definitions from project context | | lane-validate | Validate lane artifacts before lock |

Verification & Gates

| Command | Description | | ---------------------------- | ----------------------------------------------------- | | gate-co-change | Manage co-change gate rules (add, remove, edit, list) | | gates | Run all quality gates | | lumenflow-gates | Run all quality gates (alias) | | lumenflow-pre-commit-check | Run enforcement checks used by pre-commit and CI | | lumenflow-validate | Run validation checks (alias) | | validate | Run validation checks |

System & Setup

| Command | Description | | -------------------------- | ----------------------------------------------------------------------- | | backlog-prune | Clean stale backlog entries | | cloud-connect | Connect workspace.yaml to cloud control plane | | config-get | Read and display a value from workspace.yaml software_delivery | | config-set | Safely update workspace.yaml software_delivery via micro-worktree | | init-plan | Link plan to initiative (alias) | | lumenflow | Initialize LumenFlow in a project | | lumenflow-commands | List all available CLI commands | | lumenflow-docs-sync | Refresh core docs, onboarding docs, and supported vendor assets (alias) | | lumenflow-doctor | Diagnose LumenFlow configuration | | lumenflow-init | Initialize LumenFlow in a project (alias) | | lumenflow-integrate | Generate enforcement hooks for client | | lumenflow-onboard | Legacy entrypoint; use "npx lumenflow" for bootstrap-all onboarding | | lumenflow-release | Run release workflow | | lumenflow-sync-templates | Sync templates to project | | lumenflow-upgrade | Upgrade LumenFlow packages | | onboard | Legacy entrypoint; use "npx lumenflow" for bootstrap-all onboarding | | pack-author | Author a secure domain pack from templates | | pack-hash | Compute integrity hash for a domain pack | | pack-install | Install a domain pack into workspace | | pack-publish | Publish a domain pack to a registry | | pack-scaffold | Scaffold a new domain pack | | pack-search | Search for domain packs in a registry | | pack-validate | Validate a domain pack for integrity | | plan-create | Create a new plan | | plan-edit | Edit plan content | | plan-link | Link plan to WU or initiative | | plan-promote | Promote plan to WU | | state-bootstrap | Bootstrap state store | | state-cleanup | Clean up stale state data | | state-doctor | Diagnose state store issues | | state-emit | Emit corrective event to state store (WU-2241) | | sync-templates | Sync templates to project (alias) | | templates-sync | Sync templates to project (alias) | | workspace-init | Legacy entrypoint; use "npx lumenflow" for bootstrap-all onboarding |

File & Git Operations

| Command | Description | | ------------- | -------------------------------- | | file-delete | Delete file with audit trail | | file-edit | Edit file with audit trail | | file-read | Read file with audit trail | | file-write | Write file with audit trail | | git-branch | Show git branch with audit trail | | git-diff | Show git diff with audit trail | | git-log | Show git log with audit trail | | git-status | Show git status with audit trail |

Usage

Commands are typically invoked via pnpm scripts in your project:

# WU workflow
pnpm wu:claim --id WU-123 --lane operations
pnpm wu:done --id WU-123

# Memory operations
pnpm mem:checkpoint "Completed port definitions" --wu WU-123
pnpm mem:inbox --since 10m

# Initiative management
pnpm initiative:status INIT-007

# Quality gates
pnpm gates

Direct CLI Usage

# After installing the package
npx wu-claim --id WU-123 --lane operations
npx gates

Global Flags

All commands support these flags:

| Flag | Description | | ----------------- | ------------------------- | | --help, -h | Show help for the command | | --version, -V | Show version number | | --no-color | Disable colored output |

Environment Variables

| Variable | Description | | ------------- | -------------------------------------------------------------------------------------- | | NO_COLOR | Disable colored output when set (any value, per no-color.org) | | FORCE_COLOR | Override color level: 0 (disabled), 1 (basic), 2 (256 colors), 3 (16m colors) |

Integration

The CLI integrates with other LumenFlow packages:

  • @lumenflow/core - Git operations, worktree management
  • @lumenflow/memory - Session and context persistence
  • @lumenflow/agent - Agent session management
  • @lumenflow/initiatives - Initiative tracking

MCP Server Setup (Claude Code)

LumenFlow provides an MCP (Model Context Protocol) server for deep integration with Claude Code.

When you run lumenflow init --client claude, a .mcp.json is automatically created:

{
  "mcpServers": {
    "lumenflow": {
      "command": "npx",
      "args": ["@lumenflow/mcp"]
    }
  }
}

The @lumenflow/mcp server provides tools for WU lifecycle, memory coordination, and lane management directly within Claude Code.

See AI Integrations for full MCP documentation.

Documentation

For complete documentation, see lumenflow.dev.

Upgrading

To upgrade LumenFlow packages:

# Check for available updates
pnpm outdated @lumenflow/*

# Update all LumenFlow packages atomically
pnpm lumenflow:upgrade --latest

Note: lumenflow:upgrade syncs docs automatically as part of the upgrade transaction. A separate docs:sync step is no longer needed.

For current setup guidance and troubleshooting, see LUMENFLOW.md.

License

Apache-2.0