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

@rraft/agentflow

v0.2.4

Published

AgentFlow CLI - A lightweight Agent workflow framework

Readme


概述

AgentFlow 为你的 AI 编程助手提供一个工作流引擎。它定义如何描述工作流,而不是运行什么工作流。你来决定节点、连接关系以及每个节点做什么。

快速开始

选择你的 AI 助手:

Claude Code

npm install -g @rraft/agentflow
cd your-project
agentflow init --cli claude

在 Claude Code 中输入:/agentflow-create 研究微服务架构,输出对比报告

Codex CLI

npm install -g @rraft/agentflow
cd your-project
agentflow init --cli codex

在 Codex 中输入:/agentflow-create 研究微服务架构,输出对比报告

Cursor

npm install -g @rraft/agentflow
cd your-project
agentflow init --cli cursor

在 Cursor 中输入:/agentflow-create 研究微服务架构,输出对比报告

GitHub Copilot

npm install -g @rraft/agentflow
cd your-project
agentflow init --cli copilot

在 Copilot Chat 中输入:/agentflow-create 研究微服务架构,输出对比报告

OpenCode

npm install -g @rraft/agentflow
cd your-project
agentflow init --cli opencode

在 OpenCode 中输入:/agentflow-create 研究微服务架构,输出对比报告

斜杠命令

agentflow init 后,你的 AI 助手将获得以下命令:

| 命令 | 说明 | |---------|-------------| | /agentflow-create <描述> | 根据描述创建工作流 | | /agentflow-run | 执行当前工作流 | | /agentflow-status | 查看执行状态 | | /agentflow-visualize | 生成交互式 HTML DAG 图 | | /agentflow-edit <修改> | 修改工作流 |

也可以直接自然语言交流——"帮我编排一个工作流:先调研,再对比,最后写报告"。

生成的文件结构

your-project/
├── .agentflow/                  # 工作流工作区
│   ├── workflow.yaml            # DAG 定义
│   ├── nodes/                   # 节点定义与输出
│   ├── skills/                  # Agent Skills(编辑器、执行器、可视化器)
│   ├── memory/                  # 跨节点记忆(决策、约束)
│   └── capabilities/            # 自定义能力
└── [agent 引导文件]              # 各 Agent 专属集成

CLI 命令

| 命令 | 说明 | |---------|-------------| | agentflow init | 初始化 .agentflow/ 工作区 | | agentflow scaffold <预设> | 从 6 个内置预设生成工作流 | | agentflow create <描述> | 根据描述生成工作流 | | agentflow visualize | 生成交互式 HTML DAG 图 | | agentflow validate | 校验工作流定义 | | agentflow status | 查看执行进度 |

核心概念

| 概念 | 说明 | |---------|-------------| | Workflow | 定义在 .agentflow/workflow.yaml 中的 DAG | | Node | 具有输入/能力/输出边界的工作阶段 | | Capability | 可复用的技能包(提示词 + 工具 + 约束) |

License

MIT