Install
Install with PiG
pig install npm:toolflowInstall with Pi
pi install npm:toolflowPackages 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
Skill & tool synergy orchestrator for Pi Coding Agent
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_startmessagewithout alteringsystemPrompt, keeping prompt caches intact. - Strict by default (opt-out ready): Allows read-only inspection (
read,grep,find,ls,readOnlyHinttools) immediately, while pausing mutating/shell tools until the model callstoolflow(action: "plan"). Dormant tools named in the plan are activated automatically. Run/toolflow offat any time to disable gating. - Interactive workbench & recipes: Run
/toolflowto 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
| Command | Behavior |
|---|---|
/toolflow | Open interactive capability workbench (press ? inside for guide) |
/toolflow compose <task> | Compose and run a tool+skill combo recipe |
/toolflow on | off | Enable (default) or disable strict gating cleanly |
/toolflow activate [name] | Interactive picker (or name) for dormant/deferred tools |
/toolflow list | status | Print inventory or gate status (/toolflow help for full guide) |
/toolflow reset | Clear 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.