← Catalog

toolflow

Skill and tool synergy orchestrator for Pi — live capability inventory, strict combo planning gate, dormant tool activation, and interactive workbench.

ExtensionSkill

Install

Install with PiG

pig install npm:toolflow

Install with Pi

pi install npm:toolflow
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "image": "https://raw.githubusercontent.com/3ZEROS12/toolflow/main/assets/hero-en.svg",
  "extensions": [
    "dist/index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 6.0.1 (README.md). PiG does not review it.

ToolFlow banner

toolflow

Skill & tool synergy orchestrator for Pi Coding Agent

License: MIT Tests: 13 Pass Pi SDK 1.7+

English | 简体中文


What It Solves

When a Pi environment has dozens of skills, extension tools, and deferred MCP servers installed, models often grab the first familiar tool (read, bash, or one skill) and rush linearly to completion. toolflow scans what is actually registered at runtime (getAllTools, getCommands, getMcpServers) and enforces a quick composition step before file mutations, helping models combine complementary tools and letting users discover how their installed toolbox fits together.

Core Behavior

  • Live capability inventory: Groups installed tools, skills (SKILL.md), prompts, MCP tools, and dormant (deferred / codemode) tools into Scout, Craft, Execute, and Verify roles.
  • Pre-flight synergy radar: On each new substantive task, surfaces relevant cross-role companions via before_agent_start message without altering systemPrompt, keeping prompt caches intact.
  • Strict by default (opt-out ready): Allows read-only inspection (read, grep, find, ls, readOnlyHint tools) immediately, while pausing mutating/shell tools until the model calls toolflow (action: "plan"). Dormant tools named in the plan are activated automatically. Run /toolflow off at any time to disable gating.
  • Interactive workbench & recipes: Run /toolflow to browse capabilities by role or activate dormant tools; run /toolflow <task> to draft and launch tailored multi-tool combo recipes.

Commands & Config

pi install npm:toolflow
CommandBehavior
/toolflowOpen interactive capability workbench (press ? inside for guide)
/toolflow compose <task>Compose and run a tool+skill combo recipe
/toolflow on | offEnable (default) or disable strict gating cleanly
/toolflow activate [name]Interactive picker (or name) for dormant/deferred tools
/toolflow list | statusPrint inventory or gate status (/toolflow help for full guide)
/toolflow resetClear active combo plan and restore pre-toolflow active tools

You can also ask the agent in plain chat ("show toolflow status", "turn off toolflow", "activate browser tools") — the toolflow tool supports status, on, off, survey, plan, and activate.

Preference overrides (enabled: false) live in ~/.pi/agent/toolflow.json (respecting PI_CODING_AGENT_DIR and isolated under NODE_TEST_CONTEXT) and are removed automatically when set back on. If pi-anchor is installed, active anchors for the current repository are surfaced alongside inventory suggestions.

Development

Requires @earendil-works/pi-coding-agent and @earendil-works/pi-tui (>= 1.7.0):

npm install
npm run check

Released under the MIT License.