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

agent-pipeline

v0.1.3

Published

Intelligent multi-runtime agent orchestration with DAG-planned parallelism, conditional logic, automated git hygiene, and multi-channel notifications. Supports Claude Code, Codex, Gemini, and Pi Agent (15+ providers with built-in tools).

Downloads

141

Readme

Agent Pipeline

Intelligent multi-runtime agent orchestration with DAG-planned parallelism, conditional logic, automated git hygiene, and multi-channel notifications. Supports Claude Code, Codex, Gemini, and Pi Agent (15+ providers with built-in tools).

Key Use Cases

  • Offload common agentic tasks that consume time and context from the main agent loop.
  • Quickly explore new and divergent design concepts.

Agent Pipeline Ergonomics

  • Everything is a file in the filesystem
  • Agents are just .md files located in the .agent-pipeline/agents/ directory.
  • Agents use the handover.md file for handoff to the next agent via .agent-pipeline/instructions/handover.md.
  • When looping is enabled, a dedicated loop agent runs after all stages to decide whether to queue the next iteration using .agent-pipeline/instructions/loop.md.
name: my-pipeline 
trigger: manual

agents:
  - name: first-agent
    agent: .agent-pipeline/agents/first-agent.md

  - name: second-agent
    agent: .agent-pipeline/agents/second-agent.md
    dependsOn: 
      - first-agent

Capable models (Claude Opus/Sonnet, GPT-5.2, DeepSeek V3.2, etc.) can understand directions very well: you can tell any agent (in their respective .md file) to "pass X data to next agent" or "create new pipeline for next plan phase if plan status is not complete" and the agent and pipeline will perform as you expect.

Note: Looping must be enabled in the pipeline YAML for loops to run.

Quick Start

npm install -g agent-pipeline

Then cd into an empty or existing project directory and run:

agent-pipeline init

Finally, run a pipeline:

# For new/empty projects
agent-pipeline run front-end-parallel-example

# For existing projects with code changes
agent-pipeline run post-commit-example

Prerequisites

  • Node.js (v18 or higher)
  • Git (configured with user name and email)
  • At least one agent runtime:
    • Claude Code (claude CLI) – default runtime with full tool suite
    • Codex (codex CLI) – OpenAI's Codex with filesystem tools
    • Gemini (gemini CLI) – Google's Gemini with tool use and sandbox modes
    • Pi Agent (pi CLI) – multi-provider coding agent with built-in tools (Anthropic, OpenAI, Google, Mistral, Groq, xAI, OpenRouter, etc.)
  • GitHub CLI (gh) – optional unless you enable automated PR creation
    • Install: brew install gh (macOS) or see docs
    • Authenticate: gh auth login

Installation

npm (Recommended)

npm install -g agent-pipeline

From Source

git clone https://github.com/FRE-Studios/agent-pipeline.git
cd agent-pipeline
npm install
npm run build
npm link

Usage Guide

1. Initialize New Project

agent-pipeline init

This scaffolds three example pipelines (front-end-parallel-example, post-commit-example, and loop-example), required agent definitions, and the directory structure (.agent-pipeline/, .agent-pipeline/agents/). Agents from installed Claude Code plugins are automatically discovered, with support for additional runtime agent discovery coming soon.

2. Run Your First Pipeline

# Run the parallel design exploration (works on any project)
agent-pipeline run front-end-parallel-example

# For existing projects, try the post-commit workflow
agent-pipeline run post-commit-example

# Try the looping Socratic exploration (demonstrates iterative agents)
agent-pipeline run loop-example

What you'll see: live terminal UI with status badges, real-time agent output streaming, atomic commits per stage, and a pipeline summary with timing and results. Pipelines with git configured execute in isolated git worktrees by default, so your working directory stays untouched.

3. Explore Your Pipeline History

# Browse past runs interactively
agent-pipeline history

# View performance metrics and analytics
agent-pipeline analytics
agent-pipeline analytics --pipeline <name> --days 30

4. Try Advanced Features

# Install git hooks for automated post-commit reviews
agent-pipeline hooks install post-commit-example
# Requires git.branchStrategy configured in the pipeline

# Clone and customize a pipeline
agent-pipeline clone front-end-parallel-example my-custom-pipeline

Manual Setup (Alternative)

1. Create a Pipeline Configuration

# .agent-pipeline/pipelines/my-pipeline.yml
name: my-pipeline
trigger: manual

git:
  autoCommit: true
  commitPrefix: "[pipeline:{{stage}}]"

agents:
  - name: code-review
    agent: .agent-pipeline/agents/code-reviewer.md

  - name: security-review
    agent: .agent-pipeline/agents/security-reviewer.md

  - name: memory-updater
    agent: .agent-pipeline/agents/memory-updater.md
    dependsOn: 
      - code-review
      - security-review

2. Create Agent Definitions

<!-- .agent-pipeline/agents/code-reviewer.md -->
# Code Review Agent

You are a code review agent in an automated pipeline.

## Your Task
Review the code changes and provide feedback...

3. Run the Pipeline

agent-pipeline run my-pipeline

Documentation

  • docs/configuration.md – Pipeline settings, git workflow, notifications, and context reduction details.
  • docs/examples.md – Ready-to-run sample pipelines shipped with the CLI.
  • docs/cli.md – Command reference for pipeline, agent, and git integration workflows.

Features

  • Pipeline orchestrationPipelineRunner combines DAG planning, conditional gating, and per-stage retries backed by RetryHandler.
  • Git workflow automation – Worktrees isolate runs by default, while BranchManager and PRCreator manage dedicated branches and PRs.
  • State & context managementStateManager persists run history while HandoverManager enables filesystem-based communication between stages.
  • Runtime flexibility – Pluggable agent runtimes (Claude Code Headless, Claude SDK, Codex Headless, Gemini Headless, Pi Agent) registered via AgentRuntimeRegistry.
  • Model flexibility – Mix models across runtimes and providers per stage for cost optimization (up to 90% savings on simple tasks).
  • Cost controls – Set maxTurns and maxThinkingTokens to prevent runaway agents and enable deep reasoning when needed.
  • Observability – Ink-powered live UI, interactive history browser, and analytics reports generated from stored run data.
  • NotificationsNotificationManager sends desktop and Slack notifications with event filtering and fail-safe delivery.
  • Permission control – Defaults to acceptEdits mode for automated workflows, respecting .claude/settings.json allow/deny rules.
  • YAML-first configuration – Schema-validated pipelines with filesystem-based stage handover and customizable commit messages.

Architecture Overview

Key components:

  • src/core/pipeline-runner.ts – Orchestrates initialization, execution groups, and finalization.
  • src/core/group-execution-orchestrator.ts – Applies conditional logic, executes groups (parallel or sequential), and triggers context reduction.
  • src/core/stage-executor.ts – Runs individual agents with retries, token estimation, and git commits.
  • src/core/state-manager.ts – Persists pipeline state under .agent-pipeline/state/runs/.
  • src/core/worktree-manager.ts – Manages git worktrees for default pipeline isolation.
  • src/core/branch-manager.ts / src/core/git-manager.ts – Handle branch isolation and git commands.
  • src/core/handover-manager.ts – Manages filesystem-based stage communication via handover files.
  • src/core/pr-creator.ts – Integrates with GitHub CLI for PR automation.
  • src/core/agent-runtime-registry.ts – Registry for pluggable agent runtimes (Claude Code Headless, Claude SDK, Codex Headless, Gemini Headless, Pi Agent).
  • src/utils/token-estimator.ts – Provides smartCount() for context window monitoring.
  • src/ui/pipeline-ui.tsx & src/cli/commands/history.tsx – Ink UIs for live runs and history browsing.
  • src/analytics/pipeline-analytics.ts – Generates aggregated metrics for the analytics command.
  • src/notifications/notification-manager.ts – Dispatches desktop and Slack notifications.
  • src/validators/ – Modular validation for pipeline structure, DAG, agents, and notifications.
  • src/cli/commands/ – Command implementations (run, cleanup, hooks, agent, etc.).
agent-pipeline/
├── .agent-pipeline/
│   ├── agents/                      # Agent prompt definitions (.md files)
│   ├── pipelines/                   # Pipeline configurations (.yml files)
│   └── state/runs/                  # Persisted run history
├── docs/                            # User and developer documentation
└── src/
    ├── analytics/                   # Metrics and reporting
    ├── cli/commands/                # Command implementations
    ├── config/                      # Schema and loader
    ├── core/                        # Execution engine
    ├── notifications/               # Desktop and Slack notifiers
    ├── ui/                          # Ink terminal components
    ├── utils/                       # Logging, errors, helpers
    ├── validators/                  # Pipeline validation modules
    └── index.ts                     # CLI entry point

Git History Example

* a3f9d2c [pipeline:memory-manager] Update CLAUDE.md with findings
* 8c2e4a1 [pipeline:doc-updater] Add documentation updates
* 5b7f3d9 [pipeline:quality-check] Refactor for better readability
* 2e1c8f4 [pipeline:security-audit] Fix security issues
* 9d4a2b6 [pipeline:code-review] Apply style improvements
* 7a3b5c8 feat: add user authentication

Atomic commits make it easy to review changes, roll back specific stages, or bisect when issues arise.

Development

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run dev

# Run tests
npm test