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

taskflow-hosts

v0.2.3

Published

Shared host-runner collection for taskflow — the codex, claude, opencode, and grok SubagentRunner implementations + their argv builders and event-stream parsers. The per-host MCP servers, plugin scaffolds, and bins live in codex-taskflow / claude-taskflow

Readme

taskflow-hosts

Shared host-runner collection for taskflow.

This package holds the SubagentRunner implementations for taskflow's non-pi hosts — codex, claude, opencode, and grok — plus their pure argv builders (buildCodexArgs / buildClaudeArgs / buildOpencodeArgs / buildGrokArgs) and event-stream parsers. It is the single place host runners live; a new host adds a <host>-runner.ts here.

Why a separate package

Each host has two halves:

  1. The runner — spawn that host's CLI, fold its JSON event stream into a host-neutral RunResult, classify the outcome. + the pure argv builder + permission/model helpers.
  2. The delivery — the per-host MCP server + bin + plugin scaffold, which is that host ecosystem's install target (codex plugin add, claude plugin install, OpenCode config, grok plugin install).

Half #1 is nearly identical in shape across hosts and changes for the same reasons (a taskflow-core contract change, or a host CLI flag change). Half #2 is genuinely host-specific (different install mechanisms, different plugin manifests). So #1 is collected here; #2 stays in codex-taskflow / claude-taskflow / opencode-taskflow / grok-taskflow, which import their runner from this package.

Install

You usually don't install this directly — install the host delivery package:

npm install -g codex-taskflow     # or claude-taskflow / opencode-taskflow / grok-taskflow

For code-level use:

npm install taskflow-hosts

Usage

// one host, tree-shaken:
import { codexSubagentRunner, buildCodexArgs } from "taskflow-hosts/codex";
import { grokSubagentRunner, buildGrokArgs } from "taskflow-hosts/grok";

// or the barrel:
import {
	claudeSubagentRunner,
	opencodeSubagentRunner,
	grokSubagentRunner,
} from "taskflow-hosts";

Each runner export includes: the SubagentRunner (codexSubagentRunner / …), the runXxxAgentTask function, the pure buildXxxArgs builder, the foldXxxEventLine parser + newXxxAccumulator, and the permission/model helpers (sandboxForTools, permissionArgsForTools / permissionArgsForGrokTools, isReadOnlyPhase, resolveXxxModel, xxxBin).

Hosts

| Host | CLI spawn | Delivery package | |------|-----------|------------------| | Codex | codex exec --json | codex-taskflow | | Claude Code | claude -p --output-format stream-json | claude-taskflow | | OpenCode | opencode run --format json | opencode-taskflow | | Grok Build | grok -p --output-format streaming-json | grok-taskflow |

Adding a host

  1. Add <host>-runner.ts in src/ (model it on an existing one — a pure buildXxxArgs + the event parser + a SubagentRunner export).
  2. Add an export entry in src/index.ts (watch for name collisions on shared helper names like permissionArgsForTools).
  3. Add *-runner.test.ts (event-stream parser) + *-args.test.ts (argv contract — CI-locked) in test/.
  4. The host's delivery (MCP server/bin + plugin scaffold) goes in a taskflow-hosts-depending package of its own.

See AGENTS.md and DECISIONS.md in the repo root for the full architecture and the packaging decision.

License

MIT