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

codex-swarm

v0.1.1

Published

Pipeline launcher for Codex CLI with staged agent networks

Readme

codex-swarm

Pipeline launcher for Codex CLI. Provides staged, wired agent execution driven by a YAML/TOML pipeline file. Supports temp dirs, git worktree clones, built-in + user agent types, dry-run, parallel node execution within a stage, and command nodes. Not affiliated with OpenAI.

Install

npm install -g codex-swarm

Run (local checkout)

npm install
npm run build
codex-swarm parallel-development --dry-run -i "Build me a plan"

Pipeline file

  • Recommended format: YAML (TOML also supported).
  • Top-level keys: version, name, description, directories, agent_types, stages.

Directories

directories:
  main:
    alias: main
    kind: path
    path: .
  scratch:
    alias: scratch
    kind: temp
    base: /tmp/codex-swarm
  worktree:
    alias: worktree
    kind: worktree
    source: .
    ref: HEAD

Kinds: temp (mktemp under base), path (existing path), worktree (git worktree clone; CoW). Use keep: true to skip cleanup.

Agent types

  • Resolved from layers: built-in src/builtin/agent-types.yaml~/.codex-swarm/agent-types.{yaml,toml} → inline agent_types in the pipeline file.
  • Fields: alias, prePrompt, access (read-only|read-write), optional command/args/env defaults. Root/directories are set on each agent instance.

Stages and agents

stages:
  - alias: planning
    agents:
      - alias: planner-1
        type: planner
        input: stdin
        root: main
        directories: [main]
  - alias: implementation
    agents:
      - alias: implementor-1
        type: implementor
        input: planner-1
        root: worktree
        directories: [worktree, scratch]
      - alias: reviewer-1
        type: reviewer
        input: implementor-1
        depends_on: [implementor-1]
        root: worktree
        directories: [worktree]
  • Nodes in a stage run in parallel when ready (dependencies satisfied).
  • input: stdin (pipeline input) or another node alias; wiring resolves when dependencies are satisfied.
  • depends_on: optional list of aliases that must complete before the node can run; does not provide input.
  • root: directory alias to launch from; use root to run from pipeline cwd. Alias root is reserved and cannot be defined in directories. directories: aliases surfaced via template placeholder {{directories}} and env CODEX_DIRECTORIES.
  • Placeholders available in prePrompt/args: {{stdin}}, {{input}}, {{directories}}, {{agent}}, {{stage}}.
  • Environment: CODEX_DIRECTORIES (human list) and CODEX_DIRECTORY_MAP (JSON map of alias → path).

Command nodes

  - alias: merge
    agents:
      - alias: merge-winner
        kind: command
        input: reviewer
        depends_on: [reviewer]
        root: root
        directories: [repo, work1, work2, work3]
        command: node
        args: [scripts/merge-best.mjs]
  • kind: command runs command/args directly (no Codex agent type).

CLI

codex-swarm <pipeline-name> [options]
  -i, --input <text>      Inline pipeline input (else stdin)
  --input-file <path>     Read input from file
  --codex-bin <path>      Codex CLI binary (default: codex)
  --dry-run               Print actions without spawning agents
  --verbose               Extra logs
  --list-pipelines        List available pipelines and exit

Pipeline names must be provided without paths. Pipeline resolution order: ./.codex-swarm/pipelines~/.codex-swarm/pipelines → packaged pipelines/.

Pipelines

  • pipelines/parallel-development/pipeline.yaml (parallel-development): three parallel implementors, reviewer, and merge-winner pipeline.

Notes / future

  • MCP exposure not wired yet; CLI foundation in place.
  • Non-git CoW clones omitted; worktree requires git present.