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

@tranhoangnguyen0310/pi-flow-external

v1.0.10-external.1

Published

External Claude Code and Codex delegation for pi.

Downloads

333

Readme

pi-flow external

External Claude Code and Codex delegation for pi.

This fork intentionally narrows pi-flow's Agent and workflow subagent lanes to external CLI backends only:

  • Claude Code via profiles with backend: claude
  • Codex CLI via profiles with backend: codex
  • Antigravity via profiles with backend: agy

Use pi's native subagent system for Pi-backed agents such as scout, reviewer, planner, worker, or oracle. Use this extension only when you explicitly want another agent harness.

Why this fork exists

The upstream pi-flow package can launch Pi, Codex, and Claude subagents through the same Agent tool. That is powerful, but it creates routing ambiguity when pi also exposes a native subagent system.

This fork enforces a global split:

Native Pi delegation      -> native subagent tool
External harnesses        -> Agent / workflow from this extension

That keeps prompts predictable across projects:

  • "Use scout/reviewer/planner" means native Pi subagents.
  • "Ask Claude Code" means an Agent profile named like claude-*.
  • "Ask Codex" means an Agent profile named like codex-*.
  • "Ask Antigravity" means an Agent profile named like agy-*.

Install

After publishing this fork to npm:

pi install npm:@tranhoangnguyen0310/pi-flow-external

For local development, install from this checkout if your pi installation supports local extension paths.

Define external profiles

Custom profiles live in ~/.pi/agent/subagents/<name>.md. Only profiles whose frontmatter sets backend: claude, backend: codex, or backend: agy are shown to, and accepted by, Agent/workflow.

Recommended naming convention:

claude-explorer.md
claude-reviewer.md
codex-explorer.md
codex-reviewer.md
agy-explorer.md
agy-reviewer.md

Claude example:

---
description: Repository exploration through Claude Code.
backend: claude
model: sonnet
thinking: high
---

Explore the repository read-only. Identify architecture, entry points, tests, configuration, risks, and recommended first-read files.

Codex example:

---
description: Broad code search through Codex CLI.
backend: codex
model: gpt-5.4-mini
thinking: high
---

Search broadly and summarize findings with file references. Do not edit files.

Profiles with backend: pi or missing backend are rejected by design. Use the native subagent system for those jobs.

Use Agent

Agent({
  description: "Claude repo map",
  subagent_type: "claude-explorer",
  prompt: "Map this repository read-only and summarize important files.",
});

Subagents start fresh in the same working directory. Parent messages and tool results are not inherited, so prompts must be self-contained.

External profiles run local CLI commands in no-approval mode (claude ... --dangerously-skip-permissions, codex exec ... --dangerously-bypass-approvals-and-sandbox). Use them only in trusted repositories.

Use workflows

The workflow tool is still available for trusted JavaScript orchestration, but its agent() calls use the same external-only profile roster. It is useful for mixing several Claude/Codex lanes and synthesizing their outputs.

Runtime guardrails

Direct Agent calls and workflow agent() calls share one global concurrency cap and one wall-clock timeout guardrail:

pi --max-concurrent-subagents 4 --subagent-timeout-ms 600000

Set --subagent-timeout-ms to 0 to disable the timeout. Values are milliseconds.