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

openspec-worktree-flow

v0.1.5

Published

Codex-focused CLI for bootstrapping and running OpenSpec worktree handoff workflows.

Downloads

308

Readme

openspec-worktree-flow

English | 简体中文

openspec-worktree-flow provides the owf CLI, a Codex-focused workflow for handing approved OpenSpec changes off into isolated worktrees.

It is designed for teams that already use OpenSpec for proposal/spec work, but want a separate, predictable way to bootstrap repository guidance and move implementation into sibling worktrees.

User flow

Users only need to remember one command:

owf init

After that:

  1. keep using the repository's normal OpenSpec proposal flow
  2. approve the change
  3. ask Codex to implement
  4. Codex sees the AGENTS.md handoff rule and asks whether to create the implementation worktree

Install

Global install:

npm install -g openspec-worktree-flow

One-off use:

npx openspec-worktree-flow init

Codex skill install for maintainers is still supported through:

bash scripts/install_to_codex_home.sh --force

Commands

  • owf init [repo-path]: bootstrap the repository by updating AGENTS.md and creating .owf/migration_rules.sh
  • owf status <change-id>: inspect proposal / branch / worktree state
  • owf start <change-id>: create the implementation branch and sibling worktree
  • owf cleanup <change-id>: remove the worktree and optionally the branch
  • owf list: list worktrees for the current repository

Advanced:

  • owf sync-agents [repo-path]: refresh only the managed AGENTS.md block
  • owf change-init <change-id> ...: scaffold OpenSpec change files with the legacy engine

Repository bootstrap

Run once per repository:

owf init

This does two things:

  • injects or refreshes a managed AGENTS.md block that tells Codex to resolve worktree handoff before implementation starts in the main checkout
  • creates .owf/migration_rules.sh, the repo-local migration rules file that controls what gets copied or symlinked into new worktrees

Default migration rules:

  • copy openspec/
  • symlink node_modules/

Teams can edit .owf/migration_rules.sh per repository without modifying the global package.

Implementation handoff

Once a proposal is approved and the user asks to implement, Codex should ask whether to create the worktree now.

Do not ask this during merge, rebase, cherry-pick, cleanup, archive, or other close-out tasks for the same change.

After confirmation:

owf start add-rrweb-recording

Default results:

  • branch: codex/add-rrweb-recording
  • worktree: ../<repo>-add-rrweb-recording

Cleanup

After merge:

owf cleanup add-rrweb-recording --remove-branch

Trigger boundaries

Ask about worktree creation only when the request is moving from proposal to coding, for example:

  • implement this change
  • start coding
  • continue implementation
  • begin development for this approved proposal

Do not ask about creating a new worktree when the request is instead about:

  • merging the implementation branch
  • rebasing or cherry-picking
  • cleaning up the branch or worktree
  • archiving or closing out the change

Release

To avoid publishing code without a matching git tag, use the bundled release script:

bash scripts/release.sh 0.1.4

Or through npm:

npm run release:owf -- 0.1.4

This script updates package.json, validates the package, creates a release commit, creates tag v0.1.4, pushes main and the tag, then publishes to npm.

Repository structure

.
├── bin/
│   └── owf.js
├── package.json
├── SKILL.md
├── agents/
│   └── openai.yaml
├── references/
│   └── workflow.md
├── templates/
│   └── agents_worktree_handoff.md
└── scripts/
    ├── install_to_codex_home.sh
    ├── migration_rules.sh
    └── openspec_worktree.sh

License

MIT. See LICENSE.