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

@riclara/agentflow

v1.1.0

Published

Configure a multi-agent development workflow across Claude Code, Codex, Cowork, and OpenCode.

Readme

agentflow

Ask DeepWiki

Language: English | Español

agentflow is a Node.js CLI that configures a multi-agent development workflow for Claude Code, Cowork, Codex CLI, Codex App, and OpenCode.

It generates four specialized agents:

  • planner
  • implementer
  • tester
  • documenter

The orchestration logic lives in the generated agentflow skill for Claude and Codex. OpenCode gets the agent definitions for manual execution.

Background article: Multi-Agent AI Development Pipeline

Install the CLI

Install agentflow globally once:

npm install -g @riclara/agentflow

Then, inside each project where you want the workflow:

cd my-project

Commands

agentflow init
agentflow status
agentflow update
agentflow config
agentflow eject

What v3 adds

  • The planner is write-capable for feature artifacts and may write only docs/features/<slug>/plan.md and docs/features/<slug>/review.md.
  • Plans now separate ## Implementation Tasks, ## Test Tasks, and ## Test Files.
  • Generated skills maintain docs/features/<slug>/activity.log and pause cleanly with PAUSED_RATE_LIMIT, including resume instructions.
  • agentflow status reports Template Health (healthy, stale, or incompatible) from the generated files on disk, not only from .agentflow.json.
  • agentflow update rewrites managed files when templates are stale or out of date, while preserving custom models and marker-merged content.

Initialization: which command to run in each case

Case 1: brand new project or project that never used agentflow

Run:

agentflow init

Use this when:

  • there is no .agentflow.json
  • you want agentflow to generate the agents for the first time
  • you want to select tools, models, language, framework, and test runner

Case 2: project already initialized with agentflow

Run:

agentflow status
agentflow update
agentflow status

Use this when:

  • the project already has .agentflow.json
  • you want to migrate old prompts/templates to the latest version
  • you want to verify whether generated files are healthy, stale, or incompatible

This is the right flow for testing migrations. Do not re-run init unless you actually want to reinitialize the project.

Case 3: project already has Claude/Codex/OpenCode config, but not agentflow

Run:

agentflow init

During init, agentflow will merge into:

  • CLAUDE.md
  • AGENTS.md
  • opencode.json
  • .codex/config.toml

and generate the agent files it manages.

Case 4: project was initialized, but status shows incompatible

Start with:

agentflow status
agentflow update

If incompatible remains, the project likely has missing or unmanaged files. In that case, re-running agentflow init is the simplest recovery path.

What agentflow init generates

Depending on the selected tools:

  • Claude Code / Cowork:
    • .claude/skills/agentflow/SKILL.md
    • .claude/agents/planner.md
    • .claude/agents/implementer.md
    • .claude/agents/tester.md
    • .claude/agents/documenter.md
    • workflow section in CLAUDE.md
  • Codex CLI / Codex App:
    • .codex/agents/planner.toml
    • .codex/agents/implementer.toml
    • .codex/agents/tester.toml
    • .codex/agents/documenter.toml
    • .agents/skills/agentflow/SKILL.md
    • workflow section in AGENTS.md
  • OpenCode:
    • .opencode/agents/planner.md
    • .opencode/agents/implementer.md
    • .opencode/agents/tester.md
    • .opencode/agents/documenter.md
    • agent section merged into opencode.json

It also creates .agentflow.json and the base docs/ directory.

Daily usage

Automatic mode

Use automatic mode when the tool supports the generated agentflow skill.

  • Claude Code / Cowork:
/agentflow <describe your feature>
  • Codex CLI / Codex App:
$agentflow <describe your feature>

Automatic mode runs the full pipeline:

  1. planner writes docs/features/<slug>/plan.md
  2. user approves or requests changes
  3. implementer executes ## Implementation Tasks
  4. planner reviews into docs/features/<slug>/review.md
  5. tester executes ## Test Tasks and writes tests from ## Test Files
  6. documenter updates docs after tests pass

Manual mode

Use manual mode when:

  • you want to run one phase at a time
  • you are debugging the workflow
  • you are using OpenCode

Claude Code / Cowork

Run the agents directly:

@agent-planner plan: <feature>
@agent-implementer implement docs/features/<slug>/plan.md
@agent-planner review against docs/features/<slug>/plan.md
@agent-tester write and run tests
@agent-documenter write documentation

Codex CLI / Codex App

Ask Codex to spawn the named agents:

Spawn the planner agent to plan: <feature>
Spawn the implementer agent to implement docs/features/<slug>/plan.md
Spawn the planner agent to review against docs/features/<slug>/plan.md
Spawn the tester agent to write and run tests
Spawn the documenter agent to write documentation

OpenCode

OpenCode does not support skills, but each agent is configured to suggest the next command when it finishes. Start the pipeline with a single message to the planner:

@planner Plan this feature and write the result to docs/features/<slug>/plan.md.
Feature: <describe your feature>

The planner will write the plan and end its response with the exact command to run next. Follow the suggestions to move through the pipeline:

planner → implementer → planner (review) → tester → documenter

Each agent tells you what to run when it finishes, including the correct docs/features/<slug>/ path. If a review or test phase fails, the agent suggests the fix command instead of the next phase.

What to tell each agent

These are the expected task shapes when you run agents manually.

Planner: create a plan

Use this when the feature has not been planned yet.

Plan this feature and write the result to docs/features/<slug>/plan.md.
The plan must include:
- ## Summary
- ## Implementation Tasks
- ## Test Tasks
- ## Test Files
- ## Acceptance Criteria
Feature: <your feature request>

Implementer: execute the plan

Use this after the plan is approved.

Read docs/features/<slug>/plan.md and execute only ## Implementation Tasks.
Ignore ## Test Tasks.
Mark completed implementation tasks with [x].

Planner: review the implementation

Use this after implementation or after fixes.

Review the implementation against docs/features/<slug>/plan.md.
Check only ## Implementation Tasks and ## Acceptance Criteria for this phase.
Do not mark ## Test Tasks as missing before testing starts.
Write results to docs/features/<slug>/review.md starting with:
## Status: APPROVED | NEEDS_CHANGES

Tester: write and run tests

Use this after the implementation passes review.

Read docs/features/<slug>/plan.md.
Execute only ## Test Tasks.
Create only the files listed in ## Test Files.
Write and run tests with the configured test command.
If tests fail, update docs/features/<slug>/review.md with:
## Status: NEEDS_CHANGES
## Test Failures

Documenter: update docs

Use this only after tests pass.

Read docs/features/<slug>/plan.md and the final implementation.
Update README.md and any relevant docs to match the approved, tested behavior.

Template Health

agentflow status validates the generated planner, tester, and skill files against the workflow invariants:

  • planner can write only feature artifacts
  • skills use docs/features/<slug>/ and activity.log
  • tester follows ## Test Tasks and ## Test Files

If a managed file is present but missing v3 invariants, it is reported as stale.

If a required file is missing or no longer managed by agentflow, it is reported as incompatible.

Recommended maintenance flow

Use these commands in this order:

agentflow status
agentflow update
agentflow status

That gives you:

  • a health report before changing anything
  • migration of managed files if they are stale or outdated
  • a final confirmation that the project is healthy

Repository Automation

For CI, npm publishing, and branch protection setup, see docs/repository-setup.md. Automatic versioning is now based on Conventional Commits through release-please.