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

@context-forge/cli

v0.5.1

Published

CLI for Context Forge — terminal access to context assembly, project management, workflow navigation, and configuration

Downloads

1,033

Readme

@context-forge/cli

Terminal interface for Context Forge — context assembly, project management, workflow navigation, and configuration.

How It Works

cf works like git — install it globally and it automatically detects your project based on your current working directory. No configuration files to manage per-project; just cd into any registered project and run commands.

Installation

# Install globally
npm install -g @context-forge/cli

# Initialize a project (from the project root)
cd ~/repos/my-project
cf init

# Install the ai-project-guide templates (recommended)
cf guides install

# Install Claude Code slash commands (recommended)
cf install-commands

cf init registers the current directory as a Context Forge project. cf guides install bootstraps the ai-project-guide prompt templates that Context Forge's context engine is designed around. cf install-commands adds /cf:* slash commands to Claude Code.

Quick Start

# All commands are discoverable
cf --help
cf project --help
#etc. 

# Check project status
cf status

# Generate a context prompt and copy to clipboard
cf build | pbcopy

# Generate with phase override
cf build --phase task-breakdown

# Set project fields
cf set phase 6
cf set slice 175

# Confirm updates (if you like)
cf status

# Browse project artifacts
cf arch list        # Architecture initiatives
cf slice list       # Slices in the active plan
cf tasks list       # Task files with progress

# What should I do next?
cf next

# Detailed information
cf project get

# View available prompt templates
cf prompt list

# Get a specific prompt with project variables substituted
cf prompt get P5

Claude Code Slash Commands

When installed via cf install-commands, these slash commands are available directly in Claude Code sessions:

| Command | Description | |---------|-------------| | /cf:build | Build a context prompt (accepts --phase, --slice flags) | | /cf:status | Show project workflow status | | /cf:get | Show all project fields | | /cf:set | Set a project field (e.g., /cf:set phase 6) | | /cf:prompt | Get or list prompt templates (e.g., /cf:prompt P5 or /cf:prompt list) | | /cf:project | Manage projects (e.g., /cf:project list, /cf:project --schema) | | /cf:next | Show recommended next action |

Each command runs cf under the hood — same CWD-based project resolution, same output.

Commands Reference

| Command | Usage | Description | |---------|-------|-------------| | cf init | cf init | Register the current directory as a Context Forge project | | cf status | cf status [--project <id>] [--json] | Show workflow status for the active project | | cf next | cf next [--project <id>] [--json] | Show recommended next action | | cf build | cf build [--project <id>] [--phase] [--slice] [--instruction] [--tasks] [--additional] | Generate context prompt to stdout | | cf set | cf set <field> <value> | Set a project field (shortcut for cf project set) | | cf get | cf get [--json] | Show all project fields (shortcut for cf project get) | | cf arch | cf arch list [--json] | List architecture initiatives with progress | | cf plan | cf plan list [--json] | List slice plan files with progress | | cf slice | cf slice list [--json] | List slices from the active plan with status | | cf tasks | cf tasks list [--json] | List task files from the plan with progress | | cf tasks items | cf tasks items [--json] | Show individual tasks from the active task file | | cf worktree | cf worktree init\|list\|get\|update\|rm | Manage git worktree contexts for parallel initiatives | | cf config | cf config list\|get\|set | Manage configuration | | cf project | cf project list\|get\|set\|rm | Manage projects | | cf future | cf future [--project <id>] [--status <filter>] [--json] | Show consolidated future work | | cf check | cf check [--fix] [--slice <n>] [--yes] [--json] | Run consistency checks across all worktrees | | cf backup | cf backup | Create versioned backup of project data (keeps last 10) | | cf prompt | cf prompt list\|get <phase> | Access prompt templates with variable substitution | | cf guides | cf guides install\|status\|update | Manage ai-project-guide templates |

Common Options

  • --project <name|id> — Override the active project by name or ID
  • --json — Output as JSON (not applicable to build and prompt get)

Project Resolution

cf resolves which project to operate on using a priority chain:

  1. --project flag — highest priority. Accepts project name or ID.
  2. CWD detection — if the current directory is inside a registered project's path, or inside a registered worktree path, that project (and worktree) is resolved automatically.
  3. Git worktree detection — if CWD is an unregistered git worktree of a known project, the project is resolved automatically (useful before running cf worktree init).
  4. default_project config — if set via cf config set default_project <name>, used as a fallback.

This means you can manage multiple projects just by cd-ing between them — no switching commands needed.

Phase Shorthands

cf prompt get and cf build --phase accept phase shorthands:

| Shorthand | Phase | |-----------|-------| | P1 | Concept | | P2 | Architecture | | P3 | Slice Planning | | P4 | Slice Design | | P5 | Task Breakdown | | P6 | Implementation | | P7 | Integration |

Shorthands are derived at runtime from the project's prompt asset file.

Phase / Instruction Auto-Set

Setting the development phase automatically updates instruction to match:

cf set phase 6
# Updated phase = Phase 6: Implementation on project my-project
# Updated instruction = Phase 6: Implementation (auto-set from phase)

Setting instruction directly does not change developmentPhase.

Smart Index Resolution

Setting artifact fields by numeric index resolves to the matching file on disk:

cf set slice 175
# Updated slice = 175-slice.context-output-consolidation on project my-project
# Updated tasks = 175-tasks.context-output-consolidation (auto-set from slice)

When no file exists yet, the CLI derives the stem from the slice plan entry:

cf set slice 166
# (no 166-slice.*.md on disk — derives from plan entry "Consistency Checker")
# Updated slice = 166-slice.consistency-checker on project my-project
# Updated tasks = 166-tasks.consistency-checker (auto-set from slice)

Setting fileSlice always auto-sets fileTasks to match.

Discovery Commands

Browse project artifacts at every level:

cf arch list       # Architecture initiatives with slice counts
cf plan list       # Slice plan files with completion progress
cf slice list      # Slices from the active plan with status markers
cf tasks list      # Task files from the plan with completion counts
cf tasks items     # Individual task items from the active task file

All accept --json and --project <name|id>.

Architecture

The CLI wraps @context-forge/core directly (no MCP layer), following the same pattern as the Electron package. All core services are imported from @context-forge/core/node.

Development (monorepo)

pnpm --filter @context-forge/cli build     # Compile TypeScript
pnpm --filter @context-forge/cli dev       # Watch mode
pnpm --filter @context-forge/cli test      # Run tests
pnpm --filter @context-forge/cli typecheck # Type check

Changelog

v0.5.0

  • Worktree supportcf worktree init|list|get|update|rm for parallel multi-initiative development; cf status --worktree and --worktrees for cross-directory access
  • Worktree-aware project resolution — auto-detects project from git worktree path even before cf worktree init
  • Worktree-scoped field routingcf set phase/slice/tasks/arch/plan updates the active WorktreeContext when resolved from a worktree
  • cf check across all worktrees — consistency checks see worktree-scoped fields (phase, slice, arch, etc.) correctly
  • cf check --slice <n> — narrow checks to a specific slice; --yes skips confirmation in fix mode
  • cf tasks command — renamed from cf task for consistency (cf tasks list, cf tasks items)
  • cf backup — versioned project data backup with auto-pruning (keeps last 10)
  • cf setup-ide claude — configures Claude Code integration with CLAUDE.md backup safety

v0.4.0

  • Discovery commandscf arch list, cf plan list, cf slice list, cf tasks list, cf tasks items for browsing project artifacts at every level
  • Smart index resolutioncf set slice 166 derives the filename from the slice plan when no file exists on disk
  • Auto-set fileTasks — setting fileSlice always auto-sets fileTasks, even when the task file doesn't exist yet
  • Enhanced cf status — now shows Date, Arch, and Plan fields
  • Workflow navigationcf status and cf next powered by WorkflowNavigator with slice status derivation and priority-ordered next-action recommendations

v0.3.0

  • Template variable completion — artifact fields (fileArch, fileSlicePlan, fileHLD, fileSpec) and aliases (arch, plan, hld, spec) available in prompt templates, with index extraction (archIndex, planIndex)
  • Consolidated project contextcf build output uses clean key-value ### Project Context block instead of bracket-wrapped format; template field removed; schema field names used throughout
  • Unified opening statement — always "Working on {name}..." regardless of workType
  • Phase auto-sets instructioncf set phase N also updates instruction to match
  • Top-level shortcutscf set and cf get work as shortcuts for cf project set/get

v0.2.0

  • CWD-based project detectioncf auto-detects the project from your current directory
  • Name-based resolution — use --project orchestration with project names instead of IDs
  • Resolution indicatorscf status shows how the project was resolved (from CWD, --project flag)
  • Compact cf project list — Name/Path/Slice columns with * active indicator and ~ path shortening
  • Tighter output formatting — consistent label alignment, suppressed empty fields, standardized error messages

v0.1.0

  • Initial release with 8 commands: status, next, build, config, project, future, check, prompt
  • Integration with @context-forge/core for context assembly
  • Phase shorthands for prompt templates
  • JSON output mode on all applicable commands