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 🙏

© 2025 – Pkg Stats / Ryan Hefner

agent-pipeline

v0.1.0

Published

Intelligent agent orchestration with parallel execution, conditional logic, git workflow automation, and multi-channel notifications for Claude Code

Readme

Agent Pipeline

Intelligent agent orchestration with parallel execution, conditional logic, git workflow automation, and multi-channel notifications for Claude Code

Last update: 2025-10-28

Agent Pipeline delivers an agent-driven CI/CD workflow with full visibility. Execute Claude agents with DAG-planned parallelism, conditional logic, retries, and automated git hygiene. Branch isolation, GitHub PR creation, local/Slack notifications, and a live terminal UI keep humans in the loop.

Features

  • Pipeline orchestrationPipelineRunner combines DAG planning, conditional gating, and per-stage retries backed by RetryHandler.
  • Git workflow automationBranchManager and PRCreator isolate work on dedicated branches and open PRs via GitHub CLI.
  • State & context managementStateManager persists run history while ContextReducer trims prompts using token-aware summaries and saved artifacts.
  • Model flexibility – Mix Haiku, Sonnet, and Opus models 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 structured agent outputs and customizable commit messages.

Prerequisites

  • Node.js (v18 or higher)
  • Git (configured with user name and email)
  • Claude API Key (set in environment or Claude Code settings)
  • 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

Quick Start

1. Initialize New Project

# Initialize with minimal test pipeline
agent-pipeline init

# Initialize with a specific example
agent-pipeline init post-commit

# Initialize with all examples
agent-pipeline init --all

This scaffolds the test-pipeline, optional example pipelines, required agent definitions, and the directory structure (.agent-pipeline/, .claude/agents/). Agents from installed Claude Code plugins are automatically imported.

2. Run Your First Pipeline

# Run with interactive live UI (default)
agent-pipeline run test-pipeline

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.

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

# Parallel execution with DAG dependencies
agent-pipeline run parallel-example

# Conditional logic based on previous stage outputs
agent-pipeline run conditional-example

# Git workflow with branch isolation and PR creation
agent-pipeline run git-workflow-example

Manual Setup (Alternative)

1. Create a Pipeline Configuration

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

settings:
  autoCommit: true
  commitPrefix: "[pipeline:{{stage}}]"
  failureStrategy: continue
  preserveWorkingTree: false

agents:
  - name: code-review
    agent: .claude/agents/code-reviewer.md
    timeout: 120

  - name: code-reducer
    agent: .claude/agents/code-reducer.md

2. Create Agent Definitions

<!-- .claude/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.
  • docs/data-flow-map.md – Visual data flow diagrams showing how data moves through the system.
  • docs/dev/ – Historical design notes and roadmap snapshots.

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/branch-manager.ts / src/core/git-manager.ts – Handle branch isolation and git commands.
  • src/core/pr-creator.ts – Integrates with GitHub CLI for PR automation.
  • src/utils/token-estimator.ts – Provides smartCount() for context window monitoring.
  • src/ui/pipeline-ui.tsx & src/ui/history-browser.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/cli/commands/ – Command implementations (run, install, cleanup, rollback, etc.).
agent-pipeline/
├── .agent-pipeline/                 # Pipeline definitions and run history
├── docs/                            # User and developer documentation
├── src/
│   ├── analytics/
│   ├── cli/commands/
│   ├── config/
│   ├── core/
│   ├── notifications/
│   ├── ui/
│   ├── utils/
│   └── index.ts                     # CLI entry point
└── .claude/agents/                  # Example agent prompts

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