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

@samsamit/agentflow

v1.2.0

Published

Workflow manager for agentic use

Downloads

23

Readme

                          _    __ _               
  __ _  __ _  ___ _ __  | |_ / _| | _____      __
 / _` |/ _` |/ _ \ '_ \ | __| |_| |/ _ \ \ /\ / /
| (_| | (_| |  __/ | | || |_|  _| | (_) \ V  V / 
 \__,_|\__, |\___|_| |_| \__|_| |_|\___/ \_/\_/  
        |___/                                     

An agent-first CLI workflow engine for multi-step AI pipelines.

npm version npm downloads license node

Table of contents

What?

agentflow lets you define multi-step workflows in YAML and run AI agents through them. The engine enforces dependency order, cascades revisions downstream, and injects all necessary context into each step — so your agent never needs to explore the codebase on its own.

Install

npm install -g @samsamit/agentflow

Using with an AI agent

agentflow is designed to be driven by an AI agent, not a human. The agent calls agentflow commands to navigate the workflow — The tool provides everything the agent needs at each step.

The agentflow skill

agentflow init installs a skill file into your project that teaches your AI agent how to use agentflow correctly. The skill is invoked with the /agentflow slash command:

/agentflow run the plan flow on this task

The agent will:

  1. Check for an existing active task (agentflow list tasks)
  2. Start a new task if needed (agentflow start --task <name> --flow plan)
  3. Loop through steps automatically:
    • agentflow next — find the next open step
    • agentflow context --step <name> — receive full instructions + upstream outputs
    • Do the work described in the context
    • agentflow complete --step <name> — mark done, unblock dependents
  4. Stop when agentflow next reports the task is complete

Modes

Autonomous (default) — the agent loops from start to finish without pausing. Use this when you say "run it", "go", or "do the whole flow".

Step-by-step — the agent completes one step, reports what it did and what's next, then waits for you to say "continue". Use this when you want to review each output before proceeding.

Subagents

Steps can declare a subagent — a specialized agent role for that step (e.g. a code writer, an adversarial reviewer). When the orchestrator agent encounters a subagent step, it spawns a new agent with the full step context and waits for it to return before continuing the flow. Parallel-ready steps can be executed by parallel subagents simultaneously.

Revisions

When a validator step finds issues in a prior step's output, it calls agentflow revise. The engine marks the failing step for rework and automatically resets all downstream steps that depended on it. The agent then loops back and reworks only what changed.


Quick start

1. Initialize agentflow in your project

agentflow init

This creates the agentFlow/ directory, installs the skill file for your AI agent, copies the bundled flows, and prompts you to select your IDE for YAML schema support (VS Code, JetBrains, or Zed).

2. Choose or create a flow

Two bundled flows are included:

  • plan — Lightweight planning: explore the problem, produce an actionable plan.
  • vsdd — Verified Spec-Driven Development: a full AI-orchestrated pipeline combining spec writing, TDD, adversarial review, and formal verification.

You can define your own flow by creating a directory under agentFlow/flows/ with an .agentflow.yaml file.

3. Run a flow

Invoke the skill with the /agentflow slash command and tell it which flow to run:

/agentflow run the plan flow on my-feature

The agent drives the workflow from start to finish. You can also start a task manually from the CLI:

agentflow start --task my-feature --flow plan

IDE schema support

agentflow init configures YAML schema validation for your editor so you get autocomplete and validation when editing .agentflow.yaml files.

Supported editors: VS Code, JetBrains, Zed.