omp packages

toolflow6.0.2

Skill and tool synergy orchestrator for Pi — live capability radar, multi-tool combo recipes, dormant MCP/tool activation, and opt-in strict planning gate.

jason-zeros Published 2 days ago MIT ~1.3K downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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), surfaces complementary tools/skills on each task, wakes dormant tools on demand, and provides an opt-in strict composition gate before file mutations.

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.
  • Advisory synergy radar (default, non-blocking): On each new substantive task, surfaces relevant cross-role companions via before_agent_start message without altering systemPrompt or blocking tool calls, keeping prompt caches intact.
  • Opt-in strict planning gate (/toolflow strict): When enabled, 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 a plan are activated automatically.
  • 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
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 advisory radar (default) or disable toolflow cleanly
/toolflow strict Enable opt-in strict planning gate before file edits/shell commands
/toolflow activate [name] Interactive picker (or name) for dormant/deferred tools
/toolflow list | status Print inventory or mode 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", "enable strict toolflow", "turn off toolflow", "activate browser tools") — the toolflow tool supports status, on, strict, off, survey, plan, and activate.

Preference overrides (enabled: false or strict: true) live in ~/.pi/agent/toolflow.json (respecting PI_CODING_AGENT_DIR and isolated under NODE_TEST_CONTEXT) and are removed automatically when set back to default 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.